Description
Code of Conduct
- I agree to follow this project's Code of Conduct
Is there an existing issue for this?
- I have searched the existing issues
GitHub-hosted runner
ubuntu-latest
Additional runner information
No response
Current Behavior
I set up a commit-message-checker workflow to check the commit message of a Pull request.
The pattern is to make sure the message begin with certain formatted text.
Then I send a PR with a commit message that doesn't match the pattern, the workflow
detects it and give failure result.
Then I updated the commit's message to something that matches the pattern (locally, run git comment --amend
to modify the commit message) and force pushed the commit to repository. The workflow re-triggered automatically. However it still use the old commit message and failed the workflow.
Expected Behavior
I'd expect the workflow could pick up my commit updates and give a successful workflow result.
Steps To Reproduce
- Setup a workflow in your repository using this commit-message-checker
- send a PR with a commit message that doesn't match the pattern in the workflow.
- wait the workflow to fail.
- update the commit message using git commit --amend so that the commit message matches the pattern in workflow
- force push the commit/branch to the repo
- wait for the workflow to be re-triggered and failed again
Anything else?
It would be always check the updated commit message rather than the original one.
Activity