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

Remotelink (web link) support #411

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jmtd
Copy link

@jmtd jmtd commented Feb 18, 2021

This adds a new command "remotelink" which permits adding a remote (or
web link) to an issue.

This is (probably) pretty rough. This is my first attempt at writing Go! I have not
yet added verbs for fetching existing remote links, removing remote links, etc.

It's perfectly possible to add two or more remote links to an issue that are identical,
and it might be nice to detect and prevent that.

CmdIssueLink was created as a copy of CmdDup and the comment copied
over at the same time.

Signed-off-by: Jonathan Dowland <jon@dow.land>
This adds a new command "remotelink" which permits adding a remote (or
web link) to an issue.

Fixes go-jira#112.

Signed-off-by: Jonathan Dowland <jon@dow.land>
Comment on lines +347 to +354
req := struct {
Object struct {
Url string `json:"url"`
Title string `json:"title"`
} `json:"object"`
}{}
req.Object.Url = url
req.Object.Title = title

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

I'm unlikely to return to this, to be honest; I think the odds of it being merged are close to zero. Although I'm still using a build with this in it personally. on my TODO list is to look at https://github.com/ankitpokhrel/jira-cli and see if that's a better candidate going forward.

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