Skip to main content

github.github.onlabel

Home > @runlightyear/github > GitHub > onLabel

GitHub.onLabel() method

This event occurs when there is activity relating to labels.

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

Signature:
static onLabel(props: GitHubListenerProps<LabelPayload>): {
webhook: string;
action: string;
};

Parameters

ParameterTypeDescription
propsGitHubListenerProps<LabelPayload>
Returns:

{ webhook: string; action: string; }