Skip to content
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

make comment-on-pr-number option work even outside of pull-request events #1178

Merged
merged 1 commit into from
May 28, 2024

Conversation

tgummerer
Copy link
Contributor

We only allow the comment-on-pr option inside of pull requests. This makes sense because we wouldn't be able to comment on anything otherwise. However with the comment-on-pr-number option gives us a PR number to comment on, so it can make sense with any type of GitHub actions event. This used to work before #813, and it looks like disallowing this was accidental rather than intentional.

Make this work again.

Fixes #1177

@tgummerer tgummerer requested a review from a team as a code owner May 24, 2024 13:19
@tgummerer tgummerer requested a review from simenandre May 24, 2024 13:19
@tgummerer tgummerer force-pushed the tg/allow-comment-on-pr-number-outside-pr-event branch from 2fe4f0e to 0759520 Compare May 24, 2024 13:20
@tgummerer
Copy link
Contributor Author

The workflow failures here should be fixed by #1179.

…events

We only allow the `comment-on-pr` option inside of pull requests.
This makes sense because we wouldn't be able to comment on anything
otherwise.  However with the `comment-on-pr-number` option gives us a
PR number to comment on, so it can make sense with any type of GitHub
actions event.  This used to work before #813, and it looks like
disallowing this was accidental rather than intentional.

Make this work again.
@tgummerer tgummerer force-pushed the tg/allow-comment-on-pr-number-outside-pr-event branch from 0759520 to e2bbb39 Compare May 28, 2024 07:23
@tgummerer tgummerer merged commit fe6c804 into main May 28, 2024
76 checks passed
@tgummerer tgummerer deleted the tg/allow-comment-on-pr-number-outside-pr-event branch May 28, 2024 07:44
tgummerer added a commit that referenced this pull request May 28, 2024
Update the changelog for a patch release including #1178.
tgummerer added a commit that referenced this pull request May 28, 2024
Update the changelog for a patch release including #1178.
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.

comment-on-pr-number is ignored on push events
2 participants