-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for GitLab Push Event #11007
Conversation
LGTM @bparees ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor nit and lgtm.
@@ -16,7 +16,7 @@ import ( | |||
) | |||
|
|||
var ( | |||
ErrNoGitHubEvent = errors.New("missing X-GitHub-Event or X-Gogs-Event") | |||
ErrNoGitHubEvent = errors.New("missing X-GitHub-Event or X-Gogs-Event or X-Gitlab-Event") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please change this text to:
"missing X-GitHub-Event, X-Gogs-Event, or X-Gitlab-Event"
if method != "ping" && method != "push" { | ||
return revision, envvars, proceed, fmt.Errorf("Unknown X-GitHub-Event or X-Gogs-Event %s", method) | ||
if method != "ping" && method != "push" && method != "Push Hook" { | ||
return revision, envvars, proceed, fmt.Errorf("Unknown X-GitHub-Event or X-Gogs-Event or X-Gitlab-Event %s", method) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same message change here (comma separated list instead of multiple ors)
@bparees Changed the notice msg. |
please squash your commits and lgtm. |
@vanloswang can you confirm that the gitlab webhok payload is compatible w/ the github push payload? |
@vanloswang please squash and i'll merge based on your confirmation in the related issue that this fix works. |
Enable WebHook for build intergrated with GitLab Push Event, fix #11002