Skip to content

Commit 5a161e7

Browse files
committed
feat: add sync config and update source files
1 parent 431029c commit 5a161e7

File tree

8 files changed

+194
-44
lines changed

8 files changed

+194
-44
lines changed

.github/auto_request_review.yml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,17 @@
1-
# More info at https://github.com/necojackarc/auto-request-review
1+
# DO NOT EDIT DIRECTLY
2+
# EDIT TEMPLATE IN ROLLKIT/.GITHUB REPO
23
reviewers:
3-
# The default reviewers
44
defaults:
5-
# Example of Github Team. Github team must have write access to repo.
6-
# NOTE: This assigned the team itself, not members of the team.
7-
# - team:engineering # This is the Github Team
8-
- MSevey
9-
5+
- rollkit
6+
groups:
7+
rollkit:
8+
- team:core
109
files:
1110
".github/**":
1211
- MSevey
13-
12+
- rollkit
1413
options:
1514
ignore_draft: true
1615
ignored_keywords:
17-
- DO NOT REVIEW
18-
enable_group_assignment: false
19-
20-
# Randomly pick reviewers up to this number.
21-
# Do not set this option if you'd like to assign all matching reviewers.
22-
number_of_reviewers: 2
16+
- WIP
17+
number_of_reviewers: 3

.github/dependabot.njk

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# DO NOT EDIT DIRECTLY
2+
# EDIT TEMPLATE IN ROLLKIT/.GITHUB REPO
3+
version: 2
4+
updates:
5+
{% for dep in deps %}
6+
- package-ecosystem: {{dep.ecosystem}}
7+
directory: "/"
8+
schedule:
9+
interval: weekly
10+
open-pull-requests-limit: 10
11+
groups:
12+
patch-updates:
13+
applies-to: version-updates
14+
update-types:
15+
- "patch"
16+
- "minor"
17+
commit-message:
18+
include: "scope"
19+
prefix: "build"
20+
{% endfor %}

.github/dependabot.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ updates:
1111
update-types:
1212
- "patch"
1313
- "minor"
14-
# Including this due to certain github action steps installing via npm
1514
- package-ecosystem: npm
1615
directory: "/"
1716
schedule:

.github/sync.yml

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
# Use individual repo settings for files that differ
2+
rollkit/.github:
3+
- source: .github/dependabot.njk
4+
dest: .github/dependabot.yml
5+
template:
6+
deps: [{ ecosystem: "docker" }, { ecosystem: "github-actions" }, { ecosystem: "npm" }]
7+
rollkit/astria-sequencer:
8+
- source: .github/dependabot.njk
9+
dest: .github/dependabot.yml
10+
template:
11+
deps: [{ ecosystem: "gomod" }, { ecosystem: "github-actions" }]
12+
rollkit/avail-da:
13+
- source: .github/dependabot.njk
14+
dest: .github/dependabot.yml
15+
template:
16+
deps: [{ ecosystem: "gomod" }, { ecosystem: "github-actions" }]
17+
rollkit/based-sequencer:
18+
- source: .github/dependabot.njk
19+
dest: .github/dependabot.yml
20+
template:
21+
deps: [{ ecosystem: "gomod" }, { ecosystem: "docker" }, { ecosystem: "github-actions" }]
22+
rollkit/bitcoin-da:
23+
- source: .github/dependabot.njk
24+
dest: .github/dependabot.yml
25+
template:
26+
deps: [{ ecosystem: "gomod" }, { ecosystem: "github-actions" }]
27+
rollkit/centralized-sequencer:
28+
- source: .github/dependabot.njk
29+
dest: .github/dependabot.yml
30+
template:
31+
deps: [{ ecosystem: "gomod" }, { ecosystem: "docker" }, { ecosystem: "github-actions" }]
32+
rollkit/cosmos-sdk-starter:
33+
- source: .github/dependabot.njk
34+
dest: .github/dependabot.yml
35+
template:
36+
deps: [{ ecosystem: "gomod" }, { ecosystem: "github-actions" }]
37+
rollkit/docs:
38+
- source: .github/dependabot.njk
39+
dest: .github/dependabot.yml
40+
template:
41+
deps: [{ ecosystem: "npm" }, { ecosystem: "github-actions" }]
42+
rollkit/go-da:
43+
- source: .github/dependabot.njk
44+
dest: .github/dependabot.yml
45+
template:
46+
deps: [{ ecosystem: "gomod" }, { ecosystem: "github-actions" }]
47+
rollkit/go-execution:
48+
- source: .github/dependabot.njk
49+
dest: .github/dependabot.yml
50+
template:
51+
deps: [{ ecosystem: "gomod" }, { ecosystem: "github-actions" }]
52+
rollkit/go-execution-abci:
53+
- source: .github/dependabot.njk
54+
dest: .github/dependabot.yml
55+
template:
56+
deps: [{ ecosystem: "gomod" }, { ecosystem: "github-actions" }]
57+
rollkit/go-execution-evm:
58+
- source: .github/dependabot.njk
59+
dest: .github/dependabot.yml
60+
template:
61+
deps: [{ ecosystem: "gomod" }, { ecosystem: "github-actions" }]
62+
rollkit/go-sequencing:
63+
- source: .github/dependabot.njk
64+
dest: .github/dependabot.yml
65+
template:
66+
deps: [{ ecosystem: "gomod" }, { ecosystem: "github-actions" }]
67+
rollkit/local-da:
68+
- source: .github/dependabot.njk
69+
dest: .github/dependabot.yml
70+
template:
71+
deps: [{ ecosystem: "gomod" }, { ecosystem: "docker" }, { ecosystem: "github-actions" }]
72+
rollkit/rollkit:
73+
- source: .github/dependabot.njk
74+
dest: .github/dependabot.yml
75+
template:
76+
deps: [{ ecosystem: "gomod" }, { ecosystem: "docker" }, { ecosystem: "github-actions" }]
77+
rollkit/template-da-repo:
78+
- source: .github/dependabot.njk
79+
dest: .github/dependabot.yml
80+
template:
81+
deps: [{ ecosystem: "gomod" }, { ecosystem: "github-actions" }]
82+
83+
# Use groups for common files that have no differences
84+
group:
85+
repos: |
86+
rollkit/astria-sequencer
87+
rollkit/avail-da
88+
rollkit/based-sequencer
89+
rollkit/bitcoin-da
90+
rollkit/centralized-sequencer
91+
rollkit/cosmos-sdk-starter
92+
rollkit/docs
93+
rollkit/go-da
94+
rollkit/go-execution
95+
rollkit/go-execution-abci
96+
rollkit/go-execution-evm
97+
rollkit/go-sequencing
98+
rollkit/local-da
99+
rollkit/rollkit
100+
rollkit/template-da-repo
101+
files:
102+
- .github/workflows/approve_merge_bots.yml
103+
- .github/workflows/semantic_pull_request.yml
104+
- .github/workflows/semantic_release.yml
105+
- .github/auto_request_review.yml
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# DO NOT EDIT DIRECTLY
2+
# EDIT TEMPLATE IN ROLLKIT/.GITHUB REPO
3+
name: Approve and Merge Bot PRs
4+
on:
5+
pull_request:
6+
7+
jobs:
8+
dependabot:
9+
name: "Approve and Merge Dependabot PRs"
10+
if: ${{ github.actor == 'dependabot[bot]' }}
11+
runs-on: ubuntu-latest
12+
permissions:
13+
pull-requests: write
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: RollkitBot Approval
17+
run: |
18+
gh auth login --with-token <<< "$PAT"
19+
gh pr review --approve "$PR_URL"
20+
gh pr merge --auto --squash "$PR_URL"
21+
env:
22+
PR_URL: ${{github.event.pull_request.html_url}}
23+
PAT: ${{secrets.PR_APPROVE_PAT_RB}}
24+
- name: Sevey Approval
25+
run: |
26+
gh auth login --with-token <<< "$PAT"
27+
gh pr review --approve "$PR_URL"
28+
gh pr merge --auto --squash "$PR_URL"
29+
env:
30+
PR_URL: ${{github.event.pull_request.html_url}}
31+
PAT: ${{secrets.PR_APPROVE_PAT_SEVEY}}
32+
33+
rollkitbot:
34+
name: "Approve and Merge RollkitBot PRs"
35+
if: ${{ github.actor == 'RollkitBot' && contains(github.event.pull_request.labels.*.name, 'action sync') }}
36+
runs-on: ubuntu-latest
37+
permissions:
38+
pull-requests: write
39+
steps:
40+
- uses: actions/checkout@v4
41+
- name: Sevey Approval
42+
run: |
43+
gh auth login --with-token <<< "$PAT"
44+
gh pr review --approve "$PR_URL"
45+
gh pr merge --auto --squash "$PR_URL"
46+
env:
47+
PR_URL: ${{github.event.pull_request.html_url}}
48+
PAT: ${{secrets.PR_APPROVE_PAT_SEVEY}}
49+
- name: TBD Approval
50+
run: |
51+
gh auth login --with-token <<< "$PAT"
52+
gh pr review --approve "$PR_URL"
53+
gh pr merge --auto --squash "$PR_URL"
54+
env:
55+
PR_URL: ${{github.event.pull_request.html_url}}
56+
PAT: ${{secrets.PR_APPROVE_PAT_TBD}}

.github/workflows/approve_merge_dependabot.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/semantic_pull_request.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# DO NOT EDIT DIRECTLY
2+
# EDIT TEMPLATE IN ROLLKIT/.GITHUB REPO
13
name: Semantic Pull Request
24

35
on:

.github/workflows/semantic_release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# DO NOT EDIT DIRECTLY
2+
# EDIT TEMPLATE IN ROLLKIT/.GITHUB REPO
13
name: Semantic Release
24

35
on:

0 commit comments

Comments
 (0)