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

后端 未结 5 980
无人及你
无人及你 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: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.

提交回复
热议问题