Skip to content
Open
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
96 changes: 45 additions & 51 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
pull_request_rules:
- name: automatic merge for ImgBot pull requests
conditions:
- author=imgbot[bot]
actions:
merge:
method: merge
- name: automatic merge for dependabot/Renovate/Requires.io pull requests
conditions:
- or:
- and:
- author=dependabot[bot]
- and:
- title~=^\[requires.io\]
- head~=^requires-io
- and:
- author=renovate[bot]
pull_request_rules:
- name: automatic merge for ImgBot pull requests
conditions:
- author=imgbot[bot]
actions:
merge:
method: merge

- name: automatic merge for dependabot/Renovate/Requires.io pull requests
conditions:
- or:
- and:
- author=dependabot[bot]
- and:
- title~=^\[requires.io\]
- head~=^requires-io
- and:
- author=renovate[bot]
# PR is not a draft
- -draft
- -draft
# condition
# https://docs.mergify.com/conditions/#github-actions
# 不一定全都会响应 在此判定 任意一个失败都不可以,但是失败也不行,可能有 pending 之类的
Expand All @@ -27,39 +27,39 @@ pull_request_rules:
# need to list every CI that you expect.
# https://github.com/Mergifyio/mergify/discussions/5119
# https://github.com/Mergifyio/mergify/discussions/5120
- or:
- or:
# workflows
- files~=^.github/workflows/
- files~=^.github/workflows/
# deploy
- files~=^life/
- files~=^game/
- files=package.json
- files=pnpm-lock.yaml
- files~=^life/
- files~=^game/
- files=package.json
- files=pnpm-lock.yaml
# py
- files~=^script/
- files~=^script/
# # deploy life, only success merge, pr already has been split
# - check-success=deploy-life (ubuntu-latest, life/.vitepress/dist, augusmeow, life)
# - check-success=deploy-life (ubuntu-latest, life/.vitepress/dist, augusmeow, augusmeow.github.io)
# deploy-life-pr
- -check-failure=deploy-life-pr
- -check-neutral=deploy-life-pr
- -check-pending=deploy-life-pr
- -check-failure=deploy-life-pr
- -check-neutral=deploy-life-pr
- -check-pending=deploy-life-pr
# deploy game
- -check-failure=deploy-game (ubuntu-latest, game/.vitepress/dist, augusmeow, game)
- -check-neutral=deploy-game (ubuntu-latest, game/.vitepress/dist, augusmeow, game)
- -check-pending=deploy-game (ubuntu-latest, game/.vitepress/dist, augusmeow, game)
- -check-failure=deploy-game (ubuntu-latest, game/.vitepress/dist, augusmeow, game)
- -check-neutral=deploy-game (ubuntu-latest, game/.vitepress/dist, augusmeow, game)
- -check-pending=deploy-game (ubuntu-latest, game/.vitepress/dist, augusmeow, game)
# py-life-recent
- -check-failure=py-life-recent
- -check-neutral=py-life-recent
- -check-pending=py-life-recent
- -check-failure=py-life-recent
- -check-neutral=py-life-recent
- -check-pending=py-life-recent
# py-game-wish
- -check-failure=py-game-wish
- -check-neutral=py-game-wish
- -check-pending=py-game-wish
actions:
merge:
method: merge
- -check-failure=py-game-wish
- -check-neutral=py-game-wish
- -check-pending=py-game-wish
actions:
merge:
method: merge

# - name: automatic merge for python script latest life
# conditions:
# - author=DrAugus
Expand All @@ -74,7 +74,7 @@ pull_request_rules:
# actions:
# merge:
# method: merge

# - name: automatic merge for auto get mhy wish
# conditions:
# - author=DrAugus
Expand All @@ -84,7 +84,7 @@ pull_request_rules:
# actions:
# merge:
# method: merge

# - name: automatic merge for dev-game/py
# conditions:
# - author=DrAugus
Expand Down Expand Up @@ -129,11 +129,5 @@ pull_request_rules:
# actions:
# merge:
# method: merge

# https://docs.mergify.com/workflow/delete-head-branches/#prevent-deletion-for-dependent-branches
- name: delete head branch after merge but not if other PRs depend on it
conditions:
- merged
actions:
delete_head_branch:
force: false
Loading