Skip to content

Custom Links #23217

Closed
Closed
@gempir

Description

@gempir

Feature Description

A lot of people are using Jira or other issue trackers to track their development efforts. A way to link gitea PRs and other resources to an issue would be nice. (This could also work for Jenkins links and other links you might reference, maybe even an entirely different instance of gitea)

Bitbucket.org has a pretty simple implementation which would be simple enough to implement in my opinion.
(ref: https://support.atlassian.com/bitbucket-cloud/docs/link-to-a-web-service/)

  • Define a regex with capture groups
  • Define a link template using those capture groups

My screenshot illustrates how a string "MYISSUE-1234" for example could be turned into a link to https://jira.gitea.com/MYISSUE-1234

Relevant places this regex should apply to:

  • Commit Messages
  • Pull Request Titles
  • Pull Request Body
  • Pull Request Comments
  • Issue Titles
  • Issue Body
  • Issue Comments
  • more suggestions welcome

Overall this feature is similar how you might reference an issue or PR from gitea like #23000 or so, but with a custom URL.

Screenshots

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/featureCompletely new functionality. Can only be merged if feature freeze is not active.type/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions