Skip to content

Commit e684b50

Browse files
authored
Add missing fields to PipelineObjectAttributes
Some fields in PipelineObjectAttributes were missing. Reference: https://docs.gitlab.com/ee/user/project/integrations/webhook_events.html#pipeline-events Specifically I am interested in the `IID` field, which is the internal id, and it is the only way to do a GraphQL query for pipelines. It supports only to query by IID.
1 parent 69430a8 commit e684b50

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gitlab/payload.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -685,6 +685,8 @@ type ObjectAttributes struct {
685685
// PipelineObjectAttributes contains pipeline specific GitLab object attributes information
686686
type PipelineObjectAttributes struct {
687687
ID int64 `json:"id"`
688+
IID int64 `json:"iid"`
689+
Name string `json:"name"`
688690
Ref string `json:"ref"`
689691
Tag bool `json:"tag"`
690692
SHA string `json:"sha"`
@@ -696,6 +698,7 @@ type PipelineObjectAttributes struct {
696698
FinishedAt customTime `json:"finished_at"`
697699
Duration int64 `json:"duration"`
698700
Variables []Variable `json:"variables"`
701+
Url string `json:"url"`
699702
}
700703

701704
// Variable contains pipeline variables

0 commit comments

Comments
 (0)