issue_blocked_by_dependencies
Creates, updates, deletes, gets or lists an issue_blocked_by_dependencies resource.
Overview
| Name | issue_blocked_by_dependencies |
| Type | Resource |
| Id | github.issues.issue_blocked_by_dependencies |
Fields
The following fields are returned by SELECT queries:
- list_dependencies_blocked_by
Response
| Name | Datatype | Description |
|---|---|---|
id | integer (int64) | |
node_id | string | |
active_lock_reason | string | |
assignee | object | A GitHub user. (title: Simple User) |
assignees | array | |
author_association | string | How the author is associated with the repository. (COLLABORATOR, CONTRIBUTOR, FIRST_TIMER, FIRST_TIME_CONTRIBUTOR, MANNEQUIN, MEMBER, NONE, OWNER) (title: author_association, example: OWNER) |
body | string | Contents of the issue (example: It looks like the new widget form is broken on Safari. When I try and create the widget, Safari crashes. This is reproducible on 10.8, but not 10.9. Maybe a browser bug?) |
body_html | string | |
body_text | string | |
closed_at | string (date-time) | |
closed_by | object | A GitHub user. (title: Simple User) |
comments | integer | |
comments_url | string (uri) | |
created_at | string (date-time) | |
draft | boolean | |
events_url | string (uri) | |
html_url | string (uri) | |
issue_dependencies_summary | object | (title: Issue Dependencies Summary) |
issue_field_values | array | |
labels | array | Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository |
labels_url | string | |
locked | boolean | |
milestone | object | A collection of related issues and pull requests. (title: Milestone) |
number | integer | Number uniquely identifying the issue within its repository |
parent_issue_url | string (uri) | URL to get the parent issue of this issue, if it is a sub-issue |
performed_via_github_app | object | GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. (title: GitHub app) |
pinned_comment | object | Comments provide a way for people to collaborate on an issue. (title: Issue Comment) |
pull_request | object | |
reactions | object | (title: Reaction Rollup) |
repository | object | A repository on GitHub. (title: Repository) |
repository_url | string (uri) | |
state | string | State of the issue; either 'open' or 'closed' (example: open) |
state_reason | string | The reason for the current state (completed, reopened, not_planned, duplicate) (example: not_planned) |
sub_issues_summary | object | (title: Sub-issues Summary) |
timeline_url | string (uri) | |
title | string | Title of the issue (example: Widget creation fails in Safari on OS X 10.8) |
type | object | The type of issue. (title: Issue Type) |
updated_at | string (date-time) | |
url | string (uri) | URL for the issue (example: https://api.github.com/repositories/42/issues/1) |
user | object | A GitHub user. (title: Simple User) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_dependencies_blocked_by | select | owner, repo, issue_number | per_page, page | You can use the REST API to list the dependencies an issue is blocked by. This endpoint supports the following custom media types. For more information, see Media types. - application/vnd.github.raw+json: Returns the raw Markdown body. Response will include body. This is the default if you do not pass any specific media type.- application/vnd.github.text+json: Returns a text only representation of the Markdown body. Response will include body_text.- application/vnd.github.html+json: Returns HTML rendered from the body's Markdown. Response will include body_html.- application/vnd.github.full+json: Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. |
add_blocked_by_dependency | insert | owner, repo, issue_number, issue_id | You can use the REST API to add a 'blocked by' relationship to an issue. Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see Rate limits for the API and Best practices for using the REST API. This endpoint supports the following custom media types. For more information, see Media types. - application/vnd.github.raw+json: Returns the raw Markdown body. Response will include body. This is the default if you do not pass any specific media type.- application/vnd.github.text+json: Returns a text only representation of the Markdown body. Response will include body_text.- application/vnd.github.html+json: Returns HTML rendered from the body's Markdown. Response will include body_html.- application/vnd.github.full+json: Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. | |
remove_dependency_blocked_by | delete | owner, repo, issue_number, issue_id | You can use the REST API to remove a dependency that an issue is blocked by. Removing content too quickly using this endpoint may result in secondary rate limiting. For more information, see Rate limits for the API and Best practices for using the REST API. This endpoint supports the following custom media types. For more information, see Media types. - application/vnd.github.raw+json: Returns the raw Markdown body. Response will include body. This is the default if you do not pass a specific media type.- application/vnd.github.text+json: Returns a text only representation of the Markdown body. Response will include body_text.- application/vnd.github.html+json: Returns HTML rendered from the body's Markdown. Response will include body_html.- application/vnd.github.full+json: Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. |
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 |
|---|---|---|
issue_id | integer | The id of the blocking issue to remove as a dependency |
issue_number | integer | The number that identifies the issue. |
owner | string | The account owner of the repository. The name is not case sensitive. |
repo | string | The name of the repository without the .git extension. The name is not case sensitive. |
page | integer | The page number of the results to fetch. For more information, see "Using pagination in the REST API." |
per_page | integer | The number of results per page (max 100). For more information, see "Using pagination in the REST API." |
SELECT examples
- list_dependencies_blocked_by
You can use the REST API to list the dependencies an issue is blocked by.
This endpoint supports the following custom media types. For more information, see Media types.
- application/vnd.github.raw+json: Returns the raw Markdown body. Response will include body. This is the default if you do not pass any specific media type.
- application/vnd.github.text+json: Returns a text only representation of the Markdown body. Response will include body_text.
- application/vnd.github.html+json: Returns HTML rendered from the body's Markdown. Response will include body_html.
- application/vnd.github.full+json: Returns raw, text, and HTML representations. Response will include body, body_text, and body_html.
SELECT
id,
node_id,
active_lock_reason,
assignee,
assignees,
author_association,
body,
body_html,
body_text,
closed_at,
closed_by,
comments,
comments_url,
created_at,
draft,
events_url,
html_url,
issue_dependencies_summary,
issue_field_values,
labels,
labels_url,
locked,
milestone,
number,
parent_issue_url,
performed_via_github_app,
pinned_comment,
pull_request,
reactions,
repository,
repository_url,
state,
state_reason,
sub_issues_summary,
timeline_url,
title,
type,
updated_at,
url,
user
FROM github.issues.issue_blocked_by_dependencies
WHERE owner = '{{ owner }}' -- required
AND repo = '{{ repo }}' -- required
AND issue_number = '{{ issue_number }}' -- required
AND per_page = '{{ per_page }}'
AND page = '{{ page }}'
;
INSERT examples
- add_blocked_by_dependency
- Manifest
You can use the REST API to add a 'blocked by' relationship to an issue.
Creating content too quickly using this endpoint may result in secondary rate limiting.
For more information, see Rate limits for the API
and Best practices for using the REST API.
This endpoint supports the following custom media types. For more information, see Media types.
- application/vnd.github.raw+json: Returns the raw Markdown body. Response will include body. This is the default if you do not pass any specific media type.
- application/vnd.github.text+json: Returns a text only representation of the Markdown body. Response will include body_text.
- application/vnd.github.html+json: Returns HTML rendered from the body's Markdown. Response will include body_html.
- application/vnd.github.full+json: Returns raw, text, and HTML representations. Response will include body, body_text, and body_html.
INSERT INTO github.issues.issue_blocked_by_dependencies (
issue_id,
owner,
repo,
issue_number
)
SELECT
{{ issue_id }} /* required */,
'{{ owner }}',
'{{ repo }}',
'{{ issue_number }}'
RETURNING
id,
node_id,
active_lock_reason,
assignee,
assignees,
author_association,
body,
body_html,
body_text,
closed_at,
closed_by,
comments,
comments_url,
created_at,
draft,
events_url,
html_url,
issue_dependencies_summary,
issue_field_values,
labels,
labels_url,
locked,
milestone,
number,
parent_issue_url,
performed_via_github_app,
pinned_comment,
pull_request,
reactions,
repository,
repository_url,
state,
state_reason,
sub_issues_summary,
timeline_url,
title,
type,
updated_at,
url,
user
;
# Description fields are for documentation purposes
- name: issue_blocked_by_dependencies
props:
- name: owner
value: "{{ owner }}"
description: Required parameter for the issue_blocked_by_dependencies resource.
- name: repo
value: "{{ repo }}"
description: Required parameter for the issue_blocked_by_dependencies resource.
- name: issue_number
value: {{ issue_number }}
description: Required parameter for the issue_blocked_by_dependencies resource.
- name: issue_id
value: {{ issue_id }}
description: |
The id of the issue that blocks the current issue
DELETE examples
- remove_dependency_blocked_by
You can use the REST API to remove a dependency that an issue is blocked by.
Removing content too quickly using this endpoint may result in secondary rate limiting.
For more information, see Rate limits for the API
and Best practices for using the REST API.
This endpoint supports the following custom media types. For more information, see Media types.
- application/vnd.github.raw+json: Returns the raw Markdown body. Response will include body. This is the default if you do not pass a specific media type.
- application/vnd.github.text+json: Returns a text only representation of the Markdown body. Response will include body_text.
- application/vnd.github.html+json: Returns HTML rendered from the body's Markdown. Response will include body_html.
- application/vnd.github.full+json: Returns raw, text, and HTML representations. Response will include body, body_text, and body_html.
DELETE FROM github.issues.issue_blocked_by_dependencies
WHERE owner = '{{ owner }}' --required
AND repo = '{{ repo }}' --required
AND issue_number = '{{ issue_number }}' --required
AND issue_id = '{{ issue_id }}' --required
;