v50

latestOpenAPI 3.0.3MITraw.githubusercontent.com2023-07-147873273.9 MB
repos

List all autolinks of a repository

This returns a list of autolinks configured for the given repository.

Information about autolinks are only available to repository administrators.

get/repos/{owner}/{repo}/autolinks

Path parameters

ownerstring required

The account owner of the repository. The name is not case sensitive.

repostring required

The name of the repository without the .git extension. The name is not case sensitive.

Query parameters

pageinteger

Page number of the results to fetch.

Response

Response

idinteger required
key_prefixstring required

The prefix of a key that is linkified.

url_templatestring required

A template for the target URL that is generated if a key was found.

Example response

[
  {
    "id": 3,
    "key_prefix": "TICKET-",
    "url_template": "https://example.com/TICKET?query=<num>"
  }
]