Example for programitically adding an issue to onedev.
This commit is contained in:
parent
a993e8c9b1
commit
386fcdea47
|
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"projectId" : 9 ,
|
||||||
|
"title" : "Hi From Curl" ,
|
||||||
|
"description" : "This was posted from curl." ,
|
||||||
|
"confidential" : false ,
|
||||||
|
"milestoneIds" : [ ] ,
|
||||||
|
"fields" : {
|
||||||
|
"Type" : "Build Failure"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -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
|
||||||
Loading…
Reference in New Issue