Skip to content
Discussion options

You must be logged in to vote

That's correct, the event payload has the state of when the event happened. There's no "fix" for the event because it's correct.

If you want the current labels of the PR you can use the Pulls API to get them. For example this should print the label names one per line:

run: |
  gh api --jq '.labels.[].name' /repos/{owner}/{repo}/pulls/${{ github.event.number }}

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@thatrandomperson5
Comment options

@thatrandomperson5
Comment options

@airtower-luna
Comment options

@thatrandomperson5
Comment options

@thatrandomperson5
Comment options

Answer selected by thatrandomperson5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Product Feedback Share your thoughts and suggestions on GitHub features and improvements
2 participants