Skip to content

Commit

Permalink
More changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ghanshyamjoshi committed Mar 7, 2022
1 parent a2b8c5e commit bcf4536
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 @@ -8,7 +8,7 @@ async function run() {
try {

let regex = new RegExp(`${jiraPrefix}-[0-9]+`);
if (prName==null || regex.test(prName)) {
if (jiraPrefix==null || prName == null || regex.test(prName)) {
core.setFailed("Jira Issue Key missing in PR title or description.");
return;
}
Expand Down

0 comments on commit bcf4536

Please sign in to comment.