Skip to content

Commit

Permalink
Fix GitLab webhook event Project field typo (#152)
Browse files Browse the repository at this point in the history
Fix the json field name of `Project` in GitLab's `PushEventPayload` and
`TagEventPayload`. The json field name should be lowercase `project`
according to
https://docs.gitlab.com/ee/user/project/integrations/webhook_events.html#push-events.
  • Loading branch information
lilincmu authored May 21, 2023
1 parent f8c31d0 commit e9470cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gitlab/payload.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ type PushEventPayload struct {
UserEmail string `json:"user_email"`
UserAvatar string `json:"user_avatar"`
ProjectID int64 `json:"project_id"`
Project Project `json:"Project"`
Project Project `json:"project"`
Repository Repository `json:"repository"`
Commits []Commit `json:"commits"`
TotalCommitsCount int64 `json:"total_commits_count"`
Expand All @@ -92,7 +92,7 @@ type TagEventPayload struct {
UserUsername string `json:"user_username"`
UserAvatar string `json:"user_avatar"`
ProjectID int64 `json:"project_id"`
Project Project `json:"Project"`
Project Project `json:"project"`
Repository Repository `json:"repository"`
Commits []Commit `json:"commits"`
TotalCommitsCount int64 `json:"total_commits_count"`
Expand Down

0 comments on commit e9470cb

Please sign in to comment.