-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check commits instead of PR text for pull requests #28
Comments
As discussed via mail: It might make sense to also check the PR title if there are multiple commits as it is included in the squashed commit message (example). |
Please see: #30 (comment) I'll add a clarification in the readme. |
The relevant section in the readme is here: https://github.com/mristin/opinionated-commit-message#known-issue I'll leave this issue open to gauge how many people need this feature. |
This splits the commit message checks from the check styles into a separate workflow which runs on every pull request and push. The style checks were run only on pull request, hence ignoring the commit messages of a branch in the pull request. See also this issue of the checker: mristin/opinionated-commit-message#28
This splits the commit message checks from the check styles into a separate workflow which runs on every pull request and push. The style checks were run only on pull request, hence ignoring the commit messages of a branch in the pull request. See also this issue of the checker: mristin/opinionated-commit-message#28
This splits the commit message checks from the check styles into a separate workflow which runs on every pull request and push. The style checks were run only on pull request, hence ignoring the commit messages of a branch in the pull request. See also this issue of the checker: mristin/opinionated-commit-message#28
This splits the commit message checks from the check styles into a separate workflow which runs on every pull request and push. The style checks were run only on pull request, hence ignoring the commit messages of a branch in the pull request. See also this issue of the checker: mristin/opinionated-commit-message#28
Closing since no new messages in a while. |
hey @mristin, I just noticed that when the action gets triggered by Is there any way to trigger the action to check all the commits in the PR like the commit-message-checker does? |
Hi @1david5 , |
That sounds great. Thank you for the update and this action 👍 |
Hi @1david5 , |
Hi @mristin, |
Hi @1david5 , At this point I can't really promise any timeline when I'd be able to look into this. If you can scrap some time, please do go ahead and make a PR. I promise to review it & support you as much I can. |
The PR body doesn't form part of the commit, so there is no need to check it. NB If the commit message checker changes in the future to [check the PR commit messages rather than the PR body][1] then we can reinstate the checks then. [1]: mristin/opinionated-commit-message#28
The PR body doesn't form part of the commit, so there is no need to check it. NB If the commit message checker changes in the future to [check the PR commit messages rather than the PR body][1] then we can reinstate the checks then. [1]: mristin/opinionated-commit-message#28
The PR body doesn't form part of the commit, so there is no need to check it. NB If the commit message checker changes in the future to [check the PR commit messages rather than the PR body][1] then we can reinstate the checks then. [1]: mristin/opinionated-commit-message#28
The PR body doesn't form part of the commit, so there is no need to check it. NB If the commit message checker changes in the future to [check the PR commit messages rather than the PR body][1] then we can reinstate the checks then. [1]: mristin/opinionated-commit-message#28
The PR body doesn't form part of the commit, so there is no need to check it. NB If the commit message checker changes in the future to [check the PR commit messages rather than the PR body][1] then we can reinstate the checks then. [1]: mristin/opinionated-commit-message#28
The PR body doesn't form part of the commit, so there is no need to check it. NB If the commit message checker changes in the future to [check the PR commit messages rather than the PR body][1] then we can reinstate the checks then. [1]: mristin/opinionated-commit-message#28
The PR body doesn't form part of the commit, so there is no need to check it. NB If the commit message checker changes in the future to [check the PR commit messages rather than the PR body][1] then we can reinstate the checks then. [1]: mristin/opinionated-commit-message#28
The PR body doesn't form part of the commit, so there is no need to check it. NB If the commit message checker changes in the future to [check the PR commit messages rather than the PR body][1] then we can reinstate the checks then. [1]: mristin/opinionated-commit-message#28
@johnboyes @1david5 I finally have some time to fix this. I thought to check both the body of pull request and the commit messages. I'd also add a flag, What do you think? |
Hi @mristin, thanks for working on this. For the flag, I think a positive flag (rather than a negative flag starting with |
Hi everyone! I'm working on this issue at the moment, so as an update. The event received by the GH action doesn't include the commits of the PR, it includes the URL where those commits can be retrieved (following HATEOAS). Problem is that the commits URL has the same privacy as the repo, so for private repos this action would need the - uses: mristin/opinionated-commit-message@v3.0.1
with:
github-token: ${ secrets.GITHUB_TOKEN } Public repos don't have such requirement. I'll try to send a PR soon with this. |
PR opened, please try it out! |
With this patch, we verify not only the latest commit message, but also check that *all* commit messages are verified. Fixes #28.
The tool should check the commits that are part of a PR instead of the PR text if it is executed for a pull request (example run.
The text was updated successfully, but these errors were encountered: