ci_unknown: CI unknown#
The result of the checks of a pull request is not known.
Holds when neither ci_passes nor ci_fails can be assessed: the site has
not read the checks of its last commit, such as for a closed pull request or
while the GitHub App may not read checks and statuses, or its checks never
completed. Exactly one of ci_passes, ci_fails and ci_unknown holds
for every pull request.
It is checked on pull requests only.
Inputs#
The condition has no inputs.
Data#
It needs no data but the pull request, and holds while the data of ci_passes: CI passes is not complete.
issueWhether the pull request is open, closed or merged. Permissions of the GitHub App:
pull_requests: read; webhooks:pull_request.
API reference#
- class pycal_dashboard.conditions.condition.ci_unknown.CiUnknown#
Bases:
ConditionThe result of the continuous integration of a pull request is not known.
Holds when neither
ci_passesnorci_failscan be assessed: the site has not read the checks of its last commit, such as for a closed pull request or while the GitHub App may not read checks and statuses, or its checks never completed. Exactly one ofci_passes,ci_failsandci_unknownholds for every pull request.- classmethod assess(issue, values)#
Whether the result of the checks is not known.
- Parameters:
issue – The pull request.
values – Nothing: the condition has no inputs.
- Returns:
True if
ci_passescannot be assessed.