Skip to main content

project_draft_items

Creates, updates, deletes, gets or lists a project_draft_items resource.

Overview

Nameproject_draft_items
TypeResource
Idgithub.projects.project_draft_items

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
create_draft_item_for_orginsertorg, project_number, titleCreate draft issue item for the specified organization owned project.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
orgstringThe organization name. The name is not case sensitive.
project_numberintegerThe project's number.

INSERT examples

Create draft issue item for the specified organization owned project.

INSERT INTO github.projects.project_draft_items (
title,
body,
org,
project_number
)
SELECT
'{{ title }}' /* required */,
'{{ body }}',
'{{ org }}',
'{{ project_number }}'
RETURNING
id,
node_id,
archived_at,
content,
content_type,
created_at,
creator,
item_url,
project_url,
updated_at
;