Update configuring-autolinks-to-reference-external-resources.md #40196
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
title: Configuring autolinks to reference external resources intro: You can add autolinks to external resources like JIRA issues and Zendesk tickets to help streamline your workflow. product: '{% data reusables.gated-features.autolinks %}' redirect_from:
fpt: ''
ghes: ''
ghec: '*'
topics:
About autolinks
Anyone with admin permissions to a repository can configure autolink references to link issues, pull requests, commit messages, and release descriptions to external third-party services.
Autolink references can now accept alphanumeric characters. When originally introduced, custom autolinks were limited to external resources that used numeric identifiers. Custom autolinks now work with alphanumeric and numeric identifiers.
You define custom autolinks by specifying a reference prefix and a target URL.
TICKET
andTICK
, since both prefixes would match the stringTICKET123a
.<num>
variable which represents the reference identifier of the linked resource.Configuring autolinks to reference external resources
This procedure demonstrates how to configure autolinks to reference external resources. For example, if you use Zendesk to track user-reported tickets, you can reference a ticket number in the pull request you opened to fix the issue.
{% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-settings %}
In the "Integrations" section of the sidebar, click {% octicon "cross-reference" aria-hidden="true" aria-label="cross-reference" %} Autolink references.
At the top right of the page, click Add autolink reference.
Select the format of the reference identifier used in the external resource, either Alphanumeric or Numeric.
Under "Reference prefix", type a short, meaningful prefix. Collaborators will use this text to generate autolinks for the external resource.
Under "Target URL", type the format of the link to the external system you want to create. Use the
<num>
variable as a placeholder for the reference identifier.Review the preview and verify that the autolink and external reference are both correct, then click Add autolink reference to define the link.
For example, you might enter the following.
JIRA-
https://jira.example.com/issue?query=<num>
JIRA-123
is converted tohttps://jira.example.com/issue?query=123
Why:
Closes:
What's being changed (if available, include any code snippets, screenshots, or gifs):
Check off the following: