How can I see all the issues I'm watching on Github?

后端 未结 5 968
无人及你
无人及你 2021-01-29 18:46

Github has a great feature where you can \"watch\" an issue. This is handy for getting notifications about progress on that issue.

However, sometimes you want to find th

相关标签:
5条回答
  • 2021-01-29 19:16

    You can see all the Github issues you are currently subscribed to at https://github.com/notifications/subscriptions

    You can navigate to this page from any page by clicking the notification/bell icon on the top left and then selecting "Managed Notification" > "Subscriptions" from the left menu panel.

    0 讨论(0)
  • 2021-01-29 19:20

    Seems you can fetch this information via Github API

    https://developer.github.com/v3/issues/#parameters

    GET /orgs/:org/issues

    Parameters
    Name    Type    Description
    filter  string  Indicates which sorts of issues to return. Can be one of:
    * assigned: Issues assigned to you
    * created: Issues created by you
    * mentioned: Issues mentioning you
    * subscribed: Issues you're subscribed to updates for
    * all: All issues the authenticated user can see, regardless of participation or creation
    Default: assigned
    
    0 讨论(0)
  • 2021-01-29 19:22

    According to the GitHub API v3 documentation1, there is a way to list subscribed issues in owned repositories, member repositories, and organization repositories. However, it does not list subscribed issues from any arbitrary repository in which you are not involved.

    On Unix you can access the API like this (just enter your GitHub password when propmted):

    curl --user "MyUserName" https://api.github.com/issues?filter=subscribed
    
    Output:
    [
      {
        "url": "https://api.github.com/repos/owner1/repoA/issues/3",
        "repository_url": "https://api.github.com/repos/owner1/repoA",
    ...etc...
    

    Or use this command to format the output as a list of links to the issues:

    curl --user "MyUserName" https://api.github.com/issues?filter=subscribed | \
        grep '"url"' | grep -o 'https://api.github.com/repos/.*/issues/[0-9]*' | \
        sed 's#https://api.github.com/repos/#https://github.com/#'
    
    Output:
    https://github.com/owner1/repoA/issues/3
    https://github.com/owner1/repoB/issues/14
    https://github.com/owner2/repoC/issues/1
    

    1 Since my edit to the first answer mentioning the GitHub API was rejected, I'm adding the examples here.


    The following method does not work for subscribe-only issues.

    As a workaround you can enter this into the search box, either on https://github.com/, or on https://github.com/issues/

    is:open is:issue involves:YourUserName
    

    This will show you all issues in which you are involved in some way, but not issues you are only subscribed to. The GitHub help page states:

    The involves qualifier is just a logical OR between the author, assignee, mentions and commenter qualifiers for the same user.

    0 讨论(0)
  • 2021-01-29 19:22

    If you want to see all the issues for a certain project that you have been part of i.e, interacted with that issue in any way. Do this;

    In the search of Github issues do this.

    is:issue commenter:<username here>
    

    This will list all the issues that you are watching.

    0 讨论(0)
  • 2021-01-29 19:23

    Github does not have any option to list all the watched issues.

    Marking labels on such issues also does not solve the purpose.

    But github sends notification whenever there is any change in the issue. So you can check all the notification at a single place https://github.com/notifications

    By default, this will show unread notifications (also indicated by a mailbox with a number in the top right corner). From that page you can choose "All Notifications", or https://github.com/notifications?all=1 to see all the issues being watched that have had at least one update since you subscribed to it.

    0 讨论(0)
提交回复
热议问题