Skip to content

Commit

Permalink
Merge branch 'main' into pr/68
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 committed Apr 13, 2024
2 parents 466c57f + 817b0fe commit 20e1319
Show file tree
Hide file tree
Showing 34 changed files with 1,750 additions and 122,936 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
node-version: "20"
cache: npm
- run: npm ci
- run: npx semantic-release
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: update cache
uses: gr2m/create-or-update-pull-request-action@v1.x
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.OCTOKITBOT_PAT }}
with:
title: 🤖📯 GitHub OpenAPI Update
body: >
Expand All @@ -50,4 +50,4 @@ jobs:
branch: update
author: Octokit Bot <octokitbot@martynus.net>
commit-message: "WIP: schema updates"
labels: maintenance
labels: "Type: Maintenance"
200 changes: 185 additions & 15 deletions cache/api.github.com.json
Original file line number Diff line number Diff line change
Expand Up @@ -14836,8 +14836,7 @@
},
"repository-dispatch-sample.collected": {
"post": {
"summary": "This event occurs when a GitHub App sends a `POST` request to `/repos/{owner}/{repo}/dispatches`. For more information, see [the REST API documentation for creating a repository dispatch event](https://docs.github.com/rest/repos/repos#create-a-repository-dispatch-event).\n\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.",
"description": "The `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body.",
"summary": "This event occurs when a GitHub App sends a `POST` request to `/repos/{owner}/{repo}/dispatches`. For more information, see [the REST API documentation for creating a repository dispatch event](https://docs.github.com/rest/repos/repos#create-a-repository-dispatch-event). In the payload, the `action` will be the `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body.\n\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.",
"operationId": "repository-dispatch/sample.collected",
"externalDocs": {
"url": "https://docs.github.com/webhooks/webhook-events-and-payloads#repository_dispatch"
Expand Down Expand Up @@ -18590,7 +18589,11 @@
"followers_url": { "type": "string", "format": "uri-template" },
"following_url": { "type": "string", "format": "uri-template" },
"gists_url": { "type": "string", "format": "uri-template" },
"hub_url": { "type": "string", "format": "uri-template" },
"hub_url": {
"type": "string",
"format": "uri-template",
"deprecated": true
},
"issue_search_url": { "type": "string", "format": "uri-template" },
"issues_url": { "type": "string", "format": "uri-template" },
"keys_url": { "type": "string", "format": "uri-template" },
Expand Down Expand Up @@ -18643,7 +18646,6 @@
"followers_url",
"following_url",
"gists_url",
"hub_url",
"issue_search_url",
"issues_url",
"keys_url",
Expand Down Expand Up @@ -24895,11 +24897,21 @@
"description": "The organization policy for allowing or disallowing Copilot to make suggestions that match public code.",
"enum": ["allow", "block", "unconfigured", "unknown"]
},
"copilot_chat": {
"ide_chat": {
"type": "string",
"description": "The organization policy for allowing or disallowing organization members to use Copilot Chat within their editor.",
"enum": ["enabled", "disabled", "unconfigured"]
},
"platform_chat": {
"type": "string",
"description": "The organization policy for allowing or disallowing organization members to use Copilot features within github.com.",
"enum": ["enabled", "disabled", "unconfigured"]
},
"cli": {
"type": "string",
"description": "The organization policy for allowing or disallowing organization members to use Copilot within their CLI.",
"enum": ["enabled", "disabled", "unconfigured"]
},
"seat_management_setting": {
"type": "string",
"description": "The mode of assigning new seats.",
Expand Down Expand Up @@ -27169,6 +27181,34 @@
}
}
},
"repository-rule-params-code-scanning-threshold": {
"title": "CodeScanningThreshold",
"description": "A tool and its thresholds.",
"type": "object",
"properties": {
"alerts": {
"type": "string",
"description": "Code scanning alert threshold",
"enum": ["none", "errors", "errors_and_warnings", "all"]
},
"security_alerts": {
"type": "string",
"description": "Code scanning security alert threshold.",
"enum": [
"none",
"critical",
"high_or_higher",
"medium_or_higher",
"all"
]
},
"tool": {
"type": "string",
"description": "The name of a code scanning tool"
}
},
"required": ["alerts", "security_alerts", "tool"]
},
"repository-rule": {
"title": "Repository Rule",
"type": "object",
Expand Down Expand Up @@ -29326,7 +29366,14 @@
"status": {
"description": "The phase of the lifecycle that the job is currently in.",
"type": "string",
"enum": ["queued", "in_progress", "completed", "waiting"],
"enum": [
"queued",
"in_progress",
"completed",
"waiting",
"requested",
"pending"
],
"examples": ["queued"]
},
"conclusion": {
Expand Down Expand Up @@ -31397,9 +31444,16 @@
"examples": ["https://example.com"]
},
"status": {
"description": "The phase of the lifecycle that the check is currently in.",
"description": "The phase of the lifecycle that the check is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check runs.",
"type": "string",
"enum": ["queued", "in_progress", "completed"],
"enum": [
"queued",
"in_progress",
"completed",
"waiting",
"requested",
"pending"
],
"examples": ["queued"]
},
"conclusion": {
Expand Down Expand Up @@ -31541,7 +31595,16 @@
},
"status": {
"type": ["string", "null"],
"enum": ["queued", "in_progress", "completed", null],
"description": "The phase of the lifecycle that the check suite is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check suites.",
"enum": [
"queued",
"in_progress",
"completed",
"waiting",
"requested",
"pending",
null
],
"examples": ["completed"]
},
"conclusion": {
Expand Down Expand Up @@ -38084,6 +38147,68 @@
"commit_url"
]
},
"secret-scanning-location-wiki-commit": {
"description": "Represents a 'wiki_commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository wiki.",
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "The file path of the wiki page",
"examples": ["/example/Home.md"]
},
"start_line": {
"type": "number",
"description": "Line number at which the secret starts in the file"
},
"end_line": {
"type": "number",
"description": "Line number at which the secret ends in the file"
},
"start_column": {
"type": "number",
"description": "The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII."
},
"end_column": {
"type": "number",
"description": "The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII."
},
"blob_sha": {
"type": "string",
"description": "SHA-1 hash ID of the associated blob",
"examples": ["af5626b4a114abcb82d63db7c8082c3c4756e51b"]
},
"page_url": {
"type": "string",
"description": "The GitHub URL to get the associated wiki page",
"examples": [
"https://github.com/octocat/Hello-World/wiki/Home/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
]
},
"commit_sha": {
"type": "string",
"description": "SHA-1 hash ID of the associated commit",
"examples": ["302c0b7e200761c9dd9b57e57db540ee0b4293a5"]
},
"commit_url": {
"type": "string",
"description": "The GitHub URL to get the associated wiki commit",
"examples": [
"https://github.com/octocat/Hello-World/wiki/_compare/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
]
}
},
"required": [
"path",
"start_line",
"end_line",
"start_column",
"end_column",
"blob_sha",
"page_url",
"commit_sha",
"commit_url"
]
},
"secret-scanning-location-issue-title": {
"description": "Represents an 'issue_title' secret scanning location type. This location type shows that a secret was detected in the title of an issue.",
"type": "object",
Expand Down Expand Up @@ -38256,6 +38381,7 @@
"type": "string",
"enum": [
"commit",
"wiki_commit",
"issue_title",
"issue_body",
"issue_comment",
Expand All @@ -38276,6 +38402,9 @@
{
"$ref": "#/components/schemas/secret-scanning-location-commit"
},
{
"$ref": "#/components/schemas/secret-scanning-location-wiki-commit"
},
{
"$ref": "#/components/schemas/secret-scanning-location-issue-title"
},
Expand Down Expand Up @@ -38311,8 +38440,7 @@
}
]
}
},
"required": ["type", "details"]
}
},
"repository-advisory-create": {
"type": "object",
Expand Down Expand Up @@ -70430,11 +70558,18 @@
"type": "object",
"properties": {
"permission": {
"description": "This field is included for legacy purposes; use the `role_name` field instead. The `maintain`\nrole is mapped to `write` and the `triage` role is mapped to `read`. To determine the role\nassigned to the collaborator, use the `role_name` field instead, which will provide the full\nrole name, including custom roles.",
"type": "object",
"properties": {
"to": { "type": "string", "enum": ["write", "admin", "read"] }
},
"required": ["to"]
},
"role_name": {
"description": "The role assigned to the collaborator.",
"type": "object",
"properties": { "to": { "type": "string" } },
"required": ["to"]
}
}
},
Expand Down Expand Up @@ -123199,7 +123334,7 @@
"type": "string"
},
"commits": {
"description": "An array of commit objects describing the pushed commits. (Pushed commits are all commits that are included in the `compare` between the `before` commit and the `after` commit.) The array includes a maximum of 20 commits. If necessary, you can use the [Commits API](https://docs.github.com/rest/commits) to fetch additional commits. This limit is applied to timeline events only and isn't applied to webhook deliveries.",
"description": "An array of commit objects describing the pushed commits. (Pushed commits are all commits that are included in the `compare` between the `before` commit and the `after` commit.) The array includes a maximum of 2048 commits. If necessary, you can use the [Commits API](https://docs.github.com/rest/commits) to fetch additional commits.",
"type": "array",
"items": {
"title": "Commit",
Expand Down Expand Up @@ -126477,11 +126612,15 @@
"title": "repository_dispatch event",
"type": "object",
"properties": {
"action": { "type": "string", "enum": ["sample.collected"] },
"action": {
"type": "string",
"description": "The `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body."
},
"branch": { "type": "string" },
"client_payload": {
"type": ["object", "null"],
"additionalProperties": true
"additionalProperties": true,
"description": "The `client_payload` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body."
},
"enterprise": { "$ref": "#/components/schemas/enterprise-webhooks" },
"installation": {
Expand Down Expand Up @@ -156714,6 +156853,20 @@
"commit_url": "https://api.github.com/repos/octocat/hello-world/git/commits/f14d7debf9775f957cf4f1e8176da0786431f72b"
}
},
{
"type": "wiki_commit",
"details": {
"path": "/example/Home.md",
"start_line": 1,
"end_line": 1,
"start_column": 1,
"end_column": 64,
"blob_sha": "af5626b4a114abcb82d63db7c8082c3c4756e51b",
"page_url": "https://github.com/octocat/Hello-World/wiki/Home/302c0b7e200761c9dd9b57e57db540ee0b4293a5",
"commit_sha": "302c0b7e200761c9dd9b57e57db540ee0b4293a5",
"commit_url": "https://github.com/octocat/Hello-World/wiki/_compare/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
}
},
{
"type": "issue_title",
"details": {
Expand Down Expand Up @@ -163743,7 +163896,7 @@
},
"workflow-run-status": {
"name": "status",
"description": "Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub can set a status of `waiting` or `requested`.",
"description": "Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub Actions can set a status of `waiting`, `pending`, or `requested`.",
"in": "query",
"required": false,
"schema": {
Expand Down Expand Up @@ -163938,6 +164091,15 @@
"required": true,
"schema": { "type": "integer" }
},
"git-ref-only": {
"name": "ref",
"description": "The Git reference. For more information, see \"[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)\" in the Git documentation.",
"in": "path",
"required": true,
"example": "heads/feature-a",
"schema": { "type": "string" },
"x-multi-segment": true
},
"since-user": {
"name": "since",
"description": "A user ID. Only return users with an ID greater than this ID.",
Expand Down Expand Up @@ -164352,6 +164514,14 @@
"schema": { "$ref": "#/components/schemas/basic-error" }
}
}
},
"unacceptable": {
"description": "Unacceptable",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/basic-error" }
}
}
}
},
"headers": {
Expand Down
Loading

0 comments on commit 20e1319

Please sign in to comment.