Skip to content

Commit

Permalink
feat: {GET,POST} /repos/{owner}/{repo}/autolinks, `{GET,DELETE} /re…
Browse files Browse the repository at this point in the history
…pos/{owner}/{repo}/autolinks/{autolink_id}` (#352)
  • Loading branch information
octokitbot committed Aug 2, 2021
1 parent 1a73c74 commit cb3b04f
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"description": "Shared TypeScript definitions for Octokit projects",
"dependencies": {
"@octokit/openapi-types": "^9.2.0"
"@octokit/openapi-types": "^9.3.0"
},
"scripts": {
"build": "pika build",
Expand Down Expand Up @@ -96,7 +96,7 @@
]
},
"octokit": {
"openapi-version": "3.2.0"
"openapi-version": "3.3.0"
},
"renovate": {
"extends": [
Expand Down
54 changes: 54 additions & 0 deletions scripts/update-endpoints/generated/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -8652,6 +8652,24 @@
"previews": [],
"renamed": null
},
{
"method": "POST",
"url": "/repos/{owner}/{repo}/autolinks",
"documentationUrl": "https://docs.github.com/v3/repos#create-an-autolink",
"parameters": [
{ "alias": null, "deprecated": null, "in": "PATH", "name": "owner" },
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" },
{ "alias": null, "deprecated": null, "in": "BODY", "name": "key_prefix" },
{
"alias": null,
"deprecated": null,
"in": "BODY",
"name": "url_template"
}
],
"previews": [],
"renamed": null
},
{
"method": "POST",
"url": "/repos/{owner}/{repo}/commits/{commit_sha}/comments",
Expand Down Expand Up @@ -9282,6 +9300,18 @@
"previews": [],
"renamed": null
},
{
"method": "DELETE",
"url": "/repos/{owner}/{repo}/autolinks/{autolink_id}",
"documentationUrl": "https://docs.github.com/v3/repos#delete-autolink",
"parameters": [
{ "alias": null, "deprecated": null, "in": "PATH", "name": "owner" },
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" },
{ "alias": null, "deprecated": null, "in": "PATH", "name": "autolink_id" }
],
"previews": [],
"renamed": null
},
{
"method": "DELETE",
"url": "/repos/{owner}/{repo}/branches/{branch}/protection",
Expand Down Expand Up @@ -9639,6 +9669,18 @@
"previews": [],
"renamed": null
},
{
"method": "GET",
"url": "/repos/{owner}/{repo}/autolinks/{autolink_id}",
"documentationUrl": "https://docs.github.com/v3/repos#get-autolink",
"parameters": [
{ "alias": null, "deprecated": null, "in": "PATH", "name": "owner" },
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" },
{ "alias": null, "deprecated": null, "in": "PATH", "name": "autolink_id" }
],
"previews": [],
"renamed": null
},
{
"method": "GET",
"url": "/repos/{owner}/{repo}/branches/{branch}",
Expand Down Expand Up @@ -10118,6 +10160,18 @@
"previews": [],
"renamed": null
},
{
"method": "GET",
"url": "/repos/{owner}/{repo}/autolinks",
"documentationUrl": "https://docs.github.com/v3/repos#list-autolinks",
"parameters": [
{ "alias": null, "deprecated": null, "in": "PATH", "name": "owner" },
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "page" }
],
"previews": [],
"renamed": null
},
{
"method": "GET",
"url": "/repos/{owner}/{repo}/branches",
Expand Down
28 changes: 28 additions & 0 deletions src/generated/Endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,13 @@ export interface Endpoints {
"/repos/{owner}/{repo}/actions/secrets/{secret_name}",
"delete"
>;
/**
* @see https://docs.github.com/v3/repos#delete-autolink
*/
"DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}": Operation<
"/repos/{owner}/{repo}/autolinks/{autolink_id}",
"delete"
>;
/**
* @see https://docs.github.com/rest/reference/repos#disable-automated-security-fixes
*/
Expand Down Expand Up @@ -2009,6 +2016,20 @@ export interface Endpoints {
"/repos/{owner}/{repo}/assignees/{assignee}",
"get"
>;
/**
* @see https://docs.github.com/v3/repos#list-autolinks
*/
"GET /repos/{owner}/{repo}/autolinks": Operation<
"/repos/{owner}/{repo}/autolinks",
"get"
>;
/**
* @see https://docs.github.com/v3/repos#get-autolink
*/
"GET /repos/{owner}/{repo}/autolinks/{autolink_id}": Operation<
"/repos/{owner}/{repo}/autolinks/{autolink_id}",
"get"
>;
/**
* @see https://docs.github.com/rest/reference/repos#list-branches
*/
Expand Down Expand Up @@ -4173,6 +4194,13 @@ export interface Endpoints {
"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches",
"post"
>;
/**
* @see https://docs.github.com/v3/repos#create-an-autolink
*/
"POST /repos/{owner}/{repo}/autolinks": Operation<
"/repos/{owner}/{repo}/autolinks",
"post"
>;
/**
* @see https://docs.github.com/rest/reference/repos#set-admin-branch-protection
*/
Expand Down

0 comments on commit cb3b04f

Please sign in to comment.