Skip to content

How to get the author of a PR? #25502

Answered by BrightRan
zachliu asked this question in Actions
Sep 30, 2020 · 15 comments · 1 reply
Discussion options

You must be logged in to vote

@zachliu,

If A opens a PR and triggers a workflow,

At this time, the workflow is triggered by pull_request event, to get the author who opened the PR, using the expression “github.event.pull_request.user.login”.
The events “pull_request_review”, “pull_request_review_comment” and “pull_request_target” use the same expression.


If B comments on A’s PR and triggers another workflow

At this time, the workflow is triggered by issue_comment event, to get the author who opened the PR, using the expression “github.event.issue.user.login”.

Replies: 15 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@nitishgupta08
Comment options

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
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
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
3 participants