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: actually calls addWebhook function #35

Merged
merged 1 commit into from
Dec 21, 2016
Merged

fix: actually calls addWebhook function #35

merged 1 commit into from
Dec 21, 2016

Conversation

d2lam
Copy link
Member

@d2lam d2lam commented Dec 20, 2016

After screwdriver-cd/data-schema#100 is merged, will get TypeError: Cannot read property 'lookupScmUri' of undefined because of this bug.

Related: screwdriver-cd/screwdriver#379
Blocked by: screwdriver-cd/data-schema#100

@@ -55,7 +55,7 @@ class ScmBase {
*/
addWebhook(config) {
return validate(config, dataSchema.plugins.scm.addWebhook)
.then(this._addWebhook);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be needed because validate passes config.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, it's because it loses this context internally.

Copy link
Contributor

@stjohnjohnson stjohnjohnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@d2lam d2lam closed this Dec 20, 2016
@d2lam d2lam reopened this Dec 20, 2016
@d2lam d2lam closed this Dec 20, 2016
@d2lam d2lam reopened this Dec 20, 2016
@d2lam d2lam merged commit 8868206 into master Dec 21, 2016
@d2lam d2lam deleted the webhookbug branch December 21, 2016 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants