Skip to content
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

Merged
merged 4 commits into from
Oct 15, 2022
Merged

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.

internal/cmd/issue/remotelink/remotelink.go Outdated Show resolved Hide resolved
internal/cmd/issue/remotelink/remotelink.go Outdated Show resolved Hide resolved
// 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",

internal/cmd/issue/remotelink/remotelink.go Outdated Show resolved Hide resolved
internal/cmd/issue/remotelink/remotelink.go Outdated Show resolved Hide resolved
@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!

internal/cmd/issue/link/remote/remote.go Outdated Show resolved Hide resolved
internal/cmd/issue/link/link.go Outdated Show resolved Hide resolved
internal/cmd/issue/link/remote/remote.go Outdated Show resolved Hide resolved
internal/cmd/issue/link/remote/remote.go Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@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