open: Open#
A pull request is open.
Holds while the pull request is neither merged nor closed; a draft is open too.
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:
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.open.Open#
Bases:
ConditionA pull request is open.
Holds while the pull request is neither merged nor closed; a draft is open too.
- classmethod assess(issue, values)#
Whether the pull request is open.
- Parameters:
issue – The pull request.
values – Nothing: the condition has no inputs.
- Returns:
True if it is open.