glygener / glygen-issues

Repository for public GlyGen tickets
GNU General Public License v3.0
0 stars 0 forks source link

Automatic Issue Creation from Email and Contact Page #329

Closed HadleyKing closed 8 months ago

HadleyKing commented 1 year ago

[WIP]

HadleyKing commented 1 year 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.

HadleyKing commented 1 year ago

@rykahsay @rajamazumder

ReneRanzinger commented 1 year ago

There is an documented API on GitHub how to create tickets with all metadata (labels, milestone etc).

@rykahsay see if we can use this.

rykahsay commented 9 months ago

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"]}'
jeet-vora commented 9 months ago

@ReneRanzinger @rykahsay @sujeetvkulkarni

Let me know what scopes to select for the token

image image image
ReneRanzinger commented 9 months ago

@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.

jeet-vora commented 9 months ago

@rykahsay @ReneRanzinger Account login and token sent via email On Feb 14 titled Github (glygen-help)

rykahsay commented 9 months ago

It is using the "glygen-help" user now