label_absent: A label is absent#

A label is absent from a pull request.

Holds when the pull request does not have the label of the input label: the opposite of label_exists.

It is checked on pull requests only. While the data of a pull request is not complete, the condition cannot be assessed yet.

Inputs#

Name

Type

Required

What it is

label

string-label

yes

The name of a label of the repository.

The type string-label is the name of a label of the repository: the configuration is refused with ConditionLabelUnknown for a name the repository does not have; its case does not matter.

The inputs as JSON:

{"label": "work in progress"}

Data#

The update of the repository reads in the background:

labels

The labels of the repository and of the pull request. Permissions of the GitHub App: metadata: read, issues: read; webhooks: label, issues, pull_request.

API reference#

class pycal_dashboard.conditions.condition.label_absent.LabelAbsent#

Bases: LabelExists

A label is absent from a pull request.

Holds when the pull request does not have the label of the input label: the opposite of label_exists.

classmethod assess(issue, values)#

Whether the pull request does not have the label.

Parameters:
  • issue – The pull request.

  • values – label.

Returns:

True if it does not have the label.