mirror of
https://github.com/peter-evans/create-pull-request.git
synced 2026-12-06 05:12:56 +00:00
fix: submodule deletion with sign-commits (#4473)
* Fix submodule deletion with `sign-commits` * Unstale the staleness
This commit is contained in:
1 parent
3afad46a91
commit
15733dbdfe
3 files changed
+126
-4
No files matched your search
@@ -332,11 +332,14 @@ export class GitHubHelper {
|
||||
commit.changes.map(async ({path, mode, status, dstSha}) => {
|
||||
if (mode === '160000') {
|
||||
// submodule
|
||||
core.info(`Creating tree object for submodule commit at '${path}'`)
|
||||
core.info(
|
||||
`Creating tree object for submodule commit at '${path}' with status '${status}'`
|
||||
)
|
||||
return <TreeObject>{
|
||||
path,
|
||||
mode,
|
||||
sha: dstSha,
|
||||
// A deleted submodule has a null dstSha; a null sha deletes the entry
|
||||
sha: status === 'D' ? null : dstSha,
|
||||
type: 'commit'
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user