project

This page was generated based on Github’s Documentation. See our welcome page for context and details.

Github Event project #

Github Action Trigger #

source

Webhook event payloadActivity typesGITHUB_SHAGITHUB_REF
projectcreated
closed
reopened
edited
deleted
Last commit on default branchDefault branch

Note: More than one activity type triggers this event. The edited activity type refers to when a project (classic), not a column or card on the project (classic), is edited. For information about each activity type, see “Webhook events and payloads.” By default, all activity types trigger workflows that run on this event. You can limit your workflow runs to specific activity types using the types keyword. For more information, see “Workflow syntax for GitHub Actions.”

Note: This event will only trigger a workflow run if the workflow file is on the default branch.

Note: This event only occurs for projects owned by the workflow’s repository, not for organization-owned or user-owned projects or for projects owned by another repository.

Note: This event only occurs for projects (classic).

Runs your workflow when a project (classic) is created or modified. For activity related to cards or columns in a project (classic), use the project_card or project_column events instead. For more information about projects (classic), see “About projects (classic).” For information about the project (classic) APIs, see “Objects” in the GraphQL API documentation or “Projects (classic)” in the REST API documentation.

For example, you can run a workflow when a project has been created or deleted.

on:
  project:
    types: [created, deleted]

Event Payload #

source

Activities: closed, created, deleted, edited, reopened

Common Fields #

These fields are common to every event types available with this trigger.
fieldtyperequireddescription
github.event.enterpriseobjectoptional

An enterprise on GitHub. Webhook payloads contain the enterprise property when the webhook is configured on an enterprise account or an organization that’s part of an enterprise account. For more information, see “About enterprise accounts."

github.event.installationobjectoptional

The GitHub App installation. Webhook payloads contain the installation property when the event is configured for and sent to a GitHub App. For more information, see “Using webhooks with GitHub Apps."

github.event.organizationobjectoptional

A GitHub organization. Webhook payloads contain the organization property when the webhook is configured for an organization, or when the event occurs from activity in a repository owned by an organization.

github.event.projectobjectrequired
github.event.project.bodystring or nullrequired

Body of the project

github.event.project.columns_urlstringrequired
github.event.project.created_atstringrequired
github.event.project.creatorobject or nullrequired
github.event.project.creator.avatar_urlstringoptional
github.event.project.creator.deletedbooleanoptional
github.event.project.creator.emailstring or nulloptional
github.event.project.creator.events_urlstringoptional
github.event.project.creator.followers_urlstringoptional
github.event.project.creator.following_urlstringoptional
github.event.project.creator.gists_urlstringoptional
github.event.project.creator.gravatar_idstringoptional
github.event.project.creator.html_urlstringoptional
github.event.project.creator.idintegerrequired
github.event.project.creator.loginstringrequired
github.event.project.creator.namestringoptional
github.event.project.creator.node_idstringoptional
github.event.project.creator.organizations_urlstringoptional
github.event.project.creator.received_events_urlstringoptional
github.event.project.creator.repos_urlstringoptional
github.event.project.creator.site_adminbooleanoptional
github.event.project.creator.starred_urlstringoptional
github.event.project.creator.subscriptions_urlstringoptional
github.event.project.creator.typeBot, User, Organizationoptional
github.event.project.creator.urlstringoptional
github.event.project.html_urlstringrequired
github.event.project.idintegerrequired
github.event.project.namestringrequired

Name of the project

github.event.project.node_idstringrequired
github.event.project.numberintegerrequired
github.event.project.owner_urlstringrequired
github.event.project.stateopen, closedrequired

State of the project; either ‘open’ or ‘closed’

github.event.project.updated_atstringrequired
github.event.project.urlstringrequired
github.event.repositoryobjectoptional

The repository on GitHub where the event occurred. Webhook payloads contain the repository property when the event occurs from activity in a repository.

closed #

This event occurs when there is activity relating to a project (classic). For more information, see "About projects (classic)." For information about the API to manage classic projects, see the GraphQL API documentation or "Projects (classic)" in the REST API documentation.

For activity relating to a card or column on a project (classic), use the project_card and project_column event.

This event relates to projects (classic) only. For activity relating to the new Projects experience, use the projects_v2 event instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Projects" repository or organization permission.

fieldtyperequireddescription
github.event.actionclosedrequired
github.event.senderobjectrequired

The GitHub user that triggered the event. This property is included in every webhook payload.

created #

This event occurs when there is activity relating to a project (classic). For more information, see "About projects (classic)." For information about the API to manage classic projects, see the GraphQL API documentation or "Projects (classic)" in the REST API documentation.

For activity relating to a card or column on a project (classic), use the project_card and project_column event.

This event relates to projects (classic) only. For activity relating to the new Projects experience, use the projects_v2 event instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Projects" repository or organization permission.

fieldtyperequireddescription
github.event.actioncreatedrequired
github.event.senderobjectrequired

The GitHub user that triggered the event. This property is included in every webhook payload.

deleted #

This event occurs when there is activity relating to a project (classic). For more information, see "About projects (classic)." For information about the API to manage classic projects, see the GraphQL API documentation or "Projects (classic)" in the REST API documentation.

For activity relating to a card or column on a project (classic), use the project_card and project_column event.

This event relates to projects (classic) only. For activity relating to the new Projects experience, use the projects_v2 event instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Projects" repository or organization permission.

fieldtyperequireddescription
github.event.actiondeletedrequired
github.event.senderobjectoptional

The GitHub user that triggered the event. This property is included in every webhook payload.

edited #

This event occurs when there is activity relating to a project (classic). For more information, see "About projects (classic)." For information about the API to manage classic projects, see the GraphQL API documentation or "Projects (classic)" in the REST API documentation.

For activity relating to a card or column on a project (classic), use the project_card and project_column event.

This event relates to projects (classic) only. For activity relating to the new Projects experience, use the projects_v2 event instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Projects" repository or organization permission.

fieldtyperequireddescription
github.event.actioneditedrequired
github.event.changesobjectoptional

The changes to the project if the action was edited.

github.event.changes.bodyobjectoptional
github.event.changes.body.fromstringrequired

The previous version of the body if the action was edited.

github.event.changes.nameobjectoptional
github.event.changes.name.fromstringrequired

The changes to the project if the action was edited.

github.event.senderobjectoptional

The GitHub user that triggered the event. This property is included in every webhook payload.

reopened #

This event occurs when there is activity relating to a project (classic). For more information, see "About projects (classic)." For information about the API to manage classic projects, see the GraphQL API documentation or "Projects (classic)" in the REST API documentation.

For activity relating to a card or column on a project (classic), use the project_card and project_column event.

This event relates to projects (classic) only. For activity relating to the new Projects experience, use the projects_v2 event instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Projects" repository or organization permission.

fieldtyperequireddescription
github.event.actionreopenedrequired
github.event.senderobjectrequired

The GitHub user that triggered the event. This property is included in every webhook payload.