Skip to content

Commit

Permalink
fix: Update command used to determine branch name (#50)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Requires Git 2.22.0 or above
  • Loading branch information
Jack Barry authored Nov 23, 2021
1 parent 75601b4 commit 9237655
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ module.exports = function(options) {
const minHeaderWidth = getFromOptionsOrDefaults('minHeaderWidth');
const maxHeaderWidth = getFromOptionsOrDefaults('maxHeaderWidth');

const branchName = execSync('git rev-parse --abbrev-ref HEAD').toString().trim();
const branchName = execSync('git branch --show-current').toString().trim();
const jiraIssueRegex = /(?<jiraIssue>(?<!([A-Z0-9]{1,10})-?)[A-Z0-9]+-\d+)/;
const matchResult = branchName.match(jiraIssueRegex);
const jiraIssue =
Expand Down

0 comments on commit 9237655

Please sign in to comment.