Skip to content

Commit

Permalink
Make HUSKY_GIT_PARAMS optional
Browse files Browse the repository at this point in the history
  • Loading branch information
jessedobbelaere committed Dec 25, 2024
1 parent 5305567 commit 3b695ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const jiraTag = process.argv[2];
const tagMatcher = process.env.TAG_MATCHER
? new RegExp(process.env.TAG_MATCHER, "i")
: new RegExp(`^${jiraTag}-\\d+`, "i");
const commitMsgFile = process.env.GIT_PARAMS || process.env.HUSKY_GIT_PARAMS;
const commitMsgFile = process.env.GIT_PARAMS || process.env.HUSKY_GIT_PARAMS || ".git/COMMIT_EDITMSG";
const commitMsg = fs.readFileSync(commitMsgFile, { encoding: "utf-8" });
const branchName = fetchBranchNameFromGit();
const issueTag = getIssueTagFromBranchName(branchName);
Expand Down

0 comments on commit 3b695ad

Please sign in to comment.