Skip to content

Commit 61381dc

Browse files
authored
Add merge queue rules (modelcontextprotocol#37)
1 parent 3ecd78c commit 61381dc

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/workflows/merge-queue.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Before Merge
2+
3+
on:
4+
merge_group:
5+
6+
jobs:
7+
validate-pr:
8+
runs-on: ubuntu-latest
9+
name: Build
10+
steps:
11+
- name: Setup Gradle
12+
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
13+
14+
- name: Clean Build with Gradle
15+
run: ./gradlew clean build

.github/workflows/validate-pr.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Validate PR
2+
3+
# https://github.com/orgs/community/discussions/51120#discussioncomment-8623798
4+
on:
5+
workflow_dispatch:
6+
pull_request:
7+
8+
jobs:
9+
validate-pr:
10+
if: ${{ github.event_name != 'pull_request' }} # see the link above
11+
runs-on: ubuntu-latest
12+
name: Build
13+
steps:
14+
- name: Setup Gradle
15+
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
16+
17+
- name: Clean Build with Gradle
18+
run: ./gradlew clean build

0 commit comments

Comments
 (0)