How can I export GitHub issues to Excel?

前端 未结 12 1876
逝去的感伤
逝去的感伤 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-07 16:32

    GitHub's JSON API can be queried from directly in Excel using Power Query. It does require some knowledge about how to convert JSON into Excel table format but that's fairly Googlable.

    Here's how to first get to the data:

    • In Excel, on Ribbon, click Data > Get Data > From JSON. In dialog box, enter API URL ... in format similar to (add parms as you wish): https://api.github.com/repos/{owner}/{repo}/issues

    • A dialog box labeled "Access Web content" will appear.

    • On the left-hand side, click the Basic tab.

    • In the User name textbox, enter your GitHub username.

    • In the Password textbox, enter a GitHub password/Personal Access token.

    • Click Connect.

    • Power Query Editor will be displayed with a list of items that say Record.

    ... now Google around for how to transform accordingly so that the appropriate issue data can be displayed as a single table.

提交回复
热议问题