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

Fix webhook source identification #831

Merged

Conversation

iammattcoleman
Copy link
Contributor

@iammattcoleman iammattcoleman commented Oct 9, 2017

GitHub and GitLab both send $payload['repository']['url'], but only GitLab's payload contains $payload['project'].

This ensures that the proper URLs are used from webhook payloads when GitLab is configured with nonstandard URLs (for example, when developing integrations in a local instance of gitlab-development-kit).

GitHub and GitLab both send `$payload['repository']['url']`, but only
GitLab's payload contains `$payload['project']`.

This ensures that the proper URLs are used from webhook payloads and
fixes testing integrations with nonstandard URLs (for example, when
developing integrations in a local instance of gitlab-development-kit).
@iammattcoleman
Copy link
Contributor Author

@Seldaek Hey, I noticed you're the last person to modify this file. Can you give it a review? Thanks!

@Seldaek Seldaek merged commit 20fb2f5 into composer:master Nov 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants