-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Documentation update: Use head_ref
for comments on PR commits?
#20
Comments
Hi @mpdude Does Even if it works, I think it might be more correct to use Anyway, it's a good idea to add something to the readme about this. I'll add a section to explain about avoiding the merge commit. |
I just checked and using |
I don't think anyone would ever want to add a comment to the merge commit, so I'm now thinking of updating the action to detect that it is running on a |
Updated |
While omitting the
sha
action input just works for regular commits on branches, these comments are not visible when the action is run for pull requests.The reason is that for pull requests, actions are run on "merge commits", as you explained here and also documented elsewhere.
By using
... things seem to work for both PRs and regular commits.
If this makes sense, you might want to add a short notice in the README file?
The text was updated successfully, but these errors were encountered: