Skip to content

feat: add weblink to issue (#446)#483

Merged
ankitpokhrel merged 4 commits intoankitpokhrel:mainfrom
HamzaSayadi:main
Oct 15, 2022
Merged

feat: add weblink to issue (#446)#483
ankitpokhrel merged 4 commits intoankitpokhrel:mainfrom
HamzaSayadi:main

Conversation

@HamzaSayadi
Copy link
Contributor

PR adds the possibility to create a weblink for an issue. #446

Copy link
Owner

@ankitpokhrel ankitpokhrel left a 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.

  1. Instead of a separate command, I think this should be a subcommand for link. We can add a subcommand called remote so that we can do the following.
    $ jira issue link remote KEY-123 https://example.com "Example text"
  2. 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 for jira issue link.
  3. Instead of calling it WebLink, let's use RemoteLink in the API implementation since the Jira API calls it RemoteLink. We can use the term web link in the help text and doc if that's confusing.
  4. 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",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Use: "remotelink ISSUE_KEY WEBLINK_URL WEBLINK_TITLE",
Use: "remote ISSUE_KEY WEBLINK_URL WEBLINK_TITLE",

@HamzaSayadi
Copy link
Contributor Author

Hi @ankitpokhrel 👋 thanks for the review. I think I addressed the comments that you pointed out. please let me know if I missed anything.

Copy link
Owner

@ankitpokhrel ankitpokhrel left a 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!

@HamzaSayadi
Copy link
Contributor Author

Hi again @ankitpokhrel, I resolved the remaining comments let me know how it looks.

Copy link
Owner

@ankitpokhrel ankitpokhrel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @Syd7 🎉

@ankitpokhrel ankitpokhrel merged commit 60f2a02 into ankitpokhrel:main Oct 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants