project_draft_items
Creates, updates, deletes, gets or lists a project_draft_items resource.
Overview
| Name | project_draft_items |
| Type | Resource |
| Id | github.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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
create_draft_item_for_org | insert | org, project_number, title | Create 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.
| Name | Datatype | Description |
|---|---|---|
org | string | The organization name. The name is not case sensitive. |
project_number | integer | The project's number. |
INSERT examples
- create_draft_item_for_org
- Manifest
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
;
# Description fields are for documentation purposes
- name: project_draft_items
props:
- name: org
value: "{{ org }}"
description: Required parameter for the project_draft_items resource.
- name: project_number
value: {{ project_number }}
description: Required parameter for the project_draft_items resource.
- name: title
value: "{{ title }}"
description: |
The title of the draft issue item to create in the project.
- name: body
value: "{{ body }}"
description: |
The body content of the draft issue item to create in the project.