Skip to main content
Tasks are executed after the job is triggered and are the main building blocks of a job. You can string together as many tasks as you want.

All tasks

createIssue

Creates a new issue in a repository. Official GitHub docs.
example.ts

addIssueAssignees

Adds assignees to an existing issue. Official GitHub docs.
example.ts

addIssueLabels

Adds labels to an existing issue. Official GitHub docs.
example.ts

createIssueComment

Creates a new comment on an existing issue. Official GitHub docs.
example.ts

getRepo

Retrieves information about a repository. Official GitHub docs.
example.ts

createIssueCommentWithReaction

Creates a new comment on an existing issue with a reaction. Official GitHub docs.
example.ts

addIssueCommentReaction

Adds a reaction to an existing issue comment. Official GitHub docs.
example.ts

updateWebhook

Updates an existing webhook. Official GitHub docs.
example.ts

createWebhook

Creates a new webhook. Official GitHub docs.
example.ts

listWebhooks

Lists the webhooks for a repository. Official GitHub docs.
example.ts

updateOrgWebhook

Updates an existing webhook for an organization. Official GitHub docs.

createOrgWebhook

Creates a new webhook for an organization. Official GitHub docs.
example.ts

listOrgWebhooks

Lists the webhooks for an organization. Official GitHub docs.
example.ts

Example usage

In this example we’ll create a task that adds an assignee and a label to an issue when it’s opened.

Using the underlying GitHub client

You can access the Octokit instance by using the runTask method on the integration: