How can I export GitHub issues to Excel?

前端 未结 12 1873
逝去的感伤
逝去的感伤 2020-12-07 15:46

How can I export all my issues from an Enterprise GitHub repository to an Excel file? I have tried searching many Stack Overflow answers but did not succeed. I tried this so

12条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-07 16:26

    As a one-time task, building on 'hub'-based recommendation from @Chip... on a windows system with GitBash prompt already installed:

    1. Download the latest hub executable (such as Windows 64 bit) https://github.com/github/hub/releases/ and extract it (hub.exe is in the .../bin directory).

    2. Create a github personal access token https://github.com/settings/tokens and copy the token text string to the clipboard.

    3. Create a text file (such as in notepad) to use as the input file to hub.exe... the first line is your github user name and on the 2nd line paste the personal access token, followed by a newline (so that both lines will processed when input to hub). Here I presume the file is infile.txt in the repository's base directory.

    4. Run Git Bash... and remember to cd (change directory) to the repository of interest! Then enter a line like:

      /bin/hub.exe issue -s all -f "%U|%t|%S|%cI|%uI|%L%n" < infile.txt > outfile.csv

    5. Then open the file with '|' as the column delimiter. (and consider deleting the personal access token on github).

提交回复
热议问题