0 votes
in GitHub by
Explain about the label webhook event in Github?

1 Answer

0 votes
by
Webhook event payloadActivity typesGITHUB_SHAGITHUB_REF
labelcreated
edited
deleted
Last commit on default branchDefault branch

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

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

Runs your workflow when a label in your workflow's repository is created or modified. For more information about labels.If you want to run your workflow when a label is added to or removed from an issue, pull request, or discussion, use the labeled or unlabeled activity types for the issuespull_requestpull_request_target, or discussion events instead.

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

on:
  label:
    types: [created, deleted]
...