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

Add "Reference: " copy-pastable reference when viewing an issue #19608

Closed
neonn opened this issue May 4, 2022 · 0 comments · Fixed by #19609
Closed

Add "Reference: " copy-pastable reference when viewing an issue #19608

neonn opened this issue May 4, 2022 · 0 comments · Fixed by #19609

Comments

@neonn
Copy link
Contributor

neonn commented May 4, 2022

When viewing an issue in GitLab, you can quickly copy a reference to the issue being viewed.

This is useful for comments in issues, as it is a convenient way of referencing the issue in other issues in other Markdown inputs, or wherever shorthand issue references can be used. Below is an example issue using GitLab and a public issue. Note the "References: ..." string and icon in the bottom-right of the image, showing the reference.

Example of the GitLab issue tracker, with the references section of the right menu. Note the copy-paste icon as well as the "References: ..." text

The above example is from the Freedesktop GitLab instance.

The format of this string is <project-name>/<repository-name>#<repository-issue-index>, where:

  • project-name: Name of the project (e.g. go-gitea)
  • repository-name: Name of the repository (e.g. gitea)
  • repository-issue-index: Index number of the repository (e.g. 1)

For example, a reference to a project might look like: go-gitea/gitea#2

Clicking the "Copy reference" button copies the reference to the issue to the user's clipboard.

I have discussed this a little with @Gusted on 2022/04/30 in Discord, in #develop. Thank you for the Go code! 😃

I will follow up with a PR in a moment.

@neonn neonn changed the title Add "References: " copy-pastable reference when viewing an issue Add "Reference: " copy-pastable reference when viewing an issue May 4, 2022
@wxiaoguang wxiaoguang linked a pull request May 5, 2022 that will close this issue
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant