Skip to content

Commit 98fd1e8

Browse files
author
Marc-Andre Giroux
authored
Merge pull request #45 from github/def-import-2020-10-01
OpenAPI Updates
2 parents 822de49 + 714d665 commit 98fd1e8

24 files changed

+406
-68
lines changed

Diff for: descriptions/api.github.com/api.github.com.json

+83-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"openapi": "3.0.3",
33
"info": {
4-
"version": "1.0.0-rc.3",
4+
"version": "1.0.0-rc.4",
55
"title": "GitHub v3 REST API",
66
"description": "GitHub's v3 REST API.",
77
"license": {
@@ -17322,7 +17322,7 @@
1732217322
"/repos/{owner}/{repo}/actions/workflows/{workflow_id}": {
1732317323
"get": {
1732417324
"summary": "Get a workflow",
17325-
"description": "Gets a specific workflow. You can also replace `:workflow_id` with `:workflow_file_name`. For example, you could use `main.yaml`. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
17325+
"description": "Gets a specific workflow. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
1732617326
"tags": [
1732717327
"actions"
1732817328
],
@@ -17370,10 +17370,49 @@
1737017370
}
1737117371
}
1737217372
},
17373+
"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable": {
17374+
"put": {
17375+
"summary": "Disable a workflow",
17376+
"description": "Disables a workflow and sets the `state` of the workflow to `disabled_manually`. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`.\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `actions:write` permission to use this endpoint.",
17377+
"tags": [
17378+
"actions"
17379+
],
17380+
"operationId": "actions/disable-workflow",
17381+
"externalDocs": {
17382+
"description": "API method documentation",
17383+
"url": "https://developer.github.com/v3/actions/workflows/#disable-a-workflow"
17384+
},
17385+
"parameters": [
17386+
{
17387+
"$ref": "#/components/parameters/owner"
17388+
},
17389+
{
17390+
"$ref": "#/components/parameters/repo"
17391+
},
17392+
{
17393+
"$ref": "#/components/parameters/workflow-id"
17394+
}
17395+
],
17396+
"responses": {
17397+
"204": {
17398+
"description": "Empty response"
17399+
}
17400+
},
17401+
"x-github": {
17402+
"githubCloudOnly": false,
17403+
"enabledForGitHubApps": true,
17404+
"previews": [
17405+
17406+
],
17407+
"category": "actions",
17408+
"subcategory": "workflows"
17409+
}
17410+
}
17411+
},
1737317412
"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches": {
1737417413
"post": {
1737517414
"summary": "Create a workflow dispatch event",
17376-
"description": "You can use this endpoint to manually trigger a GitHub Actions workflow run. You can also replace `{workflow_id}` with the workflow file name. For example, you could use `main.yaml`.\n\nYou must configure your GitHub Actions workflow to run when the [`workflow_dispatch` webhook](/developers/webhooks-and-events/webhook-events-and-payloads#workflow_dispatch) event occurs. The `inputs` are configured in the workflow file. For more information about how to configure the `workflow_dispatch` event in the workflow file, see \"[Events that trigger workflows](/actions/reference/events-that-trigger-workflows#workflow_dispatch).\"\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `actions:write` permission to use this endpoint. For more information, see \"[Creating a personal access token for the command line](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line).\"",
17415+
"description": "You can use this endpoint to manually trigger a GitHub Actions workflow run. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`.\n\nYou must configure your GitHub Actions workflow to run when the [`workflow_dispatch` webhook](/developers/webhooks-and-events/webhook-events-and-payloads#workflow_dispatch) event occurs. The `inputs` are configured in the workflow file. For more information about how to configure the `workflow_dispatch` event in the workflow file, see \"[Events that trigger workflows](/actions/reference/events-that-trigger-workflows#workflow_dispatch).\"\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `actions:write` permission to use this endpoint. For more information, see \"[Creating a personal access token for the command line](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line).\"",
1737717416
"operationId": "actions/create-workflow-dispatch",
1737817417
"tags": [
1737917418
"actions"
@@ -17442,10 +17481,49 @@
1744217481
}
1744317482
}
1744417483
},
17484+
"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable": {
17485+
"put": {
17486+
"summary": "Enable a workflow",
17487+
"description": "Enables a workflow and sets the `state` of the workflow to `active`. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`.\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `actions:write` permission to use this endpoint.",
17488+
"tags": [
17489+
"actions"
17490+
],
17491+
"operationId": "actions/enable-workflow",
17492+
"externalDocs": {
17493+
"description": "API method documentation",
17494+
"url": "https://developer.github.com/v3/actions/workflows/#enable-a-workflow"
17495+
},
17496+
"parameters": [
17497+
{
17498+
"$ref": "#/components/parameters/owner"
17499+
},
17500+
{
17501+
"$ref": "#/components/parameters/repo"
17502+
},
17503+
{
17504+
"$ref": "#/components/parameters/workflow-id"
17505+
}
17506+
],
17507+
"responses": {
17508+
"204": {
17509+
"description": "Empty response"
17510+
}
17511+
},
17512+
"x-github": {
17513+
"githubCloudOnly": false,
17514+
"enabledForGitHubApps": true,
17515+
"previews": [
17516+
17517+
],
17518+
"category": "actions",
17519+
"subcategory": "workflows"
17520+
}
17521+
}
17522+
},
1744517523
"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs": {
1744617524
"get": {
1744717525
"summary": "List workflow runs",
17448-
"description": "List all workflow runs for a workflow. You can also replace `:workflow_id` with `:workflow_file_name`. For example, you could use `main.yaml`. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://developer.github.com/v3/#parameters).\n\nAnyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope.",
17526+
"description": "List all workflow runs for a workflow. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://developer.github.com/v3/#parameters).\n\nAnyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope.",
1744917527
"tags": [
1745017528
"actions"
1745117529
],
@@ -17530,7 +17608,7 @@
1753017608
"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing": {
1753117609
"get": {
1753217610
"summary": "Get workflow usage",
17533-
"description": "**Warning:** This GitHub Actions usage endpoint is currently in public beta and subject to change. For more information, see \"[GitHub Actions API workflow usage](https://developer.github.com/changes/2020-05-15-actions-api-workflow-usage).\"\n\nGets the number of billable minutes used by a specific workflow during the current billing cycle. Billable minutes only apply to workflows in private repositories that use GitHub-hosted runners. Usage is listed for each GitHub-hosted runner operating system in milliseconds. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see \"[Managing billing for GitHub Actions](https://help.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)\".\n\nYou can also replace `:workflow_id` with `:workflow_file_name`. For example, you could use `main.yaml`. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
17611+
"description": "**Warning:** This GitHub Actions usage endpoint is currently in public beta and subject to change. For more information, see \"[GitHub Actions API workflow usage](https://developer.github.com/changes/2020-05-15-actions-api-workflow-usage).\"\n\nGets the number of billable minutes used by a specific workflow during the current billing cycle. Billable minutes only apply to workflows in private repositories that use GitHub-hosted runners. Usage is listed for each GitHub-hosted runner operating system in milliseconds. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see \"[Managing billing for GitHub Actions](https://help.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)\".\n\nYou can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
1753417612
"tags": [
1753517613
"actions"
1753617614
],

Diff for: descriptions/api.github.com/api.github.com.yaml

+61-9
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
openapi: 3.0.3
33
info:
4-
version: 1.0.0-rc.3
4+
version: 1.0.0-rc.4
55
title: GitHub v3 REST API
66
description: GitHub's v3 REST API.
77
license:
@@ -12464,11 +12464,11 @@ paths:
1246412464
"/repos/{owner}/{repo}/actions/workflows/{workflow_id}":
1246512465
get:
1246612466
summary: Get a workflow
12467-
description: Gets a specific workflow. You can also replace `:workflow_id` with
12468-
`:workflow_file_name`. For example, you could use `main.yaml`. Anyone with
12469-
read access to the repository can use this endpoint. If the repository is
12470-
private you must use an access token with the `repo` scope. GitHub Apps must
12471-
have the `actions:read` permission to use this endpoint.
12467+
description: Gets a specific workflow. You can replace `workflow_id` with the
12468+
workflow file name. For example, you could use `main.yaml`. Anyone with read
12469+
access to the repository can use this endpoint. If the repository is private
12470+
you must use an access token with the `repo` scope. GitHub Apps must have
12471+
the `actions:read` permission to use this endpoint.
1247212472
tags:
1247312473
- actions
1247412474
operationId: actions/get-workflow
@@ -12495,11 +12495,37 @@ paths:
1249512495
previews: []
1249612496
category: actions
1249712497
subcategory: workflows
12498+
"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable":
12499+
put:
12500+
summary: Disable a workflow
12501+
description: |-
12502+
Disables a workflow and sets the `state` of the workflow to `disabled_manually`. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`.
12503+
12504+
You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `actions:write` permission to use this endpoint.
12505+
tags:
12506+
- actions
12507+
operationId: actions/disable-workflow
12508+
externalDocs:
12509+
description: API method documentation
12510+
url: https://developer.github.com/v3/actions/workflows/#disable-a-workflow
12511+
parameters:
12512+
- "$ref": "#/components/parameters/owner"
12513+
- "$ref": "#/components/parameters/repo"
12514+
- "$ref": "#/components/parameters/workflow-id"
12515+
responses:
12516+
'204':
12517+
description: Empty response
12518+
x-github:
12519+
githubCloudOnly: false
12520+
enabledForGitHubApps: true
12521+
previews: []
12522+
category: actions
12523+
subcategory: workflows
1249812524
"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches":
1249912525
post:
1250012526
summary: Create a workflow dispatch event
1250112527
description: |-
12502-
You can use this endpoint to manually trigger a GitHub Actions workflow run. You can also replace `{workflow_id}` with the workflow file name. For example, you could use `main.yaml`.
12528+
You can use this endpoint to manually trigger a GitHub Actions workflow run. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`.
1250312529

1250412530
You must configure your GitHub Actions workflow to run when the [`workflow_dispatch` webhook](/developers/webhooks-and-events/webhook-events-and-payloads#workflow_dispatch) event occurs. The `inputs` are configured in the workflow file. For more information about how to configure the `workflow_dispatch` event in the workflow file, see "[Events that trigger workflows](/actions/reference/events-that-trigger-workflows#workflow_dispatch)."
1250512531

@@ -12549,11 +12575,37 @@ paths:
1254912575
previews: []
1255012576
category: actions
1255112577
subcategory: workflows
12578+
"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable":
12579+
put:
12580+
summary: Enable a workflow
12581+
description: |-
12582+
Enables a workflow and sets the `state` of the workflow to `active`. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`.
12583+
12584+
You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `actions:write` permission to use this endpoint.
12585+
tags:
12586+
- actions
12587+
operationId: actions/enable-workflow
12588+
externalDocs:
12589+
description: API method documentation
12590+
url: https://developer.github.com/v3/actions/workflows/#enable-a-workflow
12591+
parameters:
12592+
- "$ref": "#/components/parameters/owner"
12593+
- "$ref": "#/components/parameters/repo"
12594+
- "$ref": "#/components/parameters/workflow-id"
12595+
responses:
12596+
'204':
12597+
description: Empty response
12598+
x-github:
12599+
githubCloudOnly: false
12600+
enabledForGitHubApps: true
12601+
previews: []
12602+
category: actions
12603+
subcategory: workflows
1255212604
"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs":
1255312605
get:
1255412606
summary: List workflow runs
1255512607
description: |-
12556-
List all workflow runs for a workflow. You can also replace `:workflow_id` with `:workflow_file_name`. For example, you could use `main.yaml`. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://developer.github.com/v3/#parameters).
12608+
List all workflow runs for a workflow. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://developer.github.com/v3/#parameters).
1255712609

1255812610
Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope.
1255912611
tags:
@@ -12606,7 +12658,7 @@ paths:
1260612658

1260712659
Gets the number of billable minutes used by a specific workflow during the current billing cycle. Billable minutes only apply to workflows in private repositories that use GitHub-hosted runners. Usage is listed for each GitHub-hosted runner operating system in milliseconds. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see "[Managing billing for GitHub Actions](https://help.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)".
1260812660

12609-
You can also replace `:workflow_id` with `:workflow_file_name`. For example, you could use `main.yaml`. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.
12661+
You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.
1261012662
tags:
1261112663
- actions
1261212664
operationId: actions/get-workflow-usage

0 commit comments

Comments
 (0)