Skip to content

GitHub Actions - no way to get PR number on push event? #27071

Answered by gimenete
timhaines asked this question in Actions
Discussion options

You must be logged in to vote

Hi @timhaines 

I think you could get the pull request information using this recent endpoint https://developer.github.com/v3/repos/commits/#list-pull-requests-associated-with-commit using the SHA that you are getting in the payload.

Let me know if that works for you!

Replies: 10 comments 6 replies

Comment options

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

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
Comment options

You must be logged in to vote
5 replies
@RDhar
Comment options

@starverdiyev
Comment options

@RDhar
Comment options

@starverdiyev
Comment options

@bombillazo
Comment options

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