Skip to content

[Feature] Add a copy Gerrit change link button #75

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

Merged
merged 4 commits into from
Sep 22, 2023

Conversation

poupounetjoyeux
Copy link
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)

Since this is full UI feature, it's difficult to add unitary test

PR Type

What kind of change does this PR introduce?

  • Feature

What is the current behavior?

In most case I want to send the gerrit change link to reviewers over my favourite communication tools and currently I need to click on the link to open it in my browser, then copy the URI to finally send it to reviewers

Issue Number: N/A

What is the new behavior?

We have a new 'Copy to clipboard' button that allows us to directly copy the gerrit change link to the clipboard and then paste it where we want without need to open the browser :

OnChangeSubmitted

OnChangeUriCopied

Does this PR introduce a breaking change?

  • No

@poupounetjoyeux
Copy link
Contributor Author

Will probably be in merge conflict with my other pull request #74

form._NO_TRANSLATE_TargetLabel.Click += (s, e) => OsShellUtil.OpenUrlInDefaultBrowser(change);
public static void ShowSubmitted(IWin32Window owner, string changeUri)
{
if(owner == null || string.IsNullOrEmpty(changeUri))
Copy link
Collaborator

Choose a reason for hiding this comment

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

formatting (space)

Suggested change
if(owner == null || string.IsNullOrEmpty(changeUri))
if (owner == null || string.IsNullOrEmpty(changeUri))

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

@lekhmanrus lekhmanrus merged commit bfce212 into gitextensions:master Sep 22, 2023
@poupounetjoyeux
Copy link
Contributor Author

Hello, me again! 😇

Any chance to have a release of the plugin with my two merged pull requests when you will have some time ?
Could be cool regarding my every days work 😅

Thanks again for your work!

@lekhmanrus
Copy link
Collaborator

Hi @poupounetjoyeux,
Yep, I'll do that next week. Sorry.

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