Skip to content

Commit

Permalink
chore: Update Scaffolding (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
osterman authored Mar 9, 2024
1 parent 38187a0 commit fa7c1d0
Show file tree
Hide file tree
Showing 3 changed files with 135 additions and 319 deletions.
62 changes: 1 addition & 61 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
@@ -1,61 +1 @@
# https://docs.mergify.io/conditions.html
# https://docs.mergify.io/actions.html
pull_request_rules:
- name: "approve automated PRs that have passed checks"
conditions:
- "base=main"
- "-closed"
- "head~=^(auto-update|renovate)/.*"
- "check-success=terraform-module / ci"
- "and: *common_checks"
- "sender-permission>=write"
actions:
review:
type: "APPROVE"
bot_account: "cloudposse-mergebot"
message: "We've automatically approved this PR because the checks from the automated Pull Request have passed."

- name: "merge automated PRs when approved and tests pass"
conditions:
- "base=main"
- "-closed"
- "head~=^(auto-update|renovate)/.*"
- "check-success=terraform-module / ci"
- "and: *common_checks"
- "#approved-reviews-by>=1"
- "#changes-requested-reviews-by=0"
- "#commented-reviews-by=0"
- "sender-permission>=write"
actions:
merge:
method: "squash"

- name: "delete the head branch after merge"
conditions:
- "merged"
actions:
delete_head_branch: {}

- name: "ask to resolve conflict"
conditions:
- "conflict"
- "-closed"
actions:
comment:
message: "This pull request has conflicts, please resolve."

- name: "remove outdated reviews"
conditions:
- "base=main"
actions:
dismiss_reviews:
changes_requested: true
approved: true
message: "This Pull Request has been updated, so we're dismissing all reviews."

- name: "close PRs with no files changed"
conditions:
- "#files=0"
actions:
close:
message: "This pull request has been automatically closed by Mergify because there are no longer any changes."
extends: .github
Loading

0 comments on commit fa7c1d0

Please sign in to comment.