@octokit/openapi 5.6.4 → 5.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generated/api.github.com.deref.json +2 -2
- package/generated/api.github.com.json +2 -2
- package/generated/ghes-2.22-diff-to-ghes-3.0.deref.json +1 -1
- package/generated/ghes-2.22-diff-to-ghes-3.0.json +1 -1
- package/generated/ghes-2.22.deref.json +1 -1
- package/generated/ghes-2.22.json +1 -1
- package/generated/ghes-3.0-anicca-diff-to-ghes-3.1.deref.json +0 -145
- package/generated/ghes-3.0-diff-to-ghes-3.1.deref.json +8739 -19455
- package/generated/ghes-3.0-diff-to-ghes-3.1.json +245 -1527
- package/generated/ghes-3.0.deref.json +7 -7
- package/generated/ghes-3.0.json +7 -7
- package/generated/ghes-3.1-anicca-diff-to-ghes-3.2.deref.json +286 -1467
- package/generated/ghes-3.1-diff-to-ghes-3.2.deref.json +81247 -128945
- package/generated/ghes-3.1-diff-to-ghes-3.2.json +9485 -14738
- package/generated/ghes-3.1.deref.json +39 -39
- package/generated/ghes-3.1.json +39 -39
- package/generated/ghes-3.2-anicca-diff-to-api.github.com.deref.json +0 -130
- package/generated/ghes-3.2-diff-to-api.github.com.deref.json +282 -2066
- package/generated/ghes-3.2-diff-to-api.github.com.json +160 -865
- package/generated/ghes-3.2.deref.json +8 -8
- package/generated/ghes-3.2.json +8 -20
- package/generated/github.ae-anicca-diff-to-api.github.com.deref.json +0 -55
- package/generated/github.ae-diff-to-api.github.com.deref.json +1 -4963
- package/generated/github.ae-diff-to-api.github.com.json +106 -2784
- package/generated/github.ae.deref.json +5 -5
- package/generated/github.ae.json +5 -11
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"openapi": "3.0.3",
|
|
3
3
|
"info": {
|
|
4
|
-
"version": "5.6.
|
|
4
|
+
"version": "5.6.5",
|
|
5
5
|
"title": "GitHub's official OpenAPI spec + Octokit extension",
|
|
6
6
|
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
|
|
7
7
|
"license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" },
|
|
@@ -2604,41 +2604,6 @@
|
|
|
2604
2604
|
"x-octokit": {
|
|
2605
2605
|
"diff": { "api.github.com.json": { "type": "changed" } }
|
|
2606
2606
|
}
|
|
2607
|
-
},
|
|
2608
|
-
"put": {
|
|
2609
|
-
"summary": "Set allowed actions for an enterprise",
|
|
2610
|
-
"description": "Sets the actions that are allowed in an enterprise. To use this endpoint, the enterprise permission policy for `allowed_actions` must be configured to `selected`. For more information, see \"[Set GitHub Actions permissions for an enterprise](#set-github-actions-permissions-for-an-enterprise).\"\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
|
|
2611
|
-
"operationId": "enterprise-admin/set-allowed-actions-enterprise",
|
|
2612
|
-
"tags": ["enterprise-admin"],
|
|
2613
|
-
"externalDocs": {
|
|
2614
|
-
"description": "API method documentation",
|
|
2615
|
-
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/enterprise-admin#set-allowed-actions-for-an-enterprise"
|
|
2616
|
-
},
|
|
2617
|
-
"parameters": [{ "$ref": "#/components/parameters/enterprise" }],
|
|
2618
|
-
"responses": { "204": { "description": "Response" } },
|
|
2619
|
-
"requestBody": {
|
|
2620
|
-
"required": true,
|
|
2621
|
-
"content": {
|
|
2622
|
-
"application/json": {
|
|
2623
|
-
"schema": { "$ref": "#/components/schemas/selected-actions" },
|
|
2624
|
-
"examples": {
|
|
2625
|
-
"selected_actions": {
|
|
2626
|
-
"$ref": "#/components/examples/selected-actions"
|
|
2627
|
-
}
|
|
2628
|
-
}
|
|
2629
|
-
}
|
|
2630
|
-
}
|
|
2631
|
-
},
|
|
2632
|
-
"x-github": {
|
|
2633
|
-
"enabledForGitHubApps": false,
|
|
2634
|
-
"githubCloudOnly": false,
|
|
2635
|
-
"previews": [],
|
|
2636
|
-
"category": "enterprise-admin",
|
|
2637
|
-
"subcategory": "actions"
|
|
2638
|
-
},
|
|
2639
|
-
"x-octokit": {
|
|
2640
|
-
"diff": { "api.github.com.json": { "type": "changed" } }
|
|
2641
|
-
}
|
|
2642
2607
|
}
|
|
2643
2608
|
},
|
|
2644
2609
|
"/meta": {
|
|
@@ -2678,161 +2643,6 @@
|
|
|
2678
2643
|
}
|
|
2679
2644
|
}
|
|
2680
2645
|
},
|
|
2681
|
-
"/orgs/{org}": {
|
|
2682
|
-
"patch": {
|
|
2683
|
-
"summary": "Update an organization",
|
|
2684
|
-
"description": "**Parameter Deprecation Notice:** GitHub Enterprise Server will replace and discontinue `members_allowed_repository_creation_type` in favor of more granular permissions. The new input parameters are `members_can_create_public_repositories`, `members_can_create_private_repositories` for all organizations and `members_can_create_internal_repositories` for organizations associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see the [blog post](https://developer.github.com/changes/2019-12-03-internal-visibility-changes).\n\nEnables an authenticated organization owner with the `admin:org` scope to update the organization's profile and member privileges.",
|
|
2685
|
-
"tags": ["orgs"],
|
|
2686
|
-
"operationId": "orgs/update",
|
|
2687
|
-
"externalDocs": {
|
|
2688
|
-
"description": "API method documentation",
|
|
2689
|
-
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/orgs/#update-an-organization"
|
|
2690
|
-
},
|
|
2691
|
-
"parameters": [{ "$ref": "#/components/parameters/org" }],
|
|
2692
|
-
"requestBody": {
|
|
2693
|
-
"content": {
|
|
2694
|
-
"application/json": {
|
|
2695
|
-
"schema": {
|
|
2696
|
-
"type": "object",
|
|
2697
|
-
"properties": {
|
|
2698
|
-
"billing_email": {
|
|
2699
|
-
"type": "string",
|
|
2700
|
-
"description": "Billing email address. This address is not publicized."
|
|
2701
|
-
},
|
|
2702
|
-
"company": {
|
|
2703
|
-
"type": "string",
|
|
2704
|
-
"description": "The company name."
|
|
2705
|
-
},
|
|
2706
|
-
"email": {
|
|
2707
|
-
"type": "string",
|
|
2708
|
-
"description": "The publicly visible email address."
|
|
2709
|
-
},
|
|
2710
|
-
"twitter_username": {
|
|
2711
|
-
"type": "string",
|
|
2712
|
-
"description": "The Twitter username of the company."
|
|
2713
|
-
},
|
|
2714
|
-
"location": {
|
|
2715
|
-
"type": "string",
|
|
2716
|
-
"description": "The location."
|
|
2717
|
-
},
|
|
2718
|
-
"name": {
|
|
2719
|
-
"type": "string",
|
|
2720
|
-
"description": "The shorthand name of the company."
|
|
2721
|
-
},
|
|
2722
|
-
"description": {
|
|
2723
|
-
"type": "string",
|
|
2724
|
-
"description": "The description of the company."
|
|
2725
|
-
},
|
|
2726
|
-
"has_organization_projects": {
|
|
2727
|
-
"type": "boolean",
|
|
2728
|
-
"description": "Toggles whether an organization can use organization projects."
|
|
2729
|
-
},
|
|
2730
|
-
"has_repository_projects": {
|
|
2731
|
-
"type": "boolean",
|
|
2732
|
-
"description": "Toggles whether repositories that belong to the organization can use repository projects."
|
|
2733
|
-
},
|
|
2734
|
-
"default_repository_permission": {
|
|
2735
|
-
"type": "string",
|
|
2736
|
-
"description": "Default permission level members have for organization repositories: \n\\* `read` - can pull, but not push to or administer this repository. \n\\* `write` - can pull and push, but not administer this repository. \n\\* `admin` - can pull, push, and administer this repository. \n\\* `none` - no permissions granted by default.",
|
|
2737
|
-
"enum": ["read", "write", "admin", "none"],
|
|
2738
|
-
"default": "read"
|
|
2739
|
-
},
|
|
2740
|
-
"members_can_create_repositories": {
|
|
2741
|
-
"type": "boolean",
|
|
2742
|
-
"description": "Toggles the ability of non-admin organization members to create repositories. Can be one of: \n\\* `true` - all organization members can create repositories. \n\\* `false` - only organization owners can create repositories. \nDefault: `true` \n**Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details. **Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details.",
|
|
2743
|
-
"default": true
|
|
2744
|
-
},
|
|
2745
|
-
"members_can_create_internal_repositories": {
|
|
2746
|
-
"type": "boolean",
|
|
2747
|
-
"description": "Toggles whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. Can be one of: \n\\* `true` - all organization members can create internal repositories. \n\\* `false` - only organization owners can create internal repositories. \nDefault: `true`. For more information, see \"[Restricting repository creation in your organization](https://help.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)\" in the GitHub Help documentation."
|
|
2748
|
-
},
|
|
2749
|
-
"members_can_create_private_repositories": {
|
|
2750
|
-
"type": "boolean",
|
|
2751
|
-
"description": "Toggles whether organization members can create private repositories, which are visible to organization members with permission. Can be one of: \n\\* `true` - all organization members can create private repositories. \n\\* `false` - only organization owners can create private repositories. \nDefault: `true`. For more information, see \"[Restricting repository creation in your organization](https://help.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)\" in the GitHub Help documentation."
|
|
2752
|
-
},
|
|
2753
|
-
"members_can_create_public_repositories": {
|
|
2754
|
-
"type": "boolean",
|
|
2755
|
-
"description": "Toggles whether organization members can create public repositories, which are visible to anyone. Can be one of: \n\\* `true` - all organization members can create public repositories. \n\\* `false` - only organization owners can create public repositories. \nDefault: `true`. For more information, see \"[Restricting repository creation in your organization](https://help.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)\" in the GitHub Help documentation."
|
|
2756
|
-
},
|
|
2757
|
-
"members_allowed_repository_creation_type": {
|
|
2758
|
-
"type": "string",
|
|
2759
|
-
"description": "Specifies which types of repositories non-admin organization members can create. Can be one of: \n\\* `all` - all organization members can create public and private repositories. \n\\* `private` - members can create private repositories. This option is only available to repositories that are part of an organization on GitHub Enterprise Cloud. \n\\* `none` - only admin members can create repositories. \n**Note:** This parameter is deprecated and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See the parameter deprecation notice in the operation description for details.",
|
|
2760
|
-
"enum": ["all", "private", "none"]
|
|
2761
|
-
},
|
|
2762
|
-
"members_can_create_pages": {
|
|
2763
|
-
"type": "boolean",
|
|
2764
|
-
"description": "Toggles whether organization members can create GitHub Pages sites. Can be one of: \n\\* `true` - all organization members can create GitHub Pages sites. \n\\* `false` - no organization members can create GitHub Pages sites. Existing published sites will not be impacted.",
|
|
2765
|
-
"default": true
|
|
2766
|
-
},
|
|
2767
|
-
"blog": {
|
|
2768
|
-
"type": "string",
|
|
2769
|
-
"example": "\"http://github.blog\""
|
|
2770
|
-
}
|
|
2771
|
-
}
|
|
2772
|
-
},
|
|
2773
|
-
"example": {
|
|
2774
|
-
"billing_email": "mona@github.com",
|
|
2775
|
-
"company": "GitHub",
|
|
2776
|
-
"email": "mona@github.com",
|
|
2777
|
-
"twitter_username": "github",
|
|
2778
|
-
"location": "San Francisco",
|
|
2779
|
-
"name": "github",
|
|
2780
|
-
"description": "GitHub, the company.",
|
|
2781
|
-
"default_repository_permission": "read",
|
|
2782
|
-
"members_can_create_repositories": true,
|
|
2783
|
-
"members_allowed_repository_creation_type": "all"
|
|
2784
|
-
}
|
|
2785
|
-
}
|
|
2786
|
-
}
|
|
2787
|
-
},
|
|
2788
|
-
"responses": {
|
|
2789
|
-
"200": {
|
|
2790
|
-
"description": "Response",
|
|
2791
|
-
"content": {
|
|
2792
|
-
"application/json": {
|
|
2793
|
-
"schema": { "$ref": "#/components/schemas/organization-full" },
|
|
2794
|
-
"examples": {
|
|
2795
|
-
"default": {
|
|
2796
|
-
"$ref": "#/components/examples/organization-full"
|
|
2797
|
-
}
|
|
2798
|
-
}
|
|
2799
|
-
}
|
|
2800
|
-
}
|
|
2801
|
-
},
|
|
2802
|
-
"409": { "$ref": "#/components/responses/conflict" },
|
|
2803
|
-
"415": { "$ref": "#/components/responses/preview_header_missing" },
|
|
2804
|
-
"422": {
|
|
2805
|
-
"description": "Validation failed",
|
|
2806
|
-
"content": {
|
|
2807
|
-
"application/json": {
|
|
2808
|
-
"schema": {
|
|
2809
|
-
"oneOf": [
|
|
2810
|
-
{ "$ref": "#/components/schemas/validation-error" },
|
|
2811
|
-
{ "$ref": "#/components/schemas/validation-error-simple" }
|
|
2812
|
-
]
|
|
2813
|
-
}
|
|
2814
|
-
}
|
|
2815
|
-
}
|
|
2816
|
-
}
|
|
2817
|
-
},
|
|
2818
|
-
"x-github": {
|
|
2819
|
-
"githubCloudOnly": false,
|
|
2820
|
-
"enabledForGitHubApps": true,
|
|
2821
|
-
"previews": [
|
|
2822
|
-
{
|
|
2823
|
-
"required": false,
|
|
2824
|
-
"name": "surtur",
|
|
2825
|
-
"note": "New repository creation permissions are available to preview. You can now use `members_can_create_public_repositories`, `members_can_create_private_repositories`, and `members_can_create_internal_repositories`. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. These parameters provide more granular permissions to configure the type of repositories organization members can create.\n\nTo access these new parameters during the preview period, you must provide a custom [media type](https://docs.github.com/enterprise-server@3.2/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.surtur-preview+json\n```"
|
|
2826
|
-
}
|
|
2827
|
-
],
|
|
2828
|
-
"category": "orgs",
|
|
2829
|
-
"subcategory": null
|
|
2830
|
-
},
|
|
2831
|
-
"x-octokit": {
|
|
2832
|
-
"diff": { "api.github.com.json": { "type": "changed" } }
|
|
2833
|
-
}
|
|
2834
|
-
}
|
|
2835
|
-
},
|
|
2836
2646
|
"/orgs/{org}/actions/permissions/selected-actions": {
|
|
2837
2647
|
"get": {
|
|
2838
2648
|
"summary": "Get allowed actions for an organization",
|
|
@@ -2869,40 +2679,6 @@
|
|
|
2869
2679
|
"x-octokit": {
|
|
2870
2680
|
"diff": { "api.github.com.json": { "type": "changed" } }
|
|
2871
2681
|
}
|
|
2872
|
-
},
|
|
2873
|
-
"put": {
|
|
2874
|
-
"summary": "Set allowed actions for an organization",
|
|
2875
|
-
"description": "Sets the actions that are allowed in an organization. To use this endpoint, the organization permission policy for `allowed_actions` must be configured to `selected`. For more information, see \"[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization).\"\n\nIf the organization belongs to an enterprise that has `selected` actions set at the enterprise level, then you cannot override any of the enterprise's allowed actions settings.\n\nTo use the `patterns_allowed` setting for private repositories, the organization must belong to an enterprise. If the organization does not belong to an enterprise, then the `patterns_allowed` setting only applies to public repositories in the organization.\n\nYou must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API.",
|
|
2876
|
-
"operationId": "actions/set-allowed-actions-organization",
|
|
2877
|
-
"tags": ["actions"],
|
|
2878
|
-
"externalDocs": {
|
|
2879
|
-
"description": "API method documentation",
|
|
2880
|
-
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/actions#set-allowed-actions-for-an-organization"
|
|
2881
|
-
},
|
|
2882
|
-
"parameters": [{ "$ref": "#/components/parameters/org" }],
|
|
2883
|
-
"responses": { "204": { "description": "Response" } },
|
|
2884
|
-
"requestBody": {
|
|
2885
|
-
"content": {
|
|
2886
|
-
"application/json": {
|
|
2887
|
-
"schema": { "$ref": "#/components/schemas/selected-actions" },
|
|
2888
|
-
"examples": {
|
|
2889
|
-
"selected_actions": {
|
|
2890
|
-
"$ref": "#/components/examples/selected-actions"
|
|
2891
|
-
}
|
|
2892
|
-
}
|
|
2893
|
-
}
|
|
2894
|
-
}
|
|
2895
|
-
},
|
|
2896
|
-
"x-github": {
|
|
2897
|
-
"enabledForGitHubApps": true,
|
|
2898
|
-
"githubCloudOnly": false,
|
|
2899
|
-
"previews": [],
|
|
2900
|
-
"category": "actions",
|
|
2901
|
-
"subcategory": "permissions"
|
|
2902
|
-
},
|
|
2903
|
-
"x-octokit": {
|
|
2904
|
-
"diff": { "api.github.com.json": { "type": "changed" } }
|
|
2905
|
-
}
|
|
2906
2682
|
}
|
|
2907
2683
|
},
|
|
2908
2684
|
"/orgs/{org}/pre-receive-hooks": {
|
|
@@ -3167,43 +2943,6 @@
|
|
|
3167
2943
|
"x-octokit": {
|
|
3168
2944
|
"diff": { "api.github.com.json": { "type": "changed" } }
|
|
3169
2945
|
}
|
|
3170
|
-
},
|
|
3171
|
-
"put": {
|
|
3172
|
-
"summary": "Set allowed actions for a repository",
|
|
3173
|
-
"description": "Sets the actions that are allowed in a repository. To use this endpoint, the repository permission policy for `allowed_actions` must be configured to `selected`. For more information, see \"[Set GitHub Actions permissions for a repository](#set-github-actions-permissions-for-a-repository).\"\n\nIf the repository belongs to an organization or enterprise that has `selected` actions set at the organization or enterprise levels, then you cannot override any of the allowed actions settings.\n\nTo use the `patterns_allowed` setting for private repositories, the repository must belong to an enterprise. If the repository does not belong to an enterprise, then the `patterns_allowed` setting only applies to public repositories.\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `administration` repository permission to use this API.",
|
|
3174
|
-
"operationId": "actions/set-allowed-actions-repository",
|
|
3175
|
-
"tags": ["actions"],
|
|
3176
|
-
"externalDocs": {
|
|
3177
|
-
"description": "API method documentation",
|
|
3178
|
-
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/actions#set-allowed-actions-for-a-repository"
|
|
3179
|
-
},
|
|
3180
|
-
"parameters": [
|
|
3181
|
-
{ "$ref": "#/components/parameters/owner" },
|
|
3182
|
-
{ "$ref": "#/components/parameters/repo" }
|
|
3183
|
-
],
|
|
3184
|
-
"responses": { "204": { "description": "Response" } },
|
|
3185
|
-
"requestBody": {
|
|
3186
|
-
"content": {
|
|
3187
|
-
"application/json": {
|
|
3188
|
-
"schema": { "$ref": "#/components/schemas/selected-actions" },
|
|
3189
|
-
"examples": {
|
|
3190
|
-
"selected_actions": {
|
|
3191
|
-
"$ref": "#/components/examples/selected-actions"
|
|
3192
|
-
}
|
|
3193
|
-
}
|
|
3194
|
-
}
|
|
3195
|
-
}
|
|
3196
|
-
},
|
|
3197
|
-
"x-github": {
|
|
3198
|
-
"enabledForGitHubApps": true,
|
|
3199
|
-
"githubCloudOnly": false,
|
|
3200
|
-
"previews": [],
|
|
3201
|
-
"category": "actions",
|
|
3202
|
-
"subcategory": "permissions"
|
|
3203
|
-
},
|
|
3204
|
-
"x-octokit": {
|
|
3205
|
-
"diff": { "api.github.com.json": { "type": "changed" } }
|
|
3206
|
-
}
|
|
3207
2946
|
}
|
|
3208
2947
|
},
|
|
3209
2948
|
"/repos/{owner}/{repo}/pre-receive-hooks": {
|
|
@@ -3470,98 +3209,6 @@
|
|
|
3470
3209
|
"x-octokit": {
|
|
3471
3210
|
"diff": { "api.github.com.json": { "type": "changed" } }
|
|
3472
3211
|
}
|
|
3473
|
-
},
|
|
3474
|
-
"post": {
|
|
3475
|
-
"summary": "Create a release",
|
|
3476
|
-
"description": "Users with push access to the repository can create a release.\n\nThis endpoint triggers [notifications](https://docs.github.com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See \"[Secondary rate limits](https://docs.github.com/enterprise-server@3.2/rest/overview/resources-in-the-rest-api#secondary-rate-limits)\" and \"[Dealing with secondary rate limits](https://docs.github.com/enterprise-server@3.2/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)\" for details.",
|
|
3477
|
-
"tags": ["repos"],
|
|
3478
|
-
"operationId": "repos/create-release",
|
|
3479
|
-
"externalDocs": {
|
|
3480
|
-
"description": "API method documentation",
|
|
3481
|
-
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/repos#create-a-release"
|
|
3482
|
-
},
|
|
3483
|
-
"parameters": [
|
|
3484
|
-
{ "$ref": "#/components/parameters/owner" },
|
|
3485
|
-
{ "$ref": "#/components/parameters/repo" }
|
|
3486
|
-
],
|
|
3487
|
-
"requestBody": {
|
|
3488
|
-
"required": true,
|
|
3489
|
-
"content": {
|
|
3490
|
-
"application/json": {
|
|
3491
|
-
"schema": {
|
|
3492
|
-
"type": "object",
|
|
3493
|
-
"properties": {
|
|
3494
|
-
"tag_name": {
|
|
3495
|
-
"type": "string",
|
|
3496
|
-
"description": "The name of the tag."
|
|
3497
|
-
},
|
|
3498
|
-
"target_commitish": {
|
|
3499
|
-
"type": "string",
|
|
3500
|
-
"description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`)."
|
|
3501
|
-
},
|
|
3502
|
-
"name": {
|
|
3503
|
-
"type": "string",
|
|
3504
|
-
"description": "The name of the release."
|
|
3505
|
-
},
|
|
3506
|
-
"body": {
|
|
3507
|
-
"type": "string",
|
|
3508
|
-
"description": "Text describing the contents of the tag."
|
|
3509
|
-
},
|
|
3510
|
-
"draft": {
|
|
3511
|
-
"type": "boolean",
|
|
3512
|
-
"description": "`true` to create a draft (unpublished) release, `false` to create a published one.",
|
|
3513
|
-
"default": false
|
|
3514
|
-
},
|
|
3515
|
-
"prerelease": {
|
|
3516
|
-
"type": "boolean",
|
|
3517
|
-
"description": "`true` to identify the release as a prerelease. `false` to identify the release as a full release.",
|
|
3518
|
-
"default": false
|
|
3519
|
-
}
|
|
3520
|
-
},
|
|
3521
|
-
"required": ["tag_name"]
|
|
3522
|
-
},
|
|
3523
|
-
"example": {
|
|
3524
|
-
"tag_name": "v1.0.0",
|
|
3525
|
-
"target_commitish": "master",
|
|
3526
|
-
"name": "v1.0.0",
|
|
3527
|
-
"body": "Description of the release",
|
|
3528
|
-
"draft": false,
|
|
3529
|
-
"prerelease": false
|
|
3530
|
-
}
|
|
3531
|
-
}
|
|
3532
|
-
}
|
|
3533
|
-
},
|
|
3534
|
-
"responses": {
|
|
3535
|
-
"201": {
|
|
3536
|
-
"description": "Response",
|
|
3537
|
-
"content": {
|
|
3538
|
-
"application/json": {
|
|
3539
|
-
"schema": { "$ref": "#/components/schemas/release" },
|
|
3540
|
-
"examples": {
|
|
3541
|
-
"default": { "$ref": "#/components/examples/release" }
|
|
3542
|
-
}
|
|
3543
|
-
}
|
|
3544
|
-
},
|
|
3545
|
-
"headers": {
|
|
3546
|
-
"Location": {
|
|
3547
|
-
"example": "https://api.github.com/repos/octocat/Hello-World/releases/1",
|
|
3548
|
-
"schema": { "type": "string" }
|
|
3549
|
-
}
|
|
3550
|
-
}
|
|
3551
|
-
},
|
|
3552
|
-
"422": { "$ref": "#/components/responses/validation_failed" }
|
|
3553
|
-
},
|
|
3554
|
-
"x-github": {
|
|
3555
|
-
"triggersNotification": true,
|
|
3556
|
-
"githubCloudOnly": false,
|
|
3557
|
-
"enabledForGitHubApps": true,
|
|
3558
|
-
"previews": [],
|
|
3559
|
-
"category": "repos",
|
|
3560
|
-
"subcategory": "releases"
|
|
3561
|
-
},
|
|
3562
|
-
"x-octokit": {
|
|
3563
|
-
"diff": { "api.github.com.json": { "type": "changed" } }
|
|
3564
|
-
}
|
|
3565
3212
|
}
|
|
3566
3213
|
},
|
|
3567
3214
|
"/repos/{owner}/{repo}/releases/latest": {
|
|
@@ -3668,89 +3315,7 @@
|
|
|
3668
3315
|
],
|
|
3669
3316
|
"responses": {
|
|
3670
3317
|
"200": {
|
|
3671
|
-
"description": "**Note:** This returns an `upload_url` key corresponding to the endpoint for uploading release assets. This key is a [hypermedia resource](https://docs.github.com/enterprise-server@3.2/rest/overview/resources-in-the-rest-api#hypermedia).",
|
|
3672
|
-
"content": {
|
|
3673
|
-
"application/json": {
|
|
3674
|
-
"schema": { "$ref": "#/components/schemas/release" },
|
|
3675
|
-
"examples": {
|
|
3676
|
-
"default": { "$ref": "#/components/examples/release" }
|
|
3677
|
-
}
|
|
3678
|
-
}
|
|
3679
|
-
}
|
|
3680
|
-
},
|
|
3681
|
-
"404": { "$ref": "#/components/responses/not_found" }
|
|
3682
|
-
},
|
|
3683
|
-
"x-github": {
|
|
3684
|
-
"githubCloudOnly": false,
|
|
3685
|
-
"enabledForGitHubApps": true,
|
|
3686
|
-
"previews": [],
|
|
3687
|
-
"category": "repos",
|
|
3688
|
-
"subcategory": "releases"
|
|
3689
|
-
},
|
|
3690
|
-
"x-octokit": {
|
|
3691
|
-
"diff": { "api.github.com.json": { "type": "changed" } }
|
|
3692
|
-
}
|
|
3693
|
-
},
|
|
3694
|
-
"patch": {
|
|
3695
|
-
"summary": "Update a release",
|
|
3696
|
-
"description": "Users with push access to the repository can edit a release.",
|
|
3697
|
-
"tags": ["repos"],
|
|
3698
|
-
"operationId": "repos/update-release",
|
|
3699
|
-
"externalDocs": {
|
|
3700
|
-
"description": "API method documentation",
|
|
3701
|
-
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/repos#update-a-release"
|
|
3702
|
-
},
|
|
3703
|
-
"parameters": [
|
|
3704
|
-
{ "$ref": "#/components/parameters/owner" },
|
|
3705
|
-
{ "$ref": "#/components/parameters/repo" },
|
|
3706
|
-
{ "$ref": "#/components/parameters/release-id" }
|
|
3707
|
-
],
|
|
3708
|
-
"requestBody": {
|
|
3709
|
-
"content": {
|
|
3710
|
-
"application/json": {
|
|
3711
|
-
"schema": {
|
|
3712
|
-
"type": "object",
|
|
3713
|
-
"properties": {
|
|
3714
|
-
"tag_name": {
|
|
3715
|
-
"type": "string",
|
|
3716
|
-
"description": "The name of the tag."
|
|
3717
|
-
},
|
|
3718
|
-
"target_commitish": {
|
|
3719
|
-
"type": "string",
|
|
3720
|
-
"description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`)."
|
|
3721
|
-
},
|
|
3722
|
-
"name": {
|
|
3723
|
-
"type": "string",
|
|
3724
|
-
"description": "The name of the release."
|
|
3725
|
-
},
|
|
3726
|
-
"body": {
|
|
3727
|
-
"type": "string",
|
|
3728
|
-
"description": "Text describing the contents of the tag."
|
|
3729
|
-
},
|
|
3730
|
-
"draft": {
|
|
3731
|
-
"type": "boolean",
|
|
3732
|
-
"description": "`true` makes the release a draft, and `false` publishes the release."
|
|
3733
|
-
},
|
|
3734
|
-
"prerelease": {
|
|
3735
|
-
"type": "boolean",
|
|
3736
|
-
"description": "`true` to identify the release as a prerelease, `false` to identify the release as a full release."
|
|
3737
|
-
}
|
|
3738
|
-
}
|
|
3739
|
-
},
|
|
3740
|
-
"example": {
|
|
3741
|
-
"tag_name": "v1.0.0",
|
|
3742
|
-
"target_commitish": "master",
|
|
3743
|
-
"name": "v1.0.0",
|
|
3744
|
-
"body": "Description of the release",
|
|
3745
|
-
"draft": false,
|
|
3746
|
-
"prerelease": false
|
|
3747
|
-
}
|
|
3748
|
-
}
|
|
3749
|
-
}
|
|
3750
|
-
},
|
|
3751
|
-
"responses": {
|
|
3752
|
-
"200": {
|
|
3753
|
-
"description": "Response",
|
|
3318
|
+
"description": "**Note:** This returns an `upload_url` key corresponding to the endpoint for uploading release assets. This key is a [hypermedia resource](https://docs.github.com/enterprise-server@3.2/rest/overview/resources-in-the-rest-api#hypermedia).",
|
|
3754
3319
|
"content": {
|
|
3755
3320
|
"application/json": {
|
|
3756
3321
|
"schema": { "$ref": "#/components/schemas/release" },
|
|
@@ -3759,7 +3324,8 @@
|
|
|
3759
3324
|
}
|
|
3760
3325
|
}
|
|
3761
3326
|
}
|
|
3762
|
-
}
|
|
3327
|
+
},
|
|
3328
|
+
"404": { "$ref": "#/components/responses/not_found" }
|
|
3763
3329
|
},
|
|
3764
3330
|
"x-github": {
|
|
3765
3331
|
"githubCloudOnly": false,
|
|
@@ -5242,370 +4808,137 @@
|
|
|
5242
4808
|
"active_hooks": { "type": "integer" },
|
|
5243
4809
|
"inactive_hooks": { "type": "integer" }
|
|
5244
4810
|
},
|
|
5245
|
-
"required": ["total_hooks", "active_hooks", "inactive_hooks"]
|
|
5246
|
-
},
|
|
5247
|
-
"enterprise-issue-overview": {
|
|
5248
|
-
"title": "Enterprise Issue Stats",
|
|
5249
|
-
"type": "object",
|
|
5250
|
-
"properties": {
|
|
5251
|
-
"total_issues": { "type": "integer" },
|
|
5252
|
-
"open_issues": { "type": "integer" },
|
|
5253
|
-
"closed_issues": { "type": "integer" }
|
|
5254
|
-
},
|
|
5255
|
-
"required": ["total_issues", "open_issues", "closed_issues"]
|
|
5256
|
-
},
|
|
5257
|
-
"enterprise-milestone-overview": {
|
|
5258
|
-
"title": "Enterprise Milestone Stats",
|
|
5259
|
-
"type": "object",
|
|
5260
|
-
"properties": {
|
|
5261
|
-
"total_milestones": { "type": "integer" },
|
|
5262
|
-
"open_milestones": { "type": "integer" },
|
|
5263
|
-
"closed_milestones": { "type": "integer" }
|
|
5264
|
-
},
|
|
5265
|
-
"required": ["total_milestones", "open_milestones", "closed_milestones"]
|
|
5266
|
-
},
|
|
5267
|
-
"enterprise-organization-overview": {
|
|
5268
|
-
"title": "Enterprise Organization Stats",
|
|
5269
|
-
"type": "object",
|
|
5270
|
-
"properties": {
|
|
5271
|
-
"total_orgs": { "type": "integer" },
|
|
5272
|
-
"disabled_orgs": { "type": "integer" },
|
|
5273
|
-
"total_teams": { "type": "integer" },
|
|
5274
|
-
"total_team_members": { "type": "integer" }
|
|
5275
|
-
},
|
|
5276
|
-
"required": [
|
|
5277
|
-
"total_orgs",
|
|
5278
|
-
"disabled_orgs",
|
|
5279
|
-
"total_teams",
|
|
5280
|
-
"total_team_members"
|
|
5281
|
-
]
|
|
5282
|
-
},
|
|
5283
|
-
"enterprise-page-overview": {
|
|
5284
|
-
"title": "Enterprise Pages Stats",
|
|
5285
|
-
"type": "object",
|
|
5286
|
-
"properties": { "total_pages": { "type": "integer" } },
|
|
5287
|
-
"required": ["total_pages"]
|
|
5288
|
-
},
|
|
5289
|
-
"enterprise-pull-request-overview": {
|
|
5290
|
-
"title": "Enterprise Pull Request Stats",
|
|
5291
|
-
"type": "object",
|
|
5292
|
-
"properties": {
|
|
5293
|
-
"total_pulls": { "type": "integer" },
|
|
5294
|
-
"merged_pulls": { "type": "integer" },
|
|
5295
|
-
"mergeable_pulls": { "type": "integer" },
|
|
5296
|
-
"unmergeable_pulls": { "type": "integer" }
|
|
5297
|
-
},
|
|
5298
|
-
"required": [
|
|
5299
|
-
"total_pulls",
|
|
5300
|
-
"merged_pulls",
|
|
5301
|
-
"mergeable_pulls",
|
|
5302
|
-
"unmergeable_pulls"
|
|
5303
|
-
]
|
|
5304
|
-
},
|
|
5305
|
-
"enterprise-repository-overview": {
|
|
5306
|
-
"title": "Repository Enterprise Stats",
|
|
5307
|
-
"type": "object",
|
|
5308
|
-
"properties": {
|
|
5309
|
-
"total_repos": { "type": "integer" },
|
|
5310
|
-
"root_repos": { "type": "integer" },
|
|
5311
|
-
"fork_repos": { "type": "integer" },
|
|
5312
|
-
"org_repos": { "type": "integer" },
|
|
5313
|
-
"total_pushes": { "type": "integer" },
|
|
5314
|
-
"total_wikis": { "type": "integer" }
|
|
5315
|
-
},
|
|
5316
|
-
"required": [
|
|
5317
|
-
"total_repos",
|
|
5318
|
-
"root_repos",
|
|
5319
|
-
"fork_repos",
|
|
5320
|
-
"org_repos",
|
|
5321
|
-
"total_pushes",
|
|
5322
|
-
"total_wikis"
|
|
5323
|
-
]
|
|
5324
|
-
},
|
|
5325
|
-
"enterprise-user-overview": {
|
|
5326
|
-
"title": "Enterprise User Stats",
|
|
5327
|
-
"type": "object",
|
|
5328
|
-
"properties": {
|
|
5329
|
-
"total_users": { "type": "integer" },
|
|
5330
|
-
"admin_users": { "type": "integer" },
|
|
5331
|
-
"suspended_users": { "type": "integer" }
|
|
5332
|
-
},
|
|
5333
|
-
"required": ["total_users", "admin_users", "suspended_users"]
|
|
5334
|
-
},
|
|
5335
|
-
"selected-actions": {
|
|
5336
|
-
"type": "object",
|
|
5337
|
-
"properties": {
|
|
5338
|
-
"github_owned_allowed": {
|
|
5339
|
-
"type": "boolean",
|
|
5340
|
-
"description": "Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization."
|
|
5341
|
-
},
|
|
5342
|
-
"patterns_allowed": {
|
|
5343
|
-
"type": "array",
|
|
5344
|
-
"description": "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`.\"",
|
|
5345
|
-
"items": { "type": "string" }
|
|
5346
|
-
}
|
|
5347
|
-
},
|
|
5348
|
-
"required": ["github_owned_allowed", "patterns_allowed"]
|
|
5349
|
-
},
|
|
5350
|
-
"api-overview": {
|
|
5351
|
-
"title": "Api Overview",
|
|
5352
|
-
"description": "Api Overview",
|
|
5353
|
-
"type": "object",
|
|
5354
|
-
"properties": {
|
|
5355
|
-
"verifiable_password_authentication": {
|
|
5356
|
-
"type": "boolean",
|
|
5357
|
-
"example": true
|
|
5358
|
-
},
|
|
5359
|
-
"packages": {
|
|
5360
|
-
"type": "array",
|
|
5361
|
-
"items": { "type": "string" },
|
|
5362
|
-
"example": [
|
|
5363
|
-
"13.65.0.0/16",
|
|
5364
|
-
"157.55.204.33/32",
|
|
5365
|
-
"2a01:111:f403:f90c::/62"
|
|
5366
|
-
]
|
|
5367
|
-
},
|
|
5368
|
-
"dependabot": {
|
|
5369
|
-
"type": "array",
|
|
5370
|
-
"items": { "type": "string" },
|
|
5371
|
-
"example": ["192.168.7.15/32", "192.168.7.16/32"]
|
|
5372
|
-
},
|
|
5373
|
-
"installed_version": { "type": "string", "example": "3.2.0" }
|
|
5374
|
-
},
|
|
5375
|
-
"required": ["verifiable_password_authentication"]
|
|
5376
|
-
},
|
|
5377
|
-
"organization-full": {
|
|
5378
|
-
"title": "Organization Full",
|
|
5379
|
-
"description": "Organization Full",
|
|
5380
|
-
"type": "object",
|
|
5381
|
-
"properties": {
|
|
5382
|
-
"login": { "type": "string", "example": "github" },
|
|
5383
|
-
"id": { "type": "integer", "example": 1 },
|
|
5384
|
-
"node_id": {
|
|
5385
|
-
"type": "string",
|
|
5386
|
-
"example": "MDEyOk9yZ2FuaXphdGlvbjE="
|
|
5387
|
-
},
|
|
5388
|
-
"url": {
|
|
5389
|
-
"type": "string",
|
|
5390
|
-
"format": "uri",
|
|
5391
|
-
"example": "https://api.github.com/orgs/github"
|
|
5392
|
-
},
|
|
5393
|
-
"repos_url": {
|
|
5394
|
-
"type": "string",
|
|
5395
|
-
"format": "uri",
|
|
5396
|
-
"example": "https://api.github.com/orgs/github/repos"
|
|
5397
|
-
},
|
|
5398
|
-
"events_url": {
|
|
5399
|
-
"type": "string",
|
|
5400
|
-
"format": "uri",
|
|
5401
|
-
"example": "https://api.github.com/orgs/github/events"
|
|
5402
|
-
},
|
|
5403
|
-
"hooks_url": {
|
|
5404
|
-
"type": "string",
|
|
5405
|
-
"example": "https://api.github.com/orgs/github/hooks"
|
|
5406
|
-
},
|
|
5407
|
-
"issues_url": {
|
|
5408
|
-
"type": "string",
|
|
5409
|
-
"example": "https://api.github.com/orgs/github/issues"
|
|
5410
|
-
},
|
|
5411
|
-
"members_url": {
|
|
5412
|
-
"type": "string",
|
|
5413
|
-
"example": "https://api.github.com/orgs/github/members{/member}"
|
|
5414
|
-
},
|
|
5415
|
-
"public_members_url": {
|
|
5416
|
-
"type": "string",
|
|
5417
|
-
"example": "https://api.github.com/orgs/github/public_members{/member}"
|
|
5418
|
-
},
|
|
5419
|
-
"avatar_url": {
|
|
5420
|
-
"type": "string",
|
|
5421
|
-
"example": "https://github.com/images/error/octocat_happy.gif"
|
|
5422
|
-
},
|
|
5423
|
-
"description": {
|
|
5424
|
-
"type": "string",
|
|
5425
|
-
"example": "A great organization",
|
|
5426
|
-
"nullable": true
|
|
5427
|
-
},
|
|
5428
|
-
"name": { "type": "string", "example": "github" },
|
|
5429
|
-
"company": { "type": "string", "example": "GitHub" },
|
|
5430
|
-
"blog": {
|
|
5431
|
-
"type": "string",
|
|
5432
|
-
"format": "uri",
|
|
5433
|
-
"example": "https://github.com/blog"
|
|
5434
|
-
},
|
|
5435
|
-
"location": { "type": "string", "example": "San Francisco" },
|
|
5436
|
-
"email": {
|
|
5437
|
-
"type": "string",
|
|
5438
|
-
"format": "email",
|
|
5439
|
-
"example": "octocat@github.com"
|
|
5440
|
-
},
|
|
5441
|
-
"twitter_username": {
|
|
5442
|
-
"type": "string",
|
|
5443
|
-
"example": "github",
|
|
5444
|
-
"nullable": true
|
|
5445
|
-
},
|
|
5446
|
-
"is_verified": { "type": "boolean", "example": true },
|
|
5447
|
-
"has_organization_projects": { "type": "boolean", "example": true },
|
|
5448
|
-
"has_repository_projects": { "type": "boolean", "example": true },
|
|
5449
|
-
"public_repos": { "type": "integer", "example": 2 },
|
|
5450
|
-
"public_gists": { "type": "integer", "example": 1 },
|
|
5451
|
-
"followers": { "type": "integer", "example": 20 },
|
|
5452
|
-
"following": { "type": "integer", "example": 0 },
|
|
5453
|
-
"html_url": {
|
|
5454
|
-
"type": "string",
|
|
5455
|
-
"format": "uri",
|
|
5456
|
-
"example": "https://github.com/octocat"
|
|
5457
|
-
},
|
|
5458
|
-
"created_at": {
|
|
5459
|
-
"type": "string",
|
|
5460
|
-
"format": "date-time",
|
|
5461
|
-
"example": "2008-01-14T04:33:35Z"
|
|
5462
|
-
},
|
|
5463
|
-
"type": { "type": "string", "example": "Organization" },
|
|
5464
|
-
"total_private_repos": { "type": "integer", "example": 100 },
|
|
5465
|
-
"owned_private_repos": { "type": "integer", "example": 100 },
|
|
5466
|
-
"private_gists": {
|
|
5467
|
-
"type": "integer",
|
|
5468
|
-
"example": 81,
|
|
5469
|
-
"nullable": true
|
|
5470
|
-
},
|
|
5471
|
-
"disk_usage": {
|
|
5472
|
-
"type": "integer",
|
|
5473
|
-
"example": 10000,
|
|
5474
|
-
"nullable": true
|
|
5475
|
-
},
|
|
5476
|
-
"collaborators": {
|
|
5477
|
-
"type": "integer",
|
|
5478
|
-
"example": 8,
|
|
5479
|
-
"nullable": true
|
|
5480
|
-
},
|
|
5481
|
-
"billing_email": {
|
|
5482
|
-
"type": "string",
|
|
5483
|
-
"format": "email",
|
|
5484
|
-
"example": "org@example.com",
|
|
5485
|
-
"nullable": true
|
|
5486
|
-
},
|
|
5487
|
-
"plan": {
|
|
5488
|
-
"type": "object",
|
|
5489
|
-
"properties": {
|
|
5490
|
-
"name": { "type": "string" },
|
|
5491
|
-
"space": { "type": "integer" },
|
|
5492
|
-
"private_repos": { "type": "integer" },
|
|
5493
|
-
"filled_seats": { "type": "integer" },
|
|
5494
|
-
"seats": { "type": "integer" }
|
|
5495
|
-
},
|
|
5496
|
-
"required": ["name", "space", "private_repos"]
|
|
5497
|
-
},
|
|
5498
|
-
"default_repository_permission": {
|
|
5499
|
-
"type": "string",
|
|
5500
|
-
"nullable": true
|
|
5501
|
-
},
|
|
5502
|
-
"members_can_create_repositories": {
|
|
5503
|
-
"type": "boolean",
|
|
5504
|
-
"example": true,
|
|
5505
|
-
"nullable": true
|
|
5506
|
-
},
|
|
5507
|
-
"two_factor_requirement_enabled": {
|
|
5508
|
-
"type": "boolean",
|
|
5509
|
-
"example": true,
|
|
5510
|
-
"nullable": true
|
|
5511
|
-
},
|
|
5512
|
-
"members_allowed_repository_creation_type": {
|
|
5513
|
-
"type": "string",
|
|
5514
|
-
"example": "all"
|
|
5515
|
-
},
|
|
5516
|
-
"members_can_create_public_repositories": {
|
|
5517
|
-
"type": "boolean",
|
|
5518
|
-
"example": true
|
|
5519
|
-
},
|
|
5520
|
-
"members_can_create_private_repositories": {
|
|
5521
|
-
"type": "boolean",
|
|
5522
|
-
"example": true
|
|
5523
|
-
},
|
|
5524
|
-
"members_can_create_internal_repositories": {
|
|
5525
|
-
"type": "boolean",
|
|
5526
|
-
"example": true
|
|
5527
|
-
},
|
|
5528
|
-
"members_can_create_pages": { "type": "boolean", "example": true },
|
|
5529
|
-
"members_can_create_public_pages": {
|
|
5530
|
-
"type": "boolean",
|
|
5531
|
-
"example": true
|
|
5532
|
-
},
|
|
5533
|
-
"members_can_create_private_pages": {
|
|
5534
|
-
"type": "boolean",
|
|
5535
|
-
"example": true
|
|
5536
|
-
},
|
|
5537
|
-
"updated_at": { "type": "string", "format": "date-time" }
|
|
5538
|
-
},
|
|
4811
|
+
"required": ["total_hooks", "active_hooks", "inactive_hooks"]
|
|
4812
|
+
},
|
|
4813
|
+
"enterprise-issue-overview": {
|
|
4814
|
+
"title": "Enterprise Issue Stats",
|
|
4815
|
+
"type": "object",
|
|
4816
|
+
"properties": {
|
|
4817
|
+
"total_issues": { "type": "integer" },
|
|
4818
|
+
"open_issues": { "type": "integer" },
|
|
4819
|
+
"closed_issues": { "type": "integer" }
|
|
4820
|
+
},
|
|
4821
|
+
"required": ["total_issues", "open_issues", "closed_issues"]
|
|
4822
|
+
},
|
|
4823
|
+
"enterprise-milestone-overview": {
|
|
4824
|
+
"title": "Enterprise Milestone Stats",
|
|
4825
|
+
"type": "object",
|
|
4826
|
+
"properties": {
|
|
4827
|
+
"total_milestones": { "type": "integer" },
|
|
4828
|
+
"open_milestones": { "type": "integer" },
|
|
4829
|
+
"closed_milestones": { "type": "integer" }
|
|
4830
|
+
},
|
|
4831
|
+
"required": ["total_milestones", "open_milestones", "closed_milestones"]
|
|
4832
|
+
},
|
|
4833
|
+
"enterprise-organization-overview": {
|
|
4834
|
+
"title": "Enterprise Organization Stats",
|
|
4835
|
+
"type": "object",
|
|
4836
|
+
"properties": {
|
|
4837
|
+
"total_orgs": { "type": "integer" },
|
|
4838
|
+
"disabled_orgs": { "type": "integer" },
|
|
4839
|
+
"total_teams": { "type": "integer" },
|
|
4840
|
+
"total_team_members": { "type": "integer" }
|
|
4841
|
+
},
|
|
5539
4842
|
"required": [
|
|
5540
|
-
"
|
|
5541
|
-
"
|
|
5542
|
-
"
|
|
5543
|
-
"
|
|
5544
|
-
"repos_url",
|
|
5545
|
-
"events_url",
|
|
5546
|
-
"hooks_url",
|
|
5547
|
-
"issues_url",
|
|
5548
|
-
"members_url",
|
|
5549
|
-
"public_members_url",
|
|
5550
|
-
"avatar_url",
|
|
5551
|
-
"description",
|
|
5552
|
-
"html_url",
|
|
5553
|
-
"has_organization_projects",
|
|
5554
|
-
"has_repository_projects",
|
|
5555
|
-
"public_repos",
|
|
5556
|
-
"public_gists",
|
|
5557
|
-
"followers",
|
|
5558
|
-
"following",
|
|
5559
|
-
"type",
|
|
5560
|
-
"created_at",
|
|
5561
|
-
"updated_at"
|
|
4843
|
+
"total_orgs",
|
|
4844
|
+
"disabled_orgs",
|
|
4845
|
+
"total_teams",
|
|
4846
|
+
"total_team_members"
|
|
5562
4847
|
]
|
|
5563
4848
|
},
|
|
5564
|
-
"
|
|
5565
|
-
"title": "
|
|
5566
|
-
"
|
|
4849
|
+
"enterprise-page-overview": {
|
|
4850
|
+
"title": "Enterprise Pages Stats",
|
|
4851
|
+
"type": "object",
|
|
4852
|
+
"properties": { "total_pages": { "type": "integer" } },
|
|
4853
|
+
"required": ["total_pages"]
|
|
4854
|
+
},
|
|
4855
|
+
"enterprise-pull-request-overview": {
|
|
4856
|
+
"title": "Enterprise Pull Request Stats",
|
|
5567
4857
|
"type": "object",
|
|
5568
|
-
"required": ["message", "documentation_url"],
|
|
5569
4858
|
"properties": {
|
|
5570
|
-
"
|
|
5571
|
-
"
|
|
5572
|
-
"
|
|
4859
|
+
"total_pulls": { "type": "integer" },
|
|
4860
|
+
"merged_pulls": { "type": "integer" },
|
|
4861
|
+
"mergeable_pulls": { "type": "integer" },
|
|
4862
|
+
"unmergeable_pulls": { "type": "integer" }
|
|
4863
|
+
},
|
|
4864
|
+
"required": [
|
|
4865
|
+
"total_pulls",
|
|
4866
|
+
"merged_pulls",
|
|
4867
|
+
"mergeable_pulls",
|
|
4868
|
+
"unmergeable_pulls"
|
|
4869
|
+
]
|
|
4870
|
+
},
|
|
4871
|
+
"enterprise-repository-overview": {
|
|
4872
|
+
"title": "Repository Enterprise Stats",
|
|
4873
|
+
"type": "object",
|
|
4874
|
+
"properties": {
|
|
4875
|
+
"total_repos": { "type": "integer" },
|
|
4876
|
+
"root_repos": { "type": "integer" },
|
|
4877
|
+
"fork_repos": { "type": "integer" },
|
|
4878
|
+
"org_repos": { "type": "integer" },
|
|
4879
|
+
"total_pushes": { "type": "integer" },
|
|
4880
|
+
"total_wikis": { "type": "integer" }
|
|
4881
|
+
},
|
|
4882
|
+
"required": [
|
|
4883
|
+
"total_repos",
|
|
4884
|
+
"root_repos",
|
|
4885
|
+
"fork_repos",
|
|
4886
|
+
"org_repos",
|
|
4887
|
+
"total_pushes",
|
|
4888
|
+
"total_wikis"
|
|
4889
|
+
]
|
|
4890
|
+
},
|
|
4891
|
+
"enterprise-user-overview": {
|
|
4892
|
+
"title": "Enterprise User Stats",
|
|
4893
|
+
"type": "object",
|
|
4894
|
+
"properties": {
|
|
4895
|
+
"total_users": { "type": "integer" },
|
|
4896
|
+
"admin_users": { "type": "integer" },
|
|
4897
|
+
"suspended_users": { "type": "integer" }
|
|
4898
|
+
},
|
|
4899
|
+
"required": ["total_users", "admin_users", "suspended_users"]
|
|
4900
|
+
},
|
|
4901
|
+
"selected-actions": {
|
|
4902
|
+
"type": "object",
|
|
4903
|
+
"properties": {
|
|
4904
|
+
"github_owned_allowed": {
|
|
4905
|
+
"type": "boolean",
|
|
4906
|
+
"description": "Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization."
|
|
4907
|
+
},
|
|
4908
|
+
"patterns_allowed": {
|
|
5573
4909
|
"type": "array",
|
|
5574
|
-
"
|
|
5575
|
-
|
|
5576
|
-
"required": ["code"],
|
|
5577
|
-
"properties": {
|
|
5578
|
-
"resource": { "type": "string" },
|
|
5579
|
-
"field": { "type": "string" },
|
|
5580
|
-
"message": { "type": "string" },
|
|
5581
|
-
"code": { "type": "string" },
|
|
5582
|
-
"index": { "type": "integer" },
|
|
5583
|
-
"value": {
|
|
5584
|
-
"oneOf": [
|
|
5585
|
-
{ "type": "string", "nullable": true },
|
|
5586
|
-
{ "type": "integer", "nullable": true },
|
|
5587
|
-
{
|
|
5588
|
-
"type": "array",
|
|
5589
|
-
"nullable": true,
|
|
5590
|
-
"items": { "type": "string" }
|
|
5591
|
-
}
|
|
5592
|
-
]
|
|
5593
|
-
}
|
|
5594
|
-
}
|
|
5595
|
-
}
|
|
4910
|
+
"description": "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`.\"",
|
|
4911
|
+
"items": { "type": "string" }
|
|
5596
4912
|
}
|
|
5597
|
-
}
|
|
4913
|
+
},
|
|
4914
|
+
"required": ["github_owned_allowed", "patterns_allowed"]
|
|
5598
4915
|
},
|
|
5599
|
-
"
|
|
5600
|
-
"title": "
|
|
5601
|
-
"description": "
|
|
4916
|
+
"api-overview": {
|
|
4917
|
+
"title": "Api Overview",
|
|
4918
|
+
"description": "Api Overview",
|
|
5602
4919
|
"type": "object",
|
|
5603
|
-
"required": ["message", "documentation_url"],
|
|
5604
4920
|
"properties": {
|
|
5605
|
-
"
|
|
5606
|
-
|
|
5607
|
-
|
|
5608
|
-
|
|
4921
|
+
"verifiable_password_authentication": {
|
|
4922
|
+
"type": "boolean",
|
|
4923
|
+
"example": true
|
|
4924
|
+
},
|
|
4925
|
+
"packages": {
|
|
4926
|
+
"type": "array",
|
|
4927
|
+
"items": { "type": "string" },
|
|
4928
|
+
"example": [
|
|
4929
|
+
"13.65.0.0/16",
|
|
4930
|
+
"157.55.204.33/32",
|
|
4931
|
+
"2a01:111:f403:f90c::/62"
|
|
4932
|
+
]
|
|
4933
|
+
},
|
|
4934
|
+
"dependabot": {
|
|
4935
|
+
"type": "array",
|
|
4936
|
+
"items": { "type": "string" },
|
|
4937
|
+
"example": ["192.168.7.15/32", "192.168.7.16/32"]
|
|
4938
|
+
},
|
|
4939
|
+
"installed_version": { "type": "string", "example": "3.2.0" }
|
|
4940
|
+
},
|
|
4941
|
+
"required": ["verifiable_password_authentication"]
|
|
5609
4942
|
},
|
|
5610
4943
|
"org-pre-receive-hook": {
|
|
5611
4944
|
"type": "object",
|
|
@@ -7246,6 +6579,41 @@
|
|
|
7246
6579
|
"html_url": { "type": "string", "format": "uri", "nullable": true }
|
|
7247
6580
|
},
|
|
7248
6581
|
"required": ["url", "html_url", "key", "name"]
|
|
6582
|
+
},
|
|
6583
|
+
"validation-error": {
|
|
6584
|
+
"title": "Validation Error",
|
|
6585
|
+
"description": "Validation Error",
|
|
6586
|
+
"type": "object",
|
|
6587
|
+
"required": ["message", "documentation_url"],
|
|
6588
|
+
"properties": {
|
|
6589
|
+
"message": { "type": "string" },
|
|
6590
|
+
"documentation_url": { "type": "string" },
|
|
6591
|
+
"errors": {
|
|
6592
|
+
"type": "array",
|
|
6593
|
+
"items": {
|
|
6594
|
+
"type": "object",
|
|
6595
|
+
"required": ["code"],
|
|
6596
|
+
"properties": {
|
|
6597
|
+
"resource": { "type": "string" },
|
|
6598
|
+
"field": { "type": "string" },
|
|
6599
|
+
"message": { "type": "string" },
|
|
6600
|
+
"code": { "type": "string" },
|
|
6601
|
+
"index": { "type": "integer" },
|
|
6602
|
+
"value": {
|
|
6603
|
+
"oneOf": [
|
|
6604
|
+
{ "type": "string", "nullable": true },
|
|
6605
|
+
{ "type": "integer", "nullable": true },
|
|
6606
|
+
{
|
|
6607
|
+
"type": "array",
|
|
6608
|
+
"nullable": true,
|
|
6609
|
+
"items": { "type": "string" }
|
|
6610
|
+
}
|
|
6611
|
+
]
|
|
6612
|
+
}
|
|
6613
|
+
}
|
|
6614
|
+
}
|
|
6615
|
+
}
|
|
6616
|
+
}
|
|
7249
6617
|
}
|
|
7250
6618
|
},
|
|
7251
6619
|
"examples": {
|
|
@@ -7808,56 +7176,6 @@
|
|
|
7808
7176
|
"installed_version": "3.2.0"
|
|
7809
7177
|
}
|
|
7810
7178
|
},
|
|
7811
|
-
"organization-full": {
|
|
7812
|
-
"value": {
|
|
7813
|
-
"login": "github",
|
|
7814
|
-
"id": 1,
|
|
7815
|
-
"node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
|
|
7816
|
-
"url": "https://api.github.com/orgs/github",
|
|
7817
|
-
"repos_url": "https://api.github.com/orgs/github/repos",
|
|
7818
|
-
"events_url": "https://api.github.com/orgs/github/events",
|
|
7819
|
-
"hooks_url": "https://api.github.com/orgs/github/hooks",
|
|
7820
|
-
"issues_url": "https://api.github.com/orgs/github/issues",
|
|
7821
|
-
"members_url": "https://api.github.com/orgs/github/members{/member}",
|
|
7822
|
-
"public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
|
|
7823
|
-
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
|
|
7824
|
-
"description": "A great organization",
|
|
7825
|
-
"name": "github",
|
|
7826
|
-
"company": "GitHub",
|
|
7827
|
-
"blog": "https://github.com/blog",
|
|
7828
|
-
"location": "San Francisco",
|
|
7829
|
-
"email": "octocat@github.com",
|
|
7830
|
-
"twitter_username": "github",
|
|
7831
|
-
"is_verified": true,
|
|
7832
|
-
"has_organization_projects": true,
|
|
7833
|
-
"has_repository_projects": true,
|
|
7834
|
-
"public_repos": 2,
|
|
7835
|
-
"public_gists": 1,
|
|
7836
|
-
"followers": 20,
|
|
7837
|
-
"following": 0,
|
|
7838
|
-
"html_url": "https://github.com/octocat",
|
|
7839
|
-
"created_at": "2008-01-14T04:33:35Z",
|
|
7840
|
-
"type": "Organization",
|
|
7841
|
-
"total_private_repos": 100,
|
|
7842
|
-
"owned_private_repos": 100,
|
|
7843
|
-
"private_gists": 81,
|
|
7844
|
-
"disk_usage": 10000,
|
|
7845
|
-
"collaborators": 8,
|
|
7846
|
-
"billing_email": "mona@github.com",
|
|
7847
|
-
"plan": { "name": "Medium", "space": 400, "private_repos": 20 },
|
|
7848
|
-
"default_repository_permission": "read",
|
|
7849
|
-
"members_can_create_repositories": true,
|
|
7850
|
-
"two_factor_requirement_enabled": true,
|
|
7851
|
-
"members_allowed_repository_creation_type": "all",
|
|
7852
|
-
"members_can_create_public_repositories": false,
|
|
7853
|
-
"members_can_create_private_repositories": false,
|
|
7854
|
-
"members_can_create_internal_repositories": false,
|
|
7855
|
-
"members_can_create_pages": true,
|
|
7856
|
-
"members_can_create_public_pages": true,
|
|
7857
|
-
"members_can_create_private_pages": true,
|
|
7858
|
-
"updated_at": "2014-03-03T18:58:10Z"
|
|
7859
|
-
}
|
|
7860
|
-
},
|
|
7861
7179
|
"org-pre-receive-hook-items": {
|
|
7862
7180
|
"value": [
|
|
7863
7181
|
{
|
|
@@ -8320,29 +7638,6 @@
|
|
|
8320
7638
|
}
|
|
8321
7639
|
},
|
|
8322
7640
|
"not_modified": { "description": "Not modified" },
|
|
8323
|
-
"conflict": {
|
|
8324
|
-
"description": "Conflict",
|
|
8325
|
-
"content": {
|
|
8326
|
-
"application/json": {
|
|
8327
|
-
"schema": { "$ref": "#/components/schemas/basic-error" }
|
|
8328
|
-
}
|
|
8329
|
-
}
|
|
8330
|
-
},
|
|
8331
|
-
"preview_header_missing": {
|
|
8332
|
-
"description": "Preview header missing",
|
|
8333
|
-
"content": {
|
|
8334
|
-
"application/json": {
|
|
8335
|
-
"schema": {
|
|
8336
|
-
"type": "object",
|
|
8337
|
-
"required": ["message", "documentation_url"],
|
|
8338
|
-
"properties": {
|
|
8339
|
-
"message": { "type": "string" },
|
|
8340
|
-
"documentation_url": { "type": "string" }
|
|
8341
|
-
}
|
|
8342
|
-
}
|
|
8343
|
-
}
|
|
8344
|
-
}
|
|
8345
|
-
},
|
|
8346
7641
|
"validation_failed": {
|
|
8347
7642
|
"description": "Validation failed",
|
|
8348
7643
|
"content": {
|