autolinks section configures autolink references that automatically link issue tracker references in issues, pull requests, and commit messages to external URLs.
Overview
Autolinks enable GitHub to automatically convert references (likeJIRA-123 or TICKET-456) into clickable links. When someone mentions an autolink key prefix in an issue, pull request, or commit message, GitHub automatically creates a hyperlink to your external system.
Basic Configuration
The prefix that will trigger the autolink. This prefix is matched at the start of the reference.
The URL template that will be used to create the link. Use
<num> as a placeholder for the reference number.Whether the reference ID is alphanumeric. When
true, the reference can contain letters and numbers. When false, only numeric references are matched.Complete Examples
JIRA Integration
JIRA-123becomes a link tohttps://jira.example.com/browse/JIRA-123JIRA-456becomes a link tohttps://jira.example.com/browse/JIRA-456
Linear Integration
Multiple Autolinks
Different Issue Trackers
How Autolinks Work
When you reference an autolink key prefix in:- Issue or PR titles
- Issue or PR descriptions
- Issue or PR comments
- Commit messages
Example Usage
With this configuration:Alphanumeric vs Numeric References
Numeric Only (is_alphanumeric: false)
TICKET-123✓TICKET-456789✓
TICKET-ABC✗TICKET-12A✗
Alphanumeric (is_alphanumeric: true)
REF-123✓REF-ABC✓REF-A1B2C3✓REF-456DEF✓
Best Practices
-
Use Unique Prefixes: Ensure key prefixes are unique and won’t conflict with common words
-
Include Trailing Delimiter: Include hyphens or other delimiters in the prefix
-
Match Your Issue Tracker Format: Use
is_alphanumericbased on your issue tracker’s ID format -
Test URL Templates: Verify that URL templates work by manually constructing a URL
Common Issue Tracker Patterns
Jira
Linear
GitHub Issues (Different Org)
Shortcut (formerly Clubhouse)
Asana
Updating Autolinks
When an autolink with the samekey_prefix already exists, Safe Settings will:
- Delete the existing autolink
- Create a new autolink with the updated configuration
url_template or is_alphanumeric settings.
Removing Autolinks
To remove an autolink, simply delete it from your configuration. Safe Settings will remove autolinks that are not defined in the settings.Limitations
- Autolinks only work with the
<num>placeholder - Each repository can have a limited number of autolinks (typically 10)
- Autolinks are matched case-sensitively
- The key prefix must be unique within a repository