From d861b2169d9deb1737f09e3f8bd0ac0cf465c9a9 Mon Sep 17 00:00:00 2001 From: zyfy29 Date: Tue, 12 Aug 2025 14:54:08 +0900 Subject: [PATCH 1/3] fix: Update some OpenAPI paths to use 'orgs' instead of 'organizations' --- openapi_operations.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/openapi_operations.yaml b/openapi_operations.yaml index 0a58a1d10da..925e3163d9f 100644 --- a/openapi_operations.yaml +++ b/openapi_operations.yaml @@ -1459,32 +1459,32 @@ openapi_operations: openapi_files: - descriptions/api.github.com/api.github.com.json - descriptions/ghec/ghec.json - - name: GET /organizations/{org}/actions/permissions/self-hosted-runners + - name: GET /orgs{org}/actions/permissions/self-hosted-runners documentation_url: https://docs.github.com/rest/actions/permissions#get-self-hosted-runners-settings-for-an-organization openapi_files: - descriptions/api.github.com/api.github.com.json - descriptions/ghec/ghec.json - - name: PUT /organizations/{org}/actions/permissions/self-hosted-runners + - name: PUT /orgs{org}/actions/permissions/self-hosted-runners documentation_url: https://docs.github.com/rest/actions/permissions#set-self-hosted-runners-settings-for-an-organization openapi_files: - descriptions/api.github.com/api.github.com.json - descriptions/ghec/ghec.json - - name: GET /organizations/{org}/actions/permissions/self-hosted-runners/repositories + - name: GET /orgs{org}/actions/permissions/self-hosted-runners/repositories documentation_url: https://docs.github.com/rest/actions/permissions#list-repositories-allowed-to-use-self-hosted-runners-in-an-organization openapi_files: - descriptions/api.github.com/api.github.com.json - descriptions/ghec/ghec.json - - name: PUT /organizations/{org}/actions/permissions/self-hosted-runners/repositories + - name: PUT /orgs{org}/actions/permissions/self-hosted-runners/repositories documentation_url: https://docs.github.com/rest/actions/permissions#set-repositories-allowed-to-use-self-hosted-runners-in-an-organization openapi_files: - descriptions/api.github.com/api.github.com.json - descriptions/ghec/ghec.json - - name: DELETE /organizations/{org}/actions/permissions/self-hosted-runners/repositories/{repository_id} + - name: DELETE /orgs{org}/actions/permissions/self-hosted-runners/repositories/{repository_id} documentation_url: https://docs.github.com/rest/actions/permissions#remove-a-repository-from-the-list-of-repositories-allowed-to-use-self-hosted-runners-in-an-organization openapi_files: - descriptions/api.github.com/api.github.com.json - descriptions/ghec/ghec.json - - name: PUT /organizations/{org}/actions/permissions/self-hosted-runners/repositories/{repository_id} + - name: PUT /orgs{org}/actions/permissions/self-hosted-runners/repositories/{repository_id} documentation_url: https://docs.github.com/rest/actions/permissions#add-a-repository-to-the-list-of-repositories-allowed-to-use-self-hosted-runners-in-an-organization openapi_files: - descriptions/api.github.com/api.github.com.json From 3e64c5042f4fe56eabdcd3e6fe41e54660b893a1 Mon Sep 17 00:00:00 2001 From: zyfy29 Date: Tue, 12 Aug 2025 15:05:37 +0900 Subject: [PATCH 2/3] fix: Correct OpenAPI paths to include slashes for organization endpoints --- openapi_operations.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/openapi_operations.yaml b/openapi_operations.yaml index 925e3163d9f..861d0909867 100644 --- a/openapi_operations.yaml +++ b/openapi_operations.yaml @@ -1459,32 +1459,32 @@ openapi_operations: openapi_files: - descriptions/api.github.com/api.github.com.json - descriptions/ghec/ghec.json - - name: GET /orgs{org}/actions/permissions/self-hosted-runners + - name: GET /orgs/{org}/actions/permissions/self-hosted-runners documentation_url: https://docs.github.com/rest/actions/permissions#get-self-hosted-runners-settings-for-an-organization openapi_files: - descriptions/api.github.com/api.github.com.json - descriptions/ghec/ghec.json - - name: PUT /orgs{org}/actions/permissions/self-hosted-runners + - name: PUT /orgs/{org}/actions/permissions/self-hosted-runners documentation_url: https://docs.github.com/rest/actions/permissions#set-self-hosted-runners-settings-for-an-organization openapi_files: - descriptions/api.github.com/api.github.com.json - descriptions/ghec/ghec.json - - name: GET /orgs{org}/actions/permissions/self-hosted-runners/repositories + - name: GET /orgs/{org}/actions/permissions/self-hosted-runners/repositories documentation_url: https://docs.github.com/rest/actions/permissions#list-repositories-allowed-to-use-self-hosted-runners-in-an-organization openapi_files: - descriptions/api.github.com/api.github.com.json - descriptions/ghec/ghec.json - - name: PUT /orgs{org}/actions/permissions/self-hosted-runners/repositories + - name: PUT /orgs/{org}/actions/permissions/self-hosted-runners/repositories documentation_url: https://docs.github.com/rest/actions/permissions#set-repositories-allowed-to-use-self-hosted-runners-in-an-organization openapi_files: - descriptions/api.github.com/api.github.com.json - descriptions/ghec/ghec.json - - name: DELETE /orgs{org}/actions/permissions/self-hosted-runners/repositories/{repository_id} + - name: DELETE /orgs/{org}/actions/permissions/self-hosted-runners/repositories/{repository_id} documentation_url: https://docs.github.com/rest/actions/permissions#remove-a-repository-from-the-list-of-repositories-allowed-to-use-self-hosted-runners-in-an-organization openapi_files: - descriptions/api.github.com/api.github.com.json - descriptions/ghec/ghec.json - - name: PUT /orgs{org}/actions/permissions/self-hosted-runners/repositories/{repository_id} + - name: PUT /orgs/{org}/actions/permissions/self-hosted-runners/repositories/{repository_id} documentation_url: https://docs.github.com/rest/actions/permissions#add-a-repository-to-the-list-of-repositories-allowed-to-use-self-hosted-runners-in-an-organization openapi_files: - descriptions/api.github.com/api.github.com.json From 49cfb9b3645f0e6ca26df1f70dc3c1aed871f440 Mon Sep 17 00:00:00 2001 From: zyfy29 Date: Tue, 12 Aug 2025 15:21:41 +0900 Subject: [PATCH 3/3] chore: run update-openapi --- openapi_operations.yaml | 122 ++++++++++++++++++++-------------------- 1 file changed, 61 insertions(+), 61 deletions(-) diff --git a/openapi_operations.yaml b/openapi_operations.yaml index 861d0909867..d817be5af5a 100644 --- a/openapi_operations.yaml +++ b/openapi_operations.yaml @@ -27,7 +27,7 @@ operation_overrides: documentation_url: https://docs.github.com/rest/pages/pages#request-a-github-pages-build - name: GET /repos/{owner}/{repo}/pages/builds/{build_id} documentation_url: https://docs.github.com/rest/pages/pages#get-github-pages-build -openapi_commit: 7187214c51f81537dd0b72ccc8c1af762d73f2c6 +openapi_commit: 30ab35c5db4a05519ceed2e41292cdb7af182f1c openapi_operations: - name: GET / documentation_url: https://docs.github.com/rest/meta/meta#github-api-root @@ -1429,66 +1429,6 @@ openapi_operations: openapi_files: - descriptions/ghec/ghec.json - descriptions/ghes-3.17/ghes-3.17.json - - name: GET /organizations/{org}/actions/permissions/artifact-and-log-retention - documentation_url: https://docs.github.com/rest/actions/permissions#get-artifact-and-log-retention-settings-for-an-organization - openapi_files: - - descriptions/api.github.com/api.github.com.json - - descriptions/ghec/ghec.json - - name: PUT /organizations/{org}/actions/permissions/artifact-and-log-retention - documentation_url: https://docs.github.com/rest/actions/permissions#set-artifact-and-log-retention-settings-for-an-organization - openapi_files: - - descriptions/api.github.com/api.github.com.json - - descriptions/ghec/ghec.json - - name: GET /organizations/{org}/actions/permissions/fork-pr-contributor-approval - documentation_url: https://docs.github.com/rest/actions/permissions#get-fork-pr-contributor-approval-permissions-for-an-organization - openapi_files: - - descriptions/api.github.com/api.github.com.json - - descriptions/ghec/ghec.json - - name: PUT /organizations/{org}/actions/permissions/fork-pr-contributor-approval - documentation_url: https://docs.github.com/rest/actions/permissions#set-fork-pr-contributor-approval-permissions-for-an-organization - openapi_files: - - descriptions/api.github.com/api.github.com.json - - descriptions/ghec/ghec.json - - name: GET /organizations/{org}/actions/permissions/fork-pr-workflows-private-repos - documentation_url: https://docs.github.com/rest/actions/permissions#get-private-repo-fork-pr-workflow-settings-for-an-organization - openapi_files: - - descriptions/api.github.com/api.github.com.json - - descriptions/ghec/ghec.json - - name: PUT /organizations/{org}/actions/permissions/fork-pr-workflows-private-repos - documentation_url: https://docs.github.com/rest/actions/permissions#set-private-repo-fork-pr-workflow-settings-for-an-organization - openapi_files: - - descriptions/api.github.com/api.github.com.json - - descriptions/ghec/ghec.json - - name: GET /orgs/{org}/actions/permissions/self-hosted-runners - documentation_url: https://docs.github.com/rest/actions/permissions#get-self-hosted-runners-settings-for-an-organization - openapi_files: - - descriptions/api.github.com/api.github.com.json - - descriptions/ghec/ghec.json - - name: PUT /orgs/{org}/actions/permissions/self-hosted-runners - documentation_url: https://docs.github.com/rest/actions/permissions#set-self-hosted-runners-settings-for-an-organization - openapi_files: - - descriptions/api.github.com/api.github.com.json - - descriptions/ghec/ghec.json - - name: GET /orgs/{org}/actions/permissions/self-hosted-runners/repositories - documentation_url: https://docs.github.com/rest/actions/permissions#list-repositories-allowed-to-use-self-hosted-runners-in-an-organization - openapi_files: - - descriptions/api.github.com/api.github.com.json - - descriptions/ghec/ghec.json - - name: PUT /orgs/{org}/actions/permissions/self-hosted-runners/repositories - documentation_url: https://docs.github.com/rest/actions/permissions#set-repositories-allowed-to-use-self-hosted-runners-in-an-organization - openapi_files: - - descriptions/api.github.com/api.github.com.json - - descriptions/ghec/ghec.json - - name: DELETE /orgs/{org}/actions/permissions/self-hosted-runners/repositories/{repository_id} - documentation_url: https://docs.github.com/rest/actions/permissions#remove-a-repository-from-the-list-of-repositories-allowed-to-use-self-hosted-runners-in-an-organization - openapi_files: - - descriptions/api.github.com/api.github.com.json - - descriptions/ghec/ghec.json - - name: PUT /orgs/{org}/actions/permissions/self-hosted-runners/repositories/{repository_id} - documentation_url: https://docs.github.com/rest/actions/permissions#add-a-repository-to-the-list-of-repositories-allowed-to-use-self-hosted-runners-in-an-organization - openapi_files: - - descriptions/api.github.com/api.github.com.json - - descriptions/ghec/ghec.json - name: GET /organizations/{org}/dependabot/repository-access documentation_url: https://docs.github.com/rest/dependabot/repository-access#lists-the-repositories-dependabot-can-access-in-an-organization openapi_files: @@ -1613,6 +1553,36 @@ openapi_operations: - descriptions/api.github.com/api.github.com.json - descriptions/ghec/ghec.json - descriptions/ghes-3.17/ghes-3.17.json + - name: GET /orgs/{org}/actions/permissions/artifact-and-log-retention + documentation_url: https://docs.github.com/rest/actions/permissions#get-artifact-and-log-retention-settings-for-an-organization + openapi_files: + - descriptions/api.github.com/api.github.com.json + - descriptions/ghec/ghec.json + - name: PUT /orgs/{org}/actions/permissions/artifact-and-log-retention + documentation_url: https://docs.github.com/rest/actions/permissions#set-artifact-and-log-retention-settings-for-an-organization + openapi_files: + - descriptions/api.github.com/api.github.com.json + - descriptions/ghec/ghec.json + - name: GET /orgs/{org}/actions/permissions/fork-pr-contributor-approval + documentation_url: https://docs.github.com/rest/actions/permissions#get-fork-pr-contributor-approval-permissions-for-an-organization + openapi_files: + - descriptions/api.github.com/api.github.com.json + - descriptions/ghec/ghec.json + - name: PUT /orgs/{org}/actions/permissions/fork-pr-contributor-approval + documentation_url: https://docs.github.com/rest/actions/permissions#set-fork-pr-contributor-approval-permissions-for-an-organization + openapi_files: + - descriptions/api.github.com/api.github.com.json + - descriptions/ghec/ghec.json + - name: GET /orgs/{org}/actions/permissions/fork-pr-workflows-private-repos + documentation_url: https://docs.github.com/rest/actions/permissions#get-private-repo-fork-pr-workflow-settings-for-an-organization + openapi_files: + - descriptions/api.github.com/api.github.com.json + - descriptions/ghec/ghec.json + - name: PUT /orgs/{org}/actions/permissions/fork-pr-workflows-private-repos + documentation_url: https://docs.github.com/rest/actions/permissions#set-private-repo-fork-pr-workflow-settings-for-an-organization + openapi_files: + - descriptions/api.github.com/api.github.com.json + - descriptions/ghec/ghec.json - name: GET /orgs/{org}/actions/permissions/repositories documentation_url: https://docs.github.com/rest/actions/permissions#list-selected-repositories-enabled-for-github-actions-in-an-organization openapi_files: @@ -1649,6 +1619,36 @@ openapi_operations: - descriptions/api.github.com/api.github.com.json - descriptions/ghec/ghec.json - descriptions/ghes-3.17/ghes-3.17.json + - name: GET /orgs/{org}/actions/permissions/self-hosted-runners + documentation_url: https://docs.github.com/rest/actions/permissions#get-self-hosted-runners-settings-for-an-organization + openapi_files: + - descriptions/api.github.com/api.github.com.json + - descriptions/ghec/ghec.json + - name: PUT /orgs/{org}/actions/permissions/self-hosted-runners + documentation_url: https://docs.github.com/rest/actions/permissions#set-self-hosted-runners-settings-for-an-organization + openapi_files: + - descriptions/api.github.com/api.github.com.json + - descriptions/ghec/ghec.json + - name: GET /orgs/{org}/actions/permissions/self-hosted-runners/repositories + documentation_url: https://docs.github.com/rest/actions/permissions#list-repositories-allowed-to-use-self-hosted-runners-in-an-organization + openapi_files: + - descriptions/api.github.com/api.github.com.json + - descriptions/ghec/ghec.json + - name: PUT /orgs/{org}/actions/permissions/self-hosted-runners/repositories + documentation_url: https://docs.github.com/rest/actions/permissions#set-repositories-allowed-to-use-self-hosted-runners-in-an-organization + openapi_files: + - descriptions/api.github.com/api.github.com.json + - descriptions/ghec/ghec.json + - name: DELETE /orgs/{org}/actions/permissions/self-hosted-runners/repositories/{repository_id} + documentation_url: https://docs.github.com/rest/actions/permissions#remove-a-repository-from-the-list-of-repositories-allowed-to-use-self-hosted-runners-in-an-organization + openapi_files: + - descriptions/api.github.com/api.github.com.json + - descriptions/ghec/ghec.json + - name: PUT /orgs/{org}/actions/permissions/self-hosted-runners/repositories/{repository_id} + documentation_url: https://docs.github.com/rest/actions/permissions#add-a-repository-to-the-list-of-repositories-allowed-to-use-self-hosted-runners-in-an-organization + openapi_files: + - descriptions/api.github.com/api.github.com.json + - descriptions/ghec/ghec.json - name: GET /orgs/{org}/actions/permissions/workflow documentation_url: https://docs.github.com/rest/actions/permissions#get-default-workflow-permissions-for-an-organization openapi_files: