curl --request POST \
--url https://gogs.example.com/api/v1/repos/{owner}/{repo}/issues/{index}/comments \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"body": "<string>"
}
'{
"id": 123,
"html_url": "<string>",
"user": {
"id": 123,
"username": "<string>",
"login": "<string>",
"full_name": "<string>",
"email": "[email protected]",
"avatar_url": "<string>"
},
"body": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}curl --request POST \
--url https://gogs.example.com/api/v1/repos/{owner}/{repo}/issues/{index}/comments \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"body": "<string>"
}
'{
"id": 123,
"html_url": "<string>",
"user": {
"id": 123,
"username": "<string>",
"login": "<string>",
"full_name": "<string>",
"email": "[email protected]",
"avatar_url": "<string>"
},
"body": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Personal access token. Use format: token {YOUR_ACCESS_TOKEN}
Repository owner
Repository name
Issue index