View as Markdown
Rules

Conditions can access commit details

The conditions can now use the details from the commits composing a pull requests.

For example, you could write a rule like this:

pull_request_rules
- name: label when PR is stale
conditions:
- "commits[-1].date_committer < 7 days ago"
actions:
label:
toggle:
- stale

Was this page helpful?