리소스 가중치 이벤트 API
Tier: Free, Premium, Ultimate
Offering: GitLab.com, Self-managed, GitLab Dedicated
- GitLab 13.2에서 도입되었습니다.
리소스 가중치 이벤트는 GitLab 이슈에 대해 발생하는 사건을 추적합니다.
가중치가 설정된 내용, 수행자, 그리고 발생 시간을 추적하는 데 사용할 수 있습니다.
이슈
프로젝트 이슈 가중치 이벤트 디렉터리
단일 이슈에 대한 모든 가중치 이벤트 디렉터리을 가져옵니다.
GET /projects/:id/issues/:issue_iid/resource_weight_events
속성 | 유형 | 필수 | 설명 |
---|---|---|---|
id
| integer/string | yes | 프로젝트의 ID 또는 URL 인코딩된 경로 |
issue_iid
| integer | yes | 이슈의 IID |
예시 요청:
curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/5/issues/11/resource_weight_events"
예시 응답:
[
{
"id": 142,
"user": {
"id": 1,
"name": "Administrator",
"username": "root",
"state": "active",
"avatar_url": "https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon",
"web_url": "http://gitlab.example.com/root"
},
"created_at": "2018-08-20T13:38:20.077Z",
"issue_id": 253,
"weight": 3
},
{
"id": 143,
"user": {
"id": 1,
"name": "Administrator",
"username": "root",
"state": "active",
"avatar_url": "https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon",
"web_url": "http://gitlab.example.com/root"
},
"created_at": "2018-08-21T14:38:20.077Z",
"issue_id": 253,
"weight": 2
}
]
단일 이슈 가중치 이벤트 가져오기
특정 프로젝트 이슈의 단일 가중치 이벤트를 반환합니다.
GET /projects/:id/issues/:issue_iid/resource_weight_events/:resource_weight_event_id
매개변수:
속성 | 유형 | 필수 | 설명 |
---|---|---|---|
id
| integer/string | yes | 프로젝트의 ID 또는 URL 인코딩된 경로 |
issue_iid
| integer | yes | 이슈의 IID |
resource_weight_event_id
| integer | yes | 가중치 이벤트의 ID |
예시 요청:
curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/5/issues/11/resource_weight_events/143"
예시 응답:
{
"id": 143,
"user": {
"id": 1,
"name": "Administrator",
"username": "root",
"state": "active",
"avatar_url": "https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon",
"web_url": "http://gitlab.example.com/root"
},
"created_at": "2018-08-21T14:38:20.077Z",
"issue_id": 253,
"weight": 2
}