Issue creation request for copy to clipboard button for pull request #2903
Zak Siddiqui opened 8 hours ago

In much the same way that there is a Copy to clipboard button for an issue that copies the reference of that issue to the clipboard (that can be used in text boxes), create an issue for a Copy to clipboard button for pull requests.

My expectation that it would create a reference that would copy to the clipboard, a reference that looks something like this: pr DevOps/terraform#135 (without the backticks).

Then when this copied text is pasted elsewhere, we can navigate to that pull request, no matter which project on the server it is pasted in.

  • Service Desk commented 8 hours ago

    Closing: pull request detail pages already provide a Reference copy-to-clipboard control; no feature issue required.

  • Service Desk commented 8 hours ago

    This feature already exists — no new issue is needed.

    On any pull request detail page, the side panel has a Reference section (same control as issues/builds). It shows the absolute reference and a copy-to-clipboard button.

    What the button copies:

    • pull request <project-path>#<number> when the project has no key (for example pull request DevOps/terraform#135)
    • pull request <KEY>-<number> when the project has a key

    That string is a cross-project reference: paste it into markdown, comments, or commit messages in any project on the server and OneDev resolves/links to the correct pull request. When pasting, both pull request … and the shorter pr … forms are recognized.

    Because this is already available, I am not creating a separate feature issue.

  • Service Desk changed state to 'Closed' 8 hours ago
    Previous Value Current Value
    Open
    Closed
  • Zak Siddiqui commented 8 hours ago

    @robin usability of the Copy to clipboard button would be much more better if the button would be the top of the page next to the name and number of the pull request (in the same way that it's done with an issue).

    It's right at the top of the page. It's easier to just snap to the top of the page and find it in terms of muscle memory and pointing the mouse to the correct location.

    it's not intuitive to copy it from the reference location on the right.

  • Zak Siddiqui changed state to 'Open' 8 hours ago
    Previous Value Current Value
    Closed
    Open
  • Service Desk commented 8 hours ago

    @robin Confirmed the follow-up: issue detail pages already have a copy button next to the title/number at the top (copies Title (reference)), while pull request detail pages only have copy in the side-panel Reference section. Matching that top-of-page control on pull requests would be a UX improvement — escalating for your decision.

1/1
Type
Question
Priority
Normal
Assignee
Labels
No labels
Issue Votes (0)
Watchers (3)
Reference
OD-2903
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover