From d68454c5400317d54cfb248f4dfd07d135249842 Mon Sep 17 00:00:00 2001 From: Ben Youngblood Date: Tue, 1 Feb 2022 13:22:02 -0700 Subject: [PATCH] feat(cirrus): add support for prBranch (#180) --- services/cirrus.js | 1 + test/services/cirrus.test.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/services/cirrus.js b/services/cirrus.js index 63bb459..7f4ee6c 100644 --- a/services/cirrus.js +++ b/services/cirrus.js @@ -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, }; diff --git a/test/services/cirrus.test.js b/test/services/cirrus.test.js index 4ea70f9..b9c93c9 100644 --- a/test/services/cirrus.test.js +++ b/test/services/cirrus.test.js @@ -25,6 +25,7 @@ test('Push', (t) => { branch: 'master', pr: undefined, isPr: false, + prBranch: undefined, slug: 'owner/repo', root: '/', }); @@ -47,6 +48,7 @@ test('PR', (t) => { branch: 'master', pr: '239', isPr: true, + prBranch: 'pr-branch', slug: 'owner/repo', root: '/', }