Skip to content

Commit

Permalink
feat: Merge Gatekeeperを追加 (#1518)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroshiba authored Jan 21, 2025
1 parent 6c7aed7 commit 15009db
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/test-merge-gatekeeper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "Merge Gatekeeper"

# auto mergeとmerge queue用のチェッカー。
# Approve数が足りているか、すべてのテストが通っているかを確認します。
# 詳細: https://github.com/VOICEVOX/merge-gatekeeper

on:
pull_request_target:
types: [auto_merge_enabled]
merge_group:
types: [checks_requested]

jobs:
merge-gatekeeper:
runs-on: ubuntu-latest
steps:
- uses: voicevox/merge-gatekeeper@main
with:
token: ${{ secrets.GATEKEEPER_TOKEN }}
required_score: 2
score_rules: |
#maintainer: 2
#reviewer: 1
- uses: upsidr/merge-gatekeeper@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
self: merge-gatekeeper
# https://github.com/upsidr/merge-gatekeeper/issues/71#issuecomment-1660607977
ref: ${{ github.event.pull_request && github.event.pull_request.head.sha || github.ref }}
timeout: 18000 # 5 hours

0 comments on commit 15009db

Please sign in to comment.