Skip to content

Commit d68454c

Browse files
authored
feat(cirrus): add support for prBranch (#180)
1 parent a7b1cd1 commit d68454c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

services/cirrus.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ module.exports = {
2222
branch: isPr ? env.CIRRUS_BASE_BRANCH : env.CIRRUS_BRANCH,
2323
pr,
2424
isPr,
25+
prBranch: isPr ? env.CIRRUS_BRANCH : undefined,
2526
slug: env.CIRRUS_REPO_FULL_NAME,
2627
root: env.CIRRUS_WORKING_DIR,
2728
};

test/services/cirrus.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ test('Push', (t) => {
2525
branch: 'master',
2626
pr: undefined,
2727
isPr: false,
28+
prBranch: undefined,
2829
slug: 'owner/repo',
2930
root: '/',
3031
});
@@ -47,6 +48,7 @@ test('PR', (t) => {
4748
branch: 'master',
4849
pr: '239',
4950
isPr: true,
51+
prBranch: 'pr-branch',
5052
slug: 'owner/repo',
5153
root: '/',
5254
}

0 commit comments

Comments
 (0)