Methods
(inner) inferPullRequest(envopt) → {module:core/service-test-runner/infer-pull-request~PullRequest}
When called inside a CI build, infer the details of a pull request from the environment variables.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
env |
object |
<optional> |
process.env | Environment variables |
Returns:
Pull Request
Type Definitions
PullRequest
Pull Request
Properties:
Name | Type | Description |
---|---|---|
pr.baseUrl |
string | (returned for travis CI only) |
owner |
string | |
repo |
string | |
pullRequest |
string | PR/issue number |
slug |
string | owner/repo/#pullRequest |