Skip to content

Commit

Permalink
feat: add url to jira
Browse files Browse the repository at this point in the history
  • Loading branch information
jamacku committed Aug 12, 2024
1 parent 11fe49c commit dd1e80a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ JIRA Version: 9.12.10

🐛 RHEL-1234 - In Progress - Assignee
Add new feature to curl
See more: https://issues.redhat.com/browse/RHEL-1234

? Story Points
1
Expand Down
4 changes: 4 additions & 0 deletions src/jira.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,8 @@ export class Jira {
},
});
}

getIssueURL(issue: string) {
return `${this.instance}/browse/${issue}`;
}
}
5 changes: 4 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ const cli = async () => {
console.log(
`\n${issueTypeSchema.parse(issue.fields.issuetype.name)} ${issue.key} - ${chalk.bold(issueStatusSchema.parse(issue.fields.status.name))} - ${chalk.italic(issue.fields.assignee?.displayName)}`
);
console.log(`${chalk.italic(issue.fields.summary)}\n`);
console.log(`${chalk.italic(issue.fields.summary)}`);
console.log(
`See more: ${chalk.italic.underline(jira.getIssueURL(issue.key))}\n`
);

let storyPoints: Size = issue.fields[jira.fields.storyPoints];
if (!storyPoints) {
Expand Down

0 comments on commit dd1e80a

Please sign in to comment.