Skip to content

Commit

Permalink
feat(cirrus): add support for prBranch (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjyoungblood authored Feb 1, 2022
1 parent a7b1cd1 commit d68454c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions services/cirrus.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ module.exports = {
branch: isPr ? env.CIRRUS_BASE_BRANCH : env.CIRRUS_BRANCH,
pr,
isPr,
prBranch: isPr ? env.CIRRUS_BRANCH : undefined,
slug: env.CIRRUS_REPO_FULL_NAME,
root: env.CIRRUS_WORKING_DIR,
};
Expand Down
2 changes: 2 additions & 0 deletions test/services/cirrus.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ test('Push', (t) => {
branch: 'master',
pr: undefined,
isPr: false,
prBranch: undefined,
slug: 'owner/repo',
root: '/',
});
Expand All @@ -47,6 +48,7 @@ test('PR', (t) => {
branch: 'master',
pr: '239',
isPr: true,
prBranch: 'pr-branch',
slug: 'owner/repo',
root: '/',
}
Expand Down

0 comments on commit d68454c

Please sign in to comment.