-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add PR number to output when triggered by push #13
base: master
Are you sure you want to change the base?
Conversation
DeepCode Report (#d6a2c7)DeepCode analyzed this pull request. |
When triggered by a push event, the pull request number which is created or found to | ||
already exist is stored in the `pull-request` output variable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't break markdown lines like that. If you're bothered by the horizontal scrollbar, consider activating the word wrap in your text editor (ALT+Z
, if you're using VSCode 🙂).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My editor did this without me noticing. Will correct.
@@ -133,6 +133,7 @@ async function push() { | |||
core.info(`Label ${label} added to #${pull_number}.`); | |||
core.debug(JSON.stringify(labelsResponse.data)); | |||
} | |||
core.setOutput("pull-request", pull_number.toString()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we're supposed to add this to the action.yml
file. Check out the documentation.
Thanks for the PR. Did you find yourself any useful workflow using the new output? |
It might be desirable to output the pull number when handling other triggers, but I wasn't sure what would be useful in the case of
check_run
, when multiple PRs might be merged, so I kept my change narrow.View rendered README.md