Skip to content

Commit

Permalink
Merge pull request #54 from screwdriver-cd/adding-pr
Browse files Browse the repository at this point in the history
fix: decorate pr
  • Loading branch information
lusol authored May 8, 2018
2 parents 45eb170 + d52945e commit b2b6777
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,10 +347,10 @@ The parameters required are:
| config.scmContext | String | No | The name of scm context |

#### Expected Outcome
The object consists of PR name, sha and ref for the pipeline.
The object consists of PR name, sha, ref, and url for the pipeline.

#### Expected Promise Response
1. Resolve with the object consists of PR name, sha and ref
1. Resolve with the object consists of PR name, sha, ref, and url
2. Reject if the input or output is not valid

### getScmContexts
Expand Down
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,8 @@ class ScmBase {
.then(pr => validate(pr, Joi.object().keys({
name: Joi.reach(dataSchema.models.job.base, 'name').required(),
sha: Joi.reach(dataSchema.models.build.base, 'sha').required(),
ref: Joi.string().required()
ref: Joi.string().required(),
url: Joi.reach(dataSchema.core.scm.pr, 'url')
})));
}

Expand Down

0 comments on commit b2b6777

Please sign in to comment.