Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ With {% data variables.product.prodname_code_quality_short %}, you can:

## Availability and usage costs

{% data variables.product.prodname_code_quality %} is available for organization-owned repositories on {% data variables.product.prodname_team %} and {% data variables.product.prodname_ghe_cloud %} plans, as well as public repositories on {% data variables.product.prodname_dotcom_the_website %}.
{% data variables.product.prodname_code_quality %} is available for organization-owned repositories on {% data variables.product.prodname_team %} and {% data variables.product.prodname_ghe_cloud %} plans.

{% data variables.product.prodname_code_quality %} won't be billed during public preview. However, {% data variables.product.prodname_code_quality_short %} scans will consume {% data variables.product.prodname_actions %} minutes. See [AUTOTITLE](/billing/concepts/product-billing/github-code-quality).

Expand Down
14 changes: 14 additions & 0 deletions content/rest/projects/drafts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: REST API endpoints for draft Project items
shortTitle: Draft Project items
intro: Use the REST API to manage draft items in Projects.
versions: # DO NOT MANUALLY EDIT. CHANGES WILL BE OVERWRITTEN BY A 🤖
fpt: '*'
ghec: '*'
topics:
- API
autogenerated: rest
allowTitleToDifferFromFilename: true
---

<!-- Content after this section is automatically generated -->
1 change: 1 addition & 0 deletions content/rest/projects/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ topics:
autogenerated: rest
allowTitleToDifferFromFilename: true
children:
- /drafts
- /fields
- /items
- /projects
Expand Down
4 changes: 1 addition & 3 deletions data/reusables/gated-features/code-quality-availability.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{% ifversion fpt or ghec %}
{% data variables.product.prodname_code_quality %} is available for:
* Public repositories on {% data variables.product.prodname_dotcom_the_website %}
* Organization-owned repositories on {% data variables.product.prodname_team %} or {% data variables.product.prodname_ghe_cloud %}
{% data variables.product.prodname_code_quality %} is available for organization-owned repositories on {% data variables.product.prodname_team %} or {% data variables.product.prodname_ghe_cloud %}
{% endif %}
Original file line number Diff line number Diff line change
Expand Up @@ -2325,6 +2325,15 @@
"additional-permissions": false,
"access": "read"
},
{
"category": "projects",
"slug": "create-draft-item-for-organization-owned-project",
"subcategory": "drafts",
"verb": "post",
"requestPath": "/orgs/{org}/projectsV2/{project_number}/drafts",
"additional-permissions": false,
"access": "write"
},
{
"category": "projects",
"slug": "list-project-fields-for-organization",
Expand Down
6 changes: 6 additions & 0 deletions src/github-apps/data/fpt-2022-11-28/fine-grained-pat.json
Original file line number Diff line number Diff line change
Expand Up @@ -3790,6 +3790,12 @@
"verb": "get",
"requestPath": "/orgs/{org}/projectsV2/{project_number}"
},
{
"slug": "create-draft-item-for-organization-owned-project",
"subcategory": "drafts",
"verb": "post",
"requestPath": "/orgs/{org}/projectsV2/{project_number}/drafts"
},
{
"slug": "list-project-fields-for-organization",
"subcategory": "fields",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2917,6 +2917,17 @@
"server-to-server": true,
"additional-permissions": false
},
{
"category": "projects",
"slug": "create-draft-item-for-organization-owned-project",
"subcategory": "drafts",
"verb": "post",
"requestPath": "/orgs/{org}/projectsV2/{project_number}/drafts",
"access": "write",
"user-to-server": true,
"server-to-server": true,
"additional-permissions": false
},
{
"category": "projects",
"slug": "list-project-fields-for-organization",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3886,6 +3886,12 @@
"verb": "get",
"requestPath": "/orgs/{org}/projectsV2/{project_number}"
},
{
"slug": "create-draft-item-for-organization-owned-project",
"subcategory": "drafts",
"verb": "post",
"requestPath": "/orgs/{org}/projectsV2/{project_number}/drafts"
},
{
"slug": "list-project-fields-for-organization",
"subcategory": "fields",
Expand Down
6 changes: 6 additions & 0 deletions src/github-apps/data/fpt-2022-11-28/user-to-server-rest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4366,6 +4366,12 @@
"verb": "get",
"requestPath": "/orgs/{org}/projectsV2/{project_number}"
},
{
"slug": "create-draft-item-for-organization-owned-project",
"subcategory": "drafts",
"verb": "post",
"requestPath": "/orgs/{org}/projectsV2/{project_number}/drafts"
},
{
"slug": "list-project-fields-for-organization",
"subcategory": "fields",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2946,6 +2946,15 @@
"additional-permissions": false,
"access": "read"
},
{
"category": "projects",
"slug": "create-draft-item-for-organization-owned-project",
"subcategory": "drafts",
"verb": "post",
"requestPath": "/orgs/{org}/projectsV2/{project_number}/drafts",
"additional-permissions": false,
"access": "write"
},
{
"category": "projects",
"slug": "list-project-fields-for-organization",
Expand Down
6 changes: 6 additions & 0 deletions src/github-apps/data/ghec-2022-11-28/fine-grained-pat.json
Original file line number Diff line number Diff line change
Expand Up @@ -4064,6 +4064,12 @@
"verb": "get",
"requestPath": "/orgs/{org}/projectsV2/{project_number}"
},
{
"slug": "create-draft-item-for-organization-owned-project",
"subcategory": "drafts",
"verb": "post",
"requestPath": "/orgs/{org}/projectsV2/{project_number}/drafts"
},
{
"slug": "list-project-fields-for-organization",
"subcategory": "fields",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4171,6 +4171,17 @@
"server-to-server": true,
"additional-permissions": false
},
{
"category": "projects",
"slug": "create-draft-item-for-organization-owned-project",
"subcategory": "drafts",
"verb": "post",
"requestPath": "/orgs/{org}/projectsV2/{project_number}/drafts",
"access": "write",
"user-to-server": true,
"server-to-server": true,
"additional-permissions": false
},
{
"category": "projects",
"slug": "list-project-fields-for-organization",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4430,6 +4430,12 @@
"verb": "get",
"requestPath": "/orgs/{org}/projectsV2/{project_number}"
},
{
"slug": "create-draft-item-for-organization-owned-project",
"subcategory": "drafts",
"verb": "post",
"requestPath": "/orgs/{org}/projectsV2/{project_number}/drafts"
},
{
"slug": "list-project-fields-for-organization",
"subcategory": "fields",
Expand Down
6 changes: 6 additions & 0 deletions src/github-apps/data/ghec-2022-11-28/user-to-server-rest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4910,6 +4910,12 @@
"verb": "get",
"requestPath": "/orgs/{org}/projectsV2/{project_number}"
},
{
"slug": "create-draft-item-for-organization-owned-project",
"subcategory": "drafts",
"verb": "post",
"requestPath": "/orgs/{org}/projectsV2/{project_number}/drafts"
},
{
"slug": "list-project-fields-for-organization",
"subcategory": "fields",
Expand Down
2 changes: 1 addition & 1 deletion src/github-apps/lib/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@
"2022-11-28"
]
},
"sha": "76075d48c896654c8e9e122ee1e162ccc546ace1"
"sha": "0fb9cbe3fd548654115fbe4d8beb758228826ae6"
}
88 changes: 86 additions & 2 deletions src/rest/data/fpt-2022-11-28/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -427847,6 +427847,12 @@
"description": "<p>The digest of the artifact (algorithm:hex-encoded-digest).</p>",
"isRequired": true
},
{
"type": "string",
"name": "version",
"in": "body",
"description": "<p>The artifact version.</p>"
},
{
"type": "string",
"name": "artifact_url",
Expand Down Expand Up @@ -427900,7 +427906,8 @@
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
"name": "libfoo-1.2.3",
"name": "libfoo",
"version": "1.2.3",
"digest": "sha256:1bb1e949e55dcefc6353e7b36c8897d2a107d8e8dca49d4e3c0ea8493fc0bc72",
"artifact_url": "https://reg.example.com/artifactory/bar/libfoo-1.2.3",
"registry_url": "https://reg.example.com/artifactory/",
Expand All @@ -427919,7 +427926,7 @@
"total_count": 1,
"storage_records": [
{
"name": "libfoo-1.2.3",
"name": "libfoo",
"digest": "sha256:1bb1e949e55dcefc6353e7b36c8897d2a107d8e8dca49d4e3c0ea8493fc0bc72",
"artifact_url": "https://reg.example.com/artifactory/bar/libfoo-1.2.3",
"registry_url": "https://reg.example.com/artifactory/",
Expand Down Expand Up @@ -476545,6 +476552,83 @@
}
}
],
"drafts": [
{
"serverUrl": "https://api.github.com",
"verb": "post",
"requestPath": "/orgs/{org}/projectsV2/{project_number}/drafts",
"title": "Create draft item for organization owned project",
"category": "projects",
"subcategory": "drafts",
"parameters": [
{
"name": "org",
"description": "<p>The organization name. The name is not case sensitive.</p>",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "project_number",
"description": "<p>The project's number.</p>",
"in": "path",
"required": true,
"schema": {
"type": "integer"
}
}
],
"bodyParameters": [
{
"type": "string",
"name": "title",
"in": "body",
"description": "<p>The title of the draft issue item to create in the project.</p>",
"isRequired": true
},
{
"type": "string",
"name": "body",
"in": "body",
"description": "<p>The body content of the draft issue item to create in the project.</p>"
}
],
"descriptionHTML": "<p>Create draft issue item for the specified organization owned project.</p>",
"codeExamples": [],
"statusCodes": [
{
"httpStatusCode": "201",
"description": "<p>Created</p>"
},
{
"httpStatusCode": "304",
"description": "<p>Not modified</p>"
},
{
"httpStatusCode": "401",
"description": "<p>Requires authentication</p>"
},
{
"httpStatusCode": "403",
"description": "<p>Forbidden</p>"
}
],
"previews": [],
"progAccess": {
"userToServerRest": true,
"serverToServer": true,
"fineGrainedPat": true,
"permissions": [
{
"\"Projects\" organization permissions": "write"
}
],
"allowsPublicRead": true
}
}
],
"fields": [
{
"serverUrl": "https://api.github.com",
Expand Down
Loading