Skip to content

Instantly share code, notes, and snippets.

@RickCogley
Last active May 13, 2024 08:23
Show Gist options
  • Save RickCogley/14e5a4c2ffec1d06606a554cdd5033d9 to your computer and use it in GitHub Desktop.
Save RickCogley/14e5a4c2ffec1d06606a554cdd5033d9 to your computer and use it in GitHub Desktop.
Curl Script to Create a Github Issue
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"
]
}'
@alexvasili
Copy link

Do you know how to create an issue using a template? adding "template": "templateName.md" doesn't seem to work.

@RickCogley
Copy link
Author

Via the API? I don't see anything that indicates that's possible, in the spec: https://docs.github.com/en/rest/issues/issues?apiVersion=2022-11-28#create-an-issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment