Skip to content

Commit

Permalink
ci-parser: fix detection of lite CI pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
richardlau committed Jun 13, 2019
1 parent 8d64553 commit 433293a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/ci/ci_type_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const CI_TYPES = new Map([
[LITE_PR_PIPELINE, {
name: 'Lite PR Pipeline',
jobName: 'node-test-pull-request-lite-pipeline',
pattern: /node-test-pull-request-lite-pipeline\/(\d+)\/pipeline/,
pattern: /node-test-pull-request-lite-pipeline\/(\d+)/,
type: LITE_CI
}],
[LITE_COMMIT, {
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/commits_after_ci.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"bodyText": "CI: https://ci.nodejs.org/job/node-test-pull-request/10984/",
"publishedAt": "2017-10-24T11:19:25Z"
},{
"bodyText": "Lite-CI: https://ci.nodejs.org/job/node-test-pull-request-lite-pipeline/10984/pipeline",
"bodyText": "Lite-CI: https://ci.nodejs.org/job/node-test-pull-request-lite-pipeline/10984",
"publishedAt": "2017-10-22T11:19:25Z"
}]
}
2 changes: 1 addition & 1 deletion test/unit/pr_checker.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ describe('PRChecker', () => {
['- feat: add something']
],
info: [
['Last Lite PR Pipeline CI on 2017-10-22T11:19:25Z: https://ci.nodejs.org/job/node-test-pull-request-lite-pipeline/10984/pipeline'],
['Last Lite PR Pipeline CI on 2017-10-22T11:19:25Z: https://ci.nodejs.org/job/node-test-pull-request-lite-pipeline/10984'],
['Last Full PR CI on 2017-10-24T11:19:25Z: https://ci.nodejs.org/job/node-test-pull-request/10984/']
]
};
Expand Down

0 comments on commit 433293a

Please sign in to comment.