-
-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add weblink to issue (#446) #483
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Syd7, thank you for working on this 🎉.
The functionality seems to be working, however some comments needs to be addressed in order for this to get merged.
- Instead of a separate command, I think this should be a subcommand for
link
. We can add a subcommand calledremote
so that we can do the following.$ jira issue link remote KEY-123 https://example.com "Example text"
- In current implementation, if you run
jira issue remotelink
it directly calls the Jira API. It would be nice to ask for the required parameters in tui like we do forjira issue link
. - Instead of calling it
WebLink
, let's useRemoteLink
in the API implementation since the Jira API calls itRemoteLink
. We can use the term web link in the help text and doc if that's confusing. - Also, please update the README.
// NewCmdWeblink is a link command. | ||
func NewCmdWeblink() *cobra.Command { | ||
cmd := cobra.Command{ | ||
Use: "remotelink ISSUE_KEY WEBLINK_URL WEBLINK_TITLE", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use: "remotelink ISSUE_KEY WEBLINK_URL WEBLINK_TITLE", | |
Use: "remote ISSUE_KEY WEBLINK_URL WEBLINK_TITLE", |
Hi @ankitpokhrel 👋 thanks for the review. I think I addressed the comments that you pointed out. please let me know if I missed anything. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Syd7, I have some minor comments, otherwise this looks good. Great work!
Hi again @ankitpokhrel, I resolved the remaining comments let me know how it looks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @Syd7 🎉
PR adds the possibility to create a weblink for an issue. #446