ci_fails: CI fails#
A check of the last commit of a pull request failed.
Holds when a check run or commit status of its last commit failed, timed out, was cancelled or needs an action. While checks run, the last complete result counts.
It is checked on pull requests only. While the data of a pull request is not complete, the condition cannot be assessed yet.
Inputs#
The condition has no inputs.
Data#
The update of the repository reads in the background:
pull_requestWhether the pull request can be merged, is behind its base, and merges itself. Permissions of the GitHub App:
pull_requests: read,contents: read; webhooks:pull_request,push.checksThe checks and statuses of the last commit of the pull request. Permissions of the GitHub App:
checks: read,statuses: read; webhooks:check_run,check_suite,status.
API reference#
- class pycal_dashboard.conditions.condition.ci_fails.CiFails#
Bases:
CiPassesThe continuous integration of a pull request fails.
Holds when a check run or commit status of its last commit failed, timed out, was cancelled or needs an action. While checks run, the last complete result counts.
- classmethod assess(issue, values)#
Whether a check failed.
- Parameters:
issue – The pull request.
values – Nothing: the condition has no inputs.
- Returns:
True if one failed.