Closed HadleyKing closed 8 months ago
Currently BCO has a Netlify to push "Contact Us" forms to Slack. We have a link on our page to forward to Github issue creation using templates.
@rykahsay @rajamazumder
There is an documented API on GitHub how to create tickets with all metadata (labels, milestone etc).
@rykahsay see if we can use this.
If I make the example request shown below, the issue will be created by rykahsay (if the authorization token is mine) and assigned to jeetvora. My question is, do we have some organizational github account which has a login token? If yes, please provide me it's login token. Until then, these automatically created issues will be created by rykahsay.
TOKEN="xyzabc123..."
curl -L -X POST -H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $TOKEN" -H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/glygener/glygen-issues/issues \
-d '{"title":"Found a bug","body":"I'\''m having a problem with this.","assignees":["jeetvora"],"labels":["fronten_user_issue"]}'
@ReneRanzinger @rykahsay @sujeetvkulkarni
Let me know what scopes to select for the token
@jeet-vora It seems there is no granularity for just ticket/issue access. You will need public_repo or if zou want to create the tickets in a private repository: repo. @rykahsay please make sure that the token does not end up in the repository. Best a config file and that file on ignore. Otherwise somebody can really do some damage with this permissions.
@rykahsay @ReneRanzinger Account login and token sent via email On Feb 14 titled Github (glygen-help)
It is using the "glygen-help" user now
[WIP]