Skip to content

Fix submodule deletion with sign-commits - #4473

Merged
peter-evans merged 2 commits into
peter-evans:mainfrom
MrSubidubi:fix-signed-submodule-deletion
Nov 6, 2026
Merged

peter-evans merged 2 commits into
peter-evans:mainfrom
MrSubidubi:fix-signed-submodule-deletion

Conversation

@MrSubidubi

Copy link
Copy Markdown
Contributor

Hey, thanks for provding and maintaining this action!

Whilst using this in the Zed extension repository, I got a failure whilst attempting to delete a submodule with sign-commits: true in https://github.com/zed-industries/extensions/actions/runs/34830887346/job/103933726728

The root cause for this is that the 000.. SHA for a deleted submodule was provided, yet the API actually expectes null in this case. This then caused the error as seen in the logs - the other modifications worked, yet the submodule deletion did not succeed.

Fix here is to just set the submodule SHA to null in that case.

AI disclaimer: I had Claude help me with this during debugging as well as with writing the test.

pull Bot pushed a commit to joshuadavidthomas/extensions that referenced this pull request Sep 14, 2026
Work around an upstream bug in the create PR action by not signing
commits for now.

Required until
peter-evans/create-pull-request#4473 or a
similar fix is merged.
@peter-evans

Copy link
Copy Markdown
Owner

@MrSubidubi thank you for this contribution, and apologies it took me so long to get to it.

I need to close and reopen the PR to recreate the checks because they have gone stale and I can't approve them anymore.

@peter-evans peter-evans closed this Nov 4, 2026
@peter-evans peter-evans reopened this Nov 4, 2026
@peter-evans

peter-evans commented Nov 4, 2026 •

Copy link
Copy Markdown
Owner

/test repository=MrSubidubi/create-pull-request ref=fix-signed-submodule-deletion sign-commits=true

Command run output

@MrSubidubi

MrSubidubi commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor Author

No worries about the long delay at all! Definitely something I tend to struggle with also. Appreciate you taking a look!

@peter-evans
peter-evans merged commit 15733db into peter-evans:main Nov 6, 2026
@MrSubidubi
MrSubidubi deleted the fix-signed-submodule-deletion branch November 6, 2026 11:18
@peter-evans

Copy link
Copy Markdown
Owner

Released as v8.1.2 / v8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants