autolinks
Overview
Name | autolinks |
Type | Resource |
Id | github.repos.autolinks |
Fields
Name | Datatype | Description |
---|---|---|
id | integer | |
is_alphanumeric | boolean | Whether this autolink reference matches alphanumeric characters. If false, this autolink reference only matches numeric characters. |
key_prefix | string | The prefix of a key that is linkified. |
url_template | string | A template for the target URL that is generated if a key was found. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get_autolink | SELECT | autolink_id, owner, repo | This returns a single autolink reference by ID that was configured for the given repository. Information about autolinks are only available to repository administrators. |
list_autolinks | SELECT | owner, repo | This returns a list of autolinks configured for the given repository. Information about autolinks are only available to repository administrators. |
create_autolink | INSERT | owner, repo, data__key_prefix, data__url_template | Users with admin access to the repository can create an autolink. |
delete_autolink | DELETE | autolink_id, owner, repo | This deletes a single autolink reference by ID that was configured for the given repository. Information about autolinks are only available to repository administrators. |