[BUG?] the REST API that get workflow run returns wrong pull request info #24674
-
Apologize for adding that question mark. Actually I’m not really sure if it a bug, but when I tried to get the pull request info which triggered the workflow run, I found a different pull request. In my repo However, when I GET the workflow run info with https://api.github.com/repos/Laurenfrost/ActionsTest/actions/runs/1578145440, the Does anyone know how does it happen?
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
I’m pretty sure |
Beta Was this translation helpful? Give feedback.
-
Thank you! That makes sense. It seems the document not mention the usage of |
Beta Was this translation helpful? Give feedback.
-
The “documentation” is here:
Actions - GitHub DocsIf you’re up for it, you could file a bug:
Issues · github/docsThe open-source repo for docs.github.com. Contribute to github/docs development by creating an account on GitHub. Personally, I agree that the documentation is inadequate, it has a field, but in the example there are 0 entries, so it isn’t possible to divine what it is. (If it had 3, one a couple before the PR and one after, and one somewhere, that’d make it fairly clear that it isn’t related to the run…) |
Beta Was this translation helpful? Give feedback.
-
Couldn’t agree more. Maybe I should open an isssue. Thank you every much! |
Beta Was this translation helpful? Give feedback.
I’m pretty sure
pull_requests
is the list of open pull requests, it’s provided for convenience and not particularly related to the event.