From 203bf4218bb078db4cac9d1ba284780a8eb102a1 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Fri, 29 Sep 2017 19:54:03 +0000 Subject: [PATCH] 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. --- gitlab/payload.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitlab/payload.go b/gitlab/payload.go index 3d06d5f..5af8b1a 100644 --- a/gitlab/payload.go +++ b/gitlab/payload.go @@ -312,7 +312,7 @@ type MergeRequest struct { ID int64 `json:"id"` TargetBranch string `json:"target_branch"` SourceBranch string `json:"source_branch"` - SourceProjectID string `json:"source_project_id"` + SourceProjectID int64 `json:"source_project_id"` AssigneeID int64 `json:"assignee_id"` AuthorID int64 `json:"author_id"` Title string `json:"title"`