将问题从 excel 转移到 github 组织

Moving issues from excel to github organization

我正在尝试将一堆问题从 excel 转移到 GitHub 问题。

我遇到的问题是我无法弄清楚如何使用获取组织的访问令牌来自动将问题推送到 GitHub。

我尝试为该组织制作 OAuth 令牌,但我一直收到错误的凭据错误。

确保您的 OAuth token has a "repo" scopr.

然后试试creating a new issue (as in this gist)

curl -X "POST" "https://api.github.com/repos/rickcogley/REPONAME/issues?state=all" \
     -H "Cookie: logged_in=no" \
     -H "Authorization: token THEd13GITHUBfb87TOKENa4FROM5eSETTINGS" \
     -H "Content-Type: text/plain; charset=utf-8" \
     -d $'{
  "title": "A workflow alerts Operator who performs a process",
  "body": "TBD",
  "milestone": 5,
  "assignees": [
    "RickCogley",
    "NathanielPhillips"
  ],
  "labels": [
    "story",
    "#2",
    "enhancement",
    "production"
  ]
}'