Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Filter Github issues closed by a user

Tags:

github

Is there way to filter the issues closed by a user.

Referred the below link, but didn't help.

https://docs.github.com/en/search-github/searching-on-github/searching-issues-and-pull-requests

like image 716
Ravi MCA Avatar asked Jun 28 '26 23:06

Ravi MCA


1 Answers

You could list repository issues, filtering by state: closed.
The answer includes a closed_by field that you can use to filter the result set.

Another approach, using GitHub GraphQL, is possible en though the Issue object does not have a ClosedEvent field which actually has the Actor field with the user details.

GitHub support suggests in that thread

query commits{
  repository(owner: "rohit-smpx", name:"inno"){
    issues(first: 10, states:CLOSED){
      nodes{
        number
        title
        timelineItems(itemTypes:CLOSED_EVENT, last: 1){
          nodes{
            __typename
            ...on ClosedEvent{
              actor{
                login
              }
              createdAt
            }
          }
        }
      }
    }
  }
}
like image 54
VonC Avatar answered Jul 02 '26 07:07

VonC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!