milestone

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

Github Event milestone #

Github Action Trigger #

source

Webhook event payloadActivity typesGITHUB_SHAGITHUB_REF
milestonecreated
closed
opened
edited
deleted
Last commit on default branchDefault branch

Note: More than one activity type triggers this event. 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.

Runs your workflow when a milestone in the workflow’s repository is created or modified. For more information about milestones, see “About milestones.” For information about the milestone APIs, see “Objects” in the GraphQL API documentation or “REST API endpoints for issues.”

If you want to run your workflow when an issue is added to or removed from a milestone, use the milestoned or demilestoned activity types for the issues event instead.

For example, you can run a workflow when a milestone has been opened or deleted.

on:
  milestone:
    types: [opened, deleted]

Event Payload #

source

Activities: closed, created, deleted, edited, opened

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.milestoneobjectrequired

A collection of related issues and pull requests.

github.event.milestone.closed_atstring or nullrequired
github.event.milestone.closed_issuesintegerrequired
github.event.milestone.created_atstringrequired
github.event.milestone.creatorobject or nullrequired
github.event.milestone.creator.avatar_urlstringoptional
github.event.milestone.creator.deletedbooleanoptional
github.event.milestone.creator.emailstring or nulloptional
github.event.milestone.creator.events_urlstringoptional
github.event.milestone.creator.followers_urlstringoptional
github.event.milestone.creator.following_urlstringoptional
github.event.milestone.creator.gists_urlstringoptional
github.event.milestone.creator.gravatar_idstringoptional
github.event.milestone.creator.html_urlstringoptional
github.event.milestone.creator.idintegerrequired
github.event.milestone.creator.loginstringrequired
github.event.milestone.creator.namestringoptional
github.event.milestone.creator.node_idstringoptional
github.event.milestone.creator.organizations_urlstringoptional
github.event.milestone.creator.received_events_urlstringoptional
github.event.milestone.creator.repos_urlstringoptional
github.event.milestone.creator.site_adminbooleanoptional
github.event.milestone.creator.starred_urlstringoptional
github.event.milestone.creator.subscriptions_urlstringoptional
github.event.milestone.creator.urlstringoptional
github.event.milestone.descriptionstring or nullrequired
github.event.milestone.due_onstring or nullrequired
github.event.milestone.html_urlstringrequired
github.event.milestone.idintegerrequired
github.event.milestone.labels_urlstringrequired
github.event.milestone.node_idstringrequired
github.event.milestone.numberintegerrequired

The number of the milestone.

github.event.milestone.open_issuesintegerrequired
github.event.milestone.stateopen, closedrequired

The state of the milestone.

github.event.milestone.titlestringrequired

The title of the milestone.

github.event.milestone.updated_atstringrequired
github.event.milestone.urlstringrequired
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.repositoryobjectrequired

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

github.event.senderobjectrequired

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

closed #

This event occurs when there is activity relating to milestones. For more information, see "About milestones." For information about the APIs to manage milestones, see the GraphQL documentation or "Milestones" in the REST API documentation.

If you want to receive an event when an issue or pull request is added to or removed from a milestone, use the milestoned or demilestoned action type for the issues or pull_request events instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Issues" or "Pull requests" repository permissions.

fieldtyperequireddescription
github.event.actionclosedrequired
github.event.milestone.creator.typeBot, User, Organization, Mannequinoptional

created #

This event occurs when there is activity relating to milestones. For more information, see "About milestones." For information about the APIs to manage milestones, see the GraphQL documentation or "Milestones" in the REST API documentation.

If you want to receive an event when an issue or pull request is added to or removed from a milestone, use the milestoned or demilestoned action type for the issues or pull_request events instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Issues" or "Pull requests" repository permissions.

fieldtyperequireddescription
github.event.actioncreatedrequired
github.event.milestone.creator.typeBot, User, Organizationoptional

deleted #

This event occurs when there is activity relating to milestones. For more information, see "About milestones." For information about the APIs to manage milestones, see the GraphQL documentation or "Milestones" in the REST API documentation.

If you want to receive an event when an issue or pull request is added to or removed from a milestone, use the milestoned or demilestoned action type for the issues or pull_request events instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Issues" or "Pull requests" repository permissions.

fieldtyperequireddescription
github.event.actiondeletedrequired
github.event.milestone.creator.typeBot, User, Organization, Mannequinoptional

edited #

This event occurs when there is activity relating to milestones. For more information, see "About milestones." For information about the APIs to manage milestones, see the GraphQL documentation or "Milestones" in the REST API documentation.

If you want to receive an event when an issue or pull request is added to or removed from a milestone, use the milestoned or demilestoned action type for the issues or pull_request events instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Issues" or "Pull requests" repository permissions.

fieldtyperequireddescription
github.event.actioneditedrequired
github.event.changesobjectrequired

The changes to the milestone if the action was edited.

github.event.changes.descriptionobjectoptional
github.event.changes.description.fromstringrequired

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

github.event.changes.due_onobjectoptional
github.event.changes.due_on.fromstringrequired

The previous version of the due date if the action was edited.

github.event.changes.titleobjectoptional
github.event.changes.title.fromstringrequired

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

github.event.milestone.creator.typeBot, User, Organization, Mannequinoptional

opened #

This event occurs when there is activity relating to milestones. For more information, see "About milestones." For information about the APIs to manage milestones, see the GraphQL documentation or "Milestones" in the REST API documentation.

If you want to receive an event when an issue or pull request is added to or removed from a milestone, use the milestoned or demilestoned action type for the issues or pull_request events instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Issues" or "Pull requests" repository permissions.

fieldtyperequireddescription
github.event.actionopenedrequired
github.event.milestone.creator.typeBot, User, Organizationoptional