[Feature Request] Filter out locked issues or pull requests #130869
Replies: 2 comments 2 replies
-
💬 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.
-
Did you experiment with the gh api \
--method GET \
/search/issues \
--raw-field 'q=repo:klaasnicolaas/home-assistant-glow is:closed is:issue is:locked' \
--jq '.items[] | [.number, .title] | @tsv'
# 421 Not a bug - request for better guide when changing parameters
# 151 strange readings
# 34 Photodiode sensitivity not enough for led detection + red led stays on
The same can also be done with the Variable{"filter": "repo:klaasnicolaas/home-assistant-glow is:closed is:issue is:locked"} Queryquery ($filter: String!) {
search(type: ISSUE, query: $filter, first: 100) {
issueCount
nodes {
... on Issue {
title
number
}
}
}
} Result{
"data": {
"search": {
"issueCount": 3,
"nodes": [
{
"title": "Not a bug - request for better guide when changing parameters",
"number": 421
},
{
"title": "strange readings ",
"number": 151
},
{
"title": "Photodiode sensitivity not enough for led detection + red led stays on",
"number": 34
}
]
}
}
} Footnotes |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Product Feedback
Body
Hello!
Background:
I developed a custom GitHub action that automatically locks an issue or pull requests if it was already closed due to inactivity.
What currently happens in the code is that it retrieves a list of closed issues or pull requests (e.g. with this API endpoint). If a repository have more closed issues in the future, the list you retrieve will also become larger and larger (okay... still in batches of 100). As a result, you will also make more and more requests to the REST API.
Feature request:
I would like to see the option to filter what I get back as an REST API response. For example, I only want the list of issues with
state: 'closed'
, and filter out what is alreadylocked: true
. This also has the advantage that the REST API does not have to be accessed as often, which could reduce the number of requests to the server.Before creating this discussion I couldn't find anything similar. Apologies if this is a duplicate.
Thnx!
./Klaas
Beta Was this translation helpful? Give feedback.
All reactions