Skip to content

Commit 203bf42

Browse files
authored
Fix type of SourceProjectID in MergeRequest struct
It should be an int64, but was a string. https://docs.gitlab.com/ce/user/project/integrations/webhooks.html#comment-on-merge-request The incorrect type caused the MergeRequest field in comment event payloads to be empty.
1 parent 5e4be82 commit 203bf42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitlab/payload.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ type MergeRequest struct {
312312
ID int64 `json:"id"`
313313
TargetBranch string `json:"target_branch"`
314314
SourceBranch string `json:"source_branch"`
315-
SourceProjectID string `json:"source_project_id"`
315+
SourceProjectID int64 `json:"source_project_id"`
316316
AssigneeID int64 `json:"assignee_id"`
317317
AuthorID int64 `json:"author_id"`
318318
Title string `json:"title"`

0 commit comments

Comments
 (0)