Skip to content
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

Closed
wants to merge 2 commits into from
Closed

Add support for GitLab Push Event #11007

wants to merge 2 commits into from

Conversation

vanloswang
Copy link

Enable WebHook for build intergrated with GitLab Push Event, fix #11002

@mfojtik
Copy link
Contributor

mfojtik commented Sep 20, 2016

LGTM @bparees ?

Copy link
Contributor

@bparees bparees left a 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")
Copy link
Contributor

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)
Copy link
Contributor

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)

@vanloswang
Copy link
Author

@bparees Changed the notice msg.

@bparees
Copy link
Contributor

bparees commented Sep 20, 2016

please squash your commits and lgtm.

@bparees
Copy link
Contributor

bparees commented Sep 20, 2016

@vanloswang can you confirm that the gitlab webhok payload is compatible w/ the github push payload?

@bparees
Copy link
Contributor

bparees commented Sep 21, 2016

@vanloswang please squash and i'll merge based on your confirmation in the related issue that this fix works.

@vanloswang
Copy link
Author

@bparees goto #11031

@vanloswang vanloswang closed this Sep 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WebHook on GitLab does not work
4 participants