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

chore: Add pr-number input #562

Closed

Conversation

pellizzetti
Copy link

What does this pull request do?

Add a new input called pr-number as an extra option.

When comment-on-pr is true it will check if the payload contains a pull request number. If it doesn't find, it will try to assign a value from pr-number. If both don't exist, it will fail with the current Missing pull request event data. message.

Why?

I run a lot of workflows with repository_dispatch and I would like to receive comments on the PR that triggered the event.

How has it been tested?

Dispatcher: https://github.com/pellizzetti/actions/blob/master/.github/workflows/pr_number.yml
Receiver: https://github.com/pellizzetti/actions/blob/master/.github/workflows/pr-number-event.yml

PR with comment returned on the Receiver workflow.

@pellizzetti
Copy link
Author

pellizzetti commented Apr 5, 2022

Closing this in favor of #496 😆

Feel free to ping me if you guys want to merge/work on this one instead.

@pellizzetti pellizzetti closed this Apr 5, 2022
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.

1 participant