我正在尝试将许多问题从excel转移到GitHub问题。
我遇到的问题是,我无法弄清楚如何使用组织的获取访问令牌来自动将问题推送到GitHub。
我曾尝试为该组织制作OAuth令牌,但始终收到错误的凭据错误。
确保您的OAuth token has a "repo" scopr。
然后尝试creating a new issue(作为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"
]
}'