Skip to content

Provide Org and Repo name support in autolinks for dynamic pull request URI generation #4595

@khaled-maruf

Description

@khaled-maruf

Description

Autolinks now only has the <num> template that can be used for prefixes like JIRA- etc., but sometimes we may want to make the pull request links for #123 clickable as well. e.g. github.com/foo/bar-repo/pull/123, but as the URLs are dynamic it's not possible to have a global setting for this, only per repo.
If the Org name (owner) and repo name would be provided as templates then it'd be much easier to make these urls generic.

e.g.

  {
    "prefix": "#",
    "url": "https://github.com/<owner>/<repo>/pull/<num>",
    "title": "View Pull Request #<num>"
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-verificationRequest for verificationpending-releaseResolved but not yet released to the stable editiontriageNeeds to be looked at

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions