Seeking a way to clone the issues for github projects

前端 未结 2 588
闹比i
闹比i 2021-01-05 06:02

I would like to be able to use git to clone the issues for various projects on github. I know I can clone the code and the wiki (if it exists). I cannot find a way to clone

相关标签:
2条回答
  • 2021-01-05 06:21

    It is not possible to clone issues of GitHub repositories. An alternative for you to get the issues' data would be to use the GitHub APIs.

    Check out the documentation here to get issues for a repository.

    GET /repos/:owner/:repo/issues
    

    You can get the issues' data using the API, store it in file system and then run your necessary scripts on them.

    0 讨论(0)
  • 2021-01-05 06:30

    Thanks to @madhu-bhat's suggestion I read the documents on GitHub's v3 API and discovered examples such as

    curl -i "https://api.github.com/repos/vmg/redcarpet/issues?state=closed"

    which I then revised to get the open issues for one of our projects:

    curl -i "https://api.github.com/repos/kiwix/kiwix-android/issues?state=open"

    This approach does what I need and allows me to filter by the state, etc. +1 for StackOverflow.

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