Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 7 additions & 22 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ pull_request_rules:
{{ title }} (#{{ number }})

Co-authored-by: {{ author }}
post_merge:
action: close

# Auto-merge dependabot/Renovate PRs when CI passes
- name: Auto-merge dependency updates
conditions:
- author=dependabot[bot] | renovate[bot]
- or:
- "author = dependabot[bot]"
- "author = renovate[bot]"
- check-success=ci
- -conflict
- -closed
Expand All @@ -37,13 +37,14 @@ pull_request_rules:
{{ title }} (#{{ number }})

Co-authored-by: {{ author }}
post_merge:
action: close

# Auto-merge bot PRs (CI configs, formatting) when CI passes
- name: Auto-merge bot housekeeping PRs
conditions:
- author=trunk-io[bot] | mergify[bot] | github-actions[bot]
- or:
- "author = trunk-io[bot]"
- "author = mergify[bot]"
- "author = github-actions[bot]"
- check-success=ci
- check-success=lint
- -conflict
Expand All @@ -61,8 +62,6 @@ pull_request_rules:
request_reviews:
teams:
- phenotype/core
github_accounts:
- KooshaPari

# Label PRs based on changed files
- name: Label Python changes
Expand Down Expand Up @@ -97,20 +96,6 @@ pull_request_rules:
add:
- typescript

# Close stale PRs after 30 days
- name: Close stale PRs
conditions:
- -closed
- -draft
- age>=30d
- "#review-requested=0"
actions:
comment:
message: >
This PR has been automatically closed after 30 days of inactivity.
Feel free to reopen if still relevant.
close: {}

# Warn on large PRs
- name: Warn on large PRs
conditions:
Expand Down
Loading