Using exclude_pull_requests
in "List workflow runs for a repository" API endpoint
#148703
Replies: 2 comments 1 reply
-
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
Could there be a bug in the GitHub API that causes the exclude_pull_requests parameter to be ignored? |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Bug
Body
Hello,
I'm probably missing something, but according to the documentation of the "list workflow runs for a repository" API endpoint (see https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-repository), the
exclude_pull_requests
parameter can be used to omit pull requests from the response. However, this parameter seems to have no effect in practice. Consider the two following API calls, the first one without the parameter, the second one with:https://api.github.com/repos/pandas-dev/pandas/actions/runs
https://api.github.com/repos/pandas-dev/pandas/actions/runs?exclude_pull_requests=true
They both return the same number of items (see the
total_count
field) and runs triggered by pull requests.Did I miss something? Is my understanding/use of this parameter correct?
Beta Was this translation helpful? Give feedback.
All reactions