Skip to content

Commit

Permalink
fix(jira-issue-source): fix indication of how the jira issue was foun…
Browse files Browse the repository at this point in the history
…d, by - branch | pr-title | null
  • Loading branch information
galblond committed Sep 3, 2023
1 parent 301d854 commit d354696
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/github-connector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ export class GithubConnector {
switch (WHAT_TO_USE) {
case ESource.branch:
keyFound = this.getIssueKeyFromString(branchName);
source = ESource.branch;
source = keyFound ? ESource.branch : null;
break;
case ESource.prTitle:
keyFound = this.getIssueKeyFromString(prTitle);
source = ESource.prTitle;
source = keyFound ? ESource.prTitle : null;
break;
case ESource.both:
const keyByPRTitle = this.getIssueKeyFromString(prTitle);
Expand Down

0 comments on commit d354696

Please sign in to comment.