Issue Event
Description of issue event parameters
Request Headers
Parameter Name | Type | Description |
---|---|---|
User-Agent | string | |
Content-Type | string | |
X-GitCode-Event | string | Event type, Issue Hook represents an issue event |
X-GitCode-Delivery | string | Unique request ID |
Request Parameters
Parameter Name | Parameter Type | Description |
---|---|---|
produce_random_id | string | Randomly generated event ID |
event_type | string | Event type, here is "issue" |
object_kind | string | Object type, here is "issue" |
object_attributes.id | integer | Issue ID |
object_attributes.iid | integer | Issue ID in the project |
object_attributes.project_id | integer | Project ID |
object_attributes.title | string | Issue title |
object_attributes.description | string | Issue description content |
object_attributes.state | string | Issue status (opened: open, closed: closed) |
object_attributes.action | string | Operation type (open: open, close: close, reopen: re-open, update: update) |
object_attributes.created_at | string | Creation time |
object_attributes.updated_at | string | Update time |
object_attributes.confidential | boolean | Whether it is a confidential issue |
object_attributes.url | string | Issue's web access address |
object_attributes.time_estimate | integer | |
object_attributes.total_time_spent | integer | |
object_attributes.human_time_estimate | integer | |
object_attributes.human_total_time_spent | integer | |
object_attributes.assignee_ids | array | Assignee ID list |
object_attributes.author.id | integer | Author ID |
object_attributes.author.name | string | Author name |
object_attributes.author.username | string | Author username |
object_attributes.author.email | string | Author email |
object_attributes.author.avatar_url | string | Author avatar URL |
object_attributes.author.web_url | string | Author personal homepage URL |
project.id | integer | Project ID |
project.name | string | Project name |
project.web_url | string | Project web access address |
project.git_ssh_url | string | Project SSH clone address |
project.git_http_url | string | Project HTTP clone address |
project.namespace | string | Project namespace |
project.visibility_level | integer | Project visibility level (0: private, 1 public) |
project.path_with_namespace | string | Project path with namespace |
project.default_branch | string | Default branch |
user.id | integer | User ID triggering the event |
user.name | string | User name triggering the event |
user.username | string | Username triggering the event |
user.email | string | User email triggering the event |
user.avatar_url | string | Avatar URL of the user triggering the event |
labels | array | Issue label list |
changes | object | Fields and new values of the changed Issue |
manual_build | boolean | Whether it is manually triggered |
uuid | string | Unique identifier for the event |
Request Parameters Example
{
"produce_random_id": "9f2bcb9c4c8a41d8bc89e8dc61bbf3ac",
"event_type": "issue",
"object_attributes": {
"iid": 8,
"created_at": "2025-05-07T14:19:24.490+08:00",
"description": "content",
"title": "Test Issue",
"updated_at": "2025-05-07T14:19:24.490+08:00",
"project_id": 1848674,
"action": "open",
"id": 3084068,
"state": "opened",
"confidential": false,
"relative_position": 1073745823,
"author": {
"id": 173794,
"name": "xiaogang_o",
"username": "xiaogang_o",
"iam_id": "ec7b9ce722694cce89d8186a8ec5645f",
"nick_name": "Xiao Gang",
"state": "active",
"avatar_url": "https://cdn-img.gitcode.com/ee/ca/756863eec250a6a067148d4d4fe71d28c3b9716a6f79c03a9f460543fa3dc838.jpg?time=1711433667506",
"email": "xiaogang@csdn.net",
"web_url": "https://gitcode.com/xiaogang_o"
},
"url": "https://gitcode.com/xiaogang_o/test/issues/8",
"time_estimate": 0,
"total_time_spent": 0,
"human_time_estimate": 0,
"human_total_time_spent": 0,
"assignee_ids": []
},
"project": {
"path_with_namespace": "xiaogang_o/test",
"ssh_url": "git@gitcode.com:xiaogang_o/test.git",
"git_http_url": "https://gitcode.com/xiaogang_o/test.git",
"git_ssh_url": "git@gitcode.com:xiaogang_o/test.git",
"url": "git@gitcode.com:xiaogang_o/test.git",
"http_url": "https://gitcode.com/xiaogang_o/test.git",
"web_url": "https://gitcode.com/xiaogang_o/test",
"avatar_url": "https://cdn-img.gitcode.com/ee/ca/756863eec250a6a067148d4d4fe71d28c3b9716a6f79c03a9f460543fa3dc838.jpg?time=1711433667506",
"name": "test",
"namespace": "xiaogang_o",
"visibility_level": 0,
"default_branch": "main",
"id": 1848674,
"homepage": "https://gitcode.com/xiaogang_o/test"
},
"user": {
"avatar_url": "https://cdn-img.gitcode.com/ee/ca/756863eec250a6a067148d4d4fe71d28c3b9716a6f79c03a9f460543fa3dc838.jpg?time=1711433667506",
"name": "xiaogang_o",
"id": 173794,
"email": "xiaogang@csdn.net",
"username": "xiaogang_o"
},
"manual_build": false,
"object_kind": "issue",
"labels": [],
"uuid": "e4e3a55e-4f58-42dd-a134-c128259809f2"
}