closed: Closed#
A pull request was closed without being merged.
Holds when the pull request was closed and not merged, as GitHub shows it with
the badge Closed; a merged pull request is merged, not closed.
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.closed.Closed#
Bases:
ConditionA pull request was closed without being merged.
Holds when the pull request was closed and not merged, as GitHub shows it with the badge Closed; a merged pull request is
merged, notclosed.- classmethod assess(issue, values)#
Whether the pull request was closed without being merged.
- Parameters:
issue – The pull request.
values – Nothing: the condition has no inputs.
- Returns:
True if it was closed and not merged.