Skip to content

Commit

Permalink
Merge pull request #100 from screwdriver-cd/bug
Browse files Browse the repository at this point in the history
fix: model passes in webhookUrl for add webhooks
  • Loading branch information
minzcmu authored Dec 20, 2016
2 parents 8d56200 + 55c0114 commit dbb7cd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/scm.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const checkoutUrl = Joi.reach(models.pipeline.create, 'checkoutUrl').required();
const ADD_WEBHOOK = Joi.object().keys({
scmUri,
token,
url: Joi.string().uri({
webhookUrl: Joi.string().uri({
scheme: [
'http',
'https'
Expand Down
2 changes: 1 addition & 1 deletion test/data/scm.addWebhook.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
scmUri: github.com:126987453:master
token: thisisashinytoken
url: https://screwdriver.cd/v4/some-endpoint
webhookUrl: https://screwdriver.cd/v4/some-endpoint

0 comments on commit dbb7cd4

Please sign in to comment.