Example for programitically adding an issue to onedev.

This commit is contained in:
James Pace 2022-12-04 16:55:51 -05:00
parent a993e8c9b1
commit 386fcdea47
2 changed files with 14 additions and 0 deletions

10
scripts/issue-body.json Normal file
View File

@ -0,0 +1,10 @@
{
"projectId" : 9 ,
"title" : "Hi From Curl" ,
"description" : "This was posted from curl." ,
"confidential" : false ,
"milestoneIds" : [ ] ,
"fields" : {
"Type" : "Build Failure"
}
}

View File

@ -0,0 +1,4 @@
curl -u tekton:$TEKTON_API_KEY \
-d@issue-body.json \
-H "Content-Type: application/json" \
https://git.jpace121.net/~api/issues