Skip to content

Commit

Permalink
Add git rebase command to PR comment
Browse files Browse the repository at this point in the history
The instructions comment contained a command to retroactively sign the latest commit, but it would be more useful to show a command that does this for all commits in the PR. This can be done using `git rebase --exec`.
  • Loading branch information
florisvdg authored Jan 15, 2024
1 parent 2917476 commit 908e834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ inputs:
comment:
description: The comment to place in the PR
default: |
⚠️ This PR contains unsigned commits. To get your PR merged, please sign those commits (`git commit -S --amend --no-edit`) and force push them to this branch (`git push --force-with-lease`).
⚠️ This PR contains unsigned commits. To get your PR merged, please sign those commits (`git rebase --exec 'git commit -S --amend --no-edit -n' @{upstream}`) and force push them to this branch (`git push --force-with-lease`).
If you're new to commit signing, there are different ways to set it up:
Expand Down

0 comments on commit 908e834

Please sign in to comment.