curl --location --request POST 'https://api.github.com/repos///autolinks' \
--header 'Content-Type: application/json' \
--data-raw '{
"is_alphanumeric": true,
"key_prefix": "TICKET-",
"url_template": "https://example.com/TICKET?query=<num>"
}'
{
"id": 3,
"is_alphanumeric": true,
"key_prefix": "TICKET-",
"url_template": "https://example.com/TICKET?query=<num>"
}
<num>
parameter of the url_template
matches alphanumeric characters A-Z
(case insensitive), 0-9
, and -
. If false, this autolink reference only matches numeric characters.<num>
for the reference number. <num>
matches different characters depending on the value of is_alphanumeric
.