将问题从excel移动到github组织中

问题描述 投票:1回答:1

我正在尝试将许多问题从excel转移到GitHub问题。

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

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

github github-api organization github-organizations
1个回答
0
投票

确保您的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"
  ]
}'
© www.soinside.com 2019 - 2024. All rights reserved.