Skip to content

Workflow context when triggered by issue_comment #25917

Answered by ethomson
fernap3 asked this question in Actions
Discussion options

You must be logged in to vote

Comments on issues and pull requests will have the ref set to the default branch.  However, you should be able to inspect the full github event context for the information about the pull request in question.

I think that what you’re looking for is github.event.issue.pull_request and github.event.issue.number.

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
7 participants