How to get labels from current PR? #30923
-
|
I have a workflow that has a job that adds labels, then I have other jobs that check to make sure the labels exist using: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
|
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: |
Beta Was this translation helpful? Give feedback.
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: