Skip to content

Commit 9bd5990

Browse files
authored
Merge pull request #34 from playframework/sync-mergify
Sync Mergify settings between all repositories
2 parents f871665 + 565d164 commit 9bd5990

3 files changed

Lines changed: 88 additions & 0 deletions

File tree

.github/sync.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# More details in https://github.com/marketplace/actions/repo-file-sync-action
2+
group:
3+
# Mergify settings
4+
- files:
5+
- .mergify.yml
6+
repos: |
7+
playframework/cachecontrol
8+
playframework/interplay
9+
playframework/omnidoc
10+
playframework/play-doc
11+
playframework/play-ebean
12+
playframework/play-file-watch
13+
playframework/play-grpc
14+
playframework/play-java-seed.g8
15+
playframework/play-json
16+
playframework/play-mailer
17+
playframework/play-samples
18+
playframework/play-scala-seed.g8
19+
playframework/play-slick
20+
playframework/play-soap
21+
playframework/play-socket.io
22+
playframework/play-webgoat
23+
playframework/play-ws
24+
playframework/playframework
25+
playframework/playframework.com
26+
playframework/scalatestplus-play
27+
playframework/twirl
28+
# playframework/anorm
29+
# playframework/netty-reactive-streams
30+
# playframework/play-java-react-seed
31+
# playframework/play-scala-react-seed
32+
# playframework/play-java-angular-seed
33+
# playframework/play-scala-angular-seed
34+

.github/workflows/sync.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Sync Files
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
sync:
8+
runs-on: ubuntu-20.04
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v3
12+
- name: Run GitHub File Sync
13+
uses: BetaHuhn/repo-file-sync-action@v1
14+
with:
15+
GH_PAT: ${{ secrets.GH_REPO_TOKEN }}

.mergify.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
defaults:
2+
actions:
3+
backport:
4+
title: "[{{ destination_branch }}] {{ title }} (backport #{{ number }}) by @{{ author }}"
5+
6+
queue_rules:
7+
- name: default
8+
conditions:
9+
# Conditions to get out of the queue (= merged)
10+
- check-success~=/ Ready To Merge$
11+
12+
pull_request_rules:
13+
- name: Merge PRs that are ready
14+
conditions:
15+
- check-success~=/ Ready To Merge$
16+
- "#approved-reviews-by>=1"
17+
- "#review-requested=0"
18+
- "#changes-requested-reviews-by=0"
19+
- label!=status:block-merge
20+
- label=status:merge-when-green
21+
actions:
22+
queue:
23+
method: merge
24+
name: default
25+
26+
- name: Delete the PR branch and remove label after merge
27+
conditions:
28+
- merged
29+
actions:
30+
delete_head_branch: {}
31+
label:
32+
remove: [ "status:merge-when-green" ]
33+
34+
- name: Labeling for Scala Steward PR's
35+
conditions:
36+
- author=scala-steward
37+
actions:
38+
label:
39+
add: [ "type:updates" ]

0 commit comments

Comments
 (0)