-
Notifications
You must be signed in to change notification settings - Fork 1
feat(ci): create file sync and auto merge bot workflows #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
431029c
feat(ci): create file sync and auto merge dependabot workflows
MSevey 5a161e7
feat: add sync config and update source files
MSevey a3bebb0
chore: resolve lint errors
MSevey ef76b7d
same
MSevey d8b0278
chore: remove TBD approver and update rollkit repo sync config
MSevey 5fd8d37
chore: remove extra line for yamllint
MSevey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,22 +1,17 @@ | ||
| # More info at https://github.com/necojackarc/auto-request-review | ||
| # DO NOT EDIT DIRECTLY | ||
| # EDIT TEMPLATE IN ROLLKIT/.GITHUB REPO | ||
| reviewers: | ||
| # The default reviewers | ||
| defaults: | ||
| # Example of Github Team. Github team must have write access to repo. | ||
| # NOTE: This assigned the team itself, not members of the team. | ||
| # - team:engineering # This is the Github Team | ||
| - MSevey | ||
|
|
||
| - rollkit | ||
| groups: | ||
| rollkit: | ||
| - team:core | ||
| files: | ||
| ".github/**": | ||
| - MSevey | ||
|
|
||
| - rollkit | ||
| options: | ||
| ignore_draft: true | ||
| ignored_keywords: | ||
| - DO NOT REVIEW | ||
| enable_group_assignment: false | ||
|
|
||
| # Randomly pick reviewers up to this number. | ||
| # Do not set this option if you'd like to assign all matching reviewers. | ||
| number_of_reviewers: 2 | ||
| - WIP | ||
| number_of_reviewers: 3 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| # DO NOT EDIT DIRECTLY | ||
| # EDIT TEMPLATE IN ROLLKIT/.GITHUB REPO | ||
| version: 2 | ||
| updates: | ||
| {% for dep in deps %} | ||
| - package-ecosystem: {{dep.ecosystem}} | ||
| directory: "/" | ||
| schedule: | ||
| interval: weekly | ||
| open-pull-requests-limit: 10 | ||
| groups: | ||
| patch-updates: | ||
| applies-to: version-updates | ||
| update-types: | ||
| - "patch" | ||
| - "minor" | ||
| commit-message: | ||
| include: "scope" | ||
| prefix: "build" | ||
| {% endfor %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,108 @@ | ||
| # Use individual repo settings for files that differ | ||
| rollkit/.github: | ||
| - source: .github/dependabot.njk | ||
| dest: .github/dependabot.yml | ||
| template: | ||
| deps: [{ecosystem: "docker"}, {ecosystem: "github-actions"}, {ecosystem: "npm"}] | ||
| rollkit/astria-sequencer: | ||
| - source: .github/dependabot.njk | ||
| dest: .github/dependabot.yml | ||
| template: | ||
| deps: [{ecosystem: "gomod"}, {ecosystem: "github-actions"}] | ||
| rollkit/avail-da: | ||
| - source: .github/dependabot.njk | ||
| dest: .github/dependabot.yml | ||
| template: | ||
| deps: [{ecosystem: "gomod"}, {ecosystem: "github-actions"}] | ||
| rollkit/based-sequencer: | ||
| - source: .github/dependabot.njk | ||
| dest: .github/dependabot.yml | ||
| template: | ||
| deps: [{ecosystem: "gomod"}, {ecosystem: "docker"}, {ecosystem: "github-actions"}] | ||
| rollkit/bitcoin-da: | ||
| - source: .github/dependabot.njk | ||
| dest: .github/dependabot.yml | ||
| template: | ||
| deps: [{ecosystem: "gomod"}, {ecosystem: "github-actions"}] | ||
| rollkit/centralized-sequencer: | ||
| - source: .github/dependabot.njk | ||
| dest: .github/dependabot.yml | ||
| template: | ||
| deps: [{ecosystem: "gomod"}, {ecosystem: "docker"}, {ecosystem: "github-actions"}] | ||
| rollkit/cosmos-sdk-starter: | ||
| - source: .github/dependabot.njk | ||
| dest: .github/dependabot.yml | ||
| template: | ||
| deps: [{ecosystem: "gomod"}, {ecosystem: "github-actions"}] | ||
| rollkit/docs: | ||
| - source: .github/dependabot.njk | ||
| dest: .github/dependabot.yml | ||
| template: | ||
| deps: [{ecosystem: "npm"}, {ecosystem: "github-actions"}] | ||
| rollkit/go-da: | ||
| - source: .github/dependabot.njk | ||
| dest: .github/dependabot.yml | ||
| template: | ||
| deps: [{ecosystem: "gomod"}, {ecosystem: "github-actions"}] | ||
| rollkit/go-execution: | ||
| - source: .github/dependabot.njk | ||
| dest: .github/dependabot.yml | ||
| template: | ||
| deps: [{ecosystem: "gomod"}, {ecosystem: "github-actions"}] | ||
| rollkit/go-execution-abci: | ||
| - source: .github/dependabot.njk | ||
| dest: .github/dependabot.yml | ||
| template: | ||
| deps: [{ecosystem: "gomod"}, {ecosystem: "github-actions"}] | ||
| rollkit/go-execution-evm: | ||
| - source: .github/dependabot.njk | ||
| dest: .github/dependabot.yml | ||
| template: | ||
| deps: [{ecosystem: "gomod"}, {ecosystem: "github-actions"}] | ||
| rollkit/go-sequencing: | ||
| - source: .github/dependabot.njk | ||
| dest: .github/dependabot.yml | ||
| template: | ||
| deps: [{ecosystem: "gomod"}, {ecosystem: "github-actions"}] | ||
| rollkit/local-da: | ||
| - source: .github/dependabot.njk | ||
| dest: .github/dependabot.yml | ||
| template: | ||
| deps: [{ecosystem: "gomod"}, {ecosystem: "docker"}, {ecosystem: "github-actions"}] | ||
| rollkit/rollkit: | ||
MSevey marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| # Listing additional files here since the rollkit repo doesn't currently use the semantic release action | ||
| - .github/workflows/approve_merge_bots.yml | ||
| - .github/workflows/semantic_pull_request.yml | ||
| - .github/auto_request_review.yml | ||
| - source: .github/dependabot.njk | ||
| dest: .github/dependabot.yml | ||
| template: | ||
| deps: [{ecosystem: "gomod"}, {ecosystem: "docker"}, {ecosystem: "github-actions"}] | ||
| rollkit/template-da-repo: | ||
| - source: .github/dependabot.njk | ||
| dest: .github/dependabot.yml | ||
| template: | ||
| deps: [{ecosystem: "gomod"}, {ecosystem: "github-actions"}] | ||
|
|
||
| # Use groups for common files that have no differences | ||
| group: | ||
| repos: | | ||
| rollkit/astria-sequencer | ||
| rollkit/avail-da | ||
| rollkit/based-sequencer | ||
| rollkit/bitcoin-da | ||
| rollkit/centralized-sequencer | ||
| rollkit/cosmos-sdk-starter | ||
| rollkit/docs | ||
| rollkit/go-da | ||
| rollkit/go-execution | ||
| rollkit/go-execution-abci | ||
| rollkit/go-execution-evm | ||
| rollkit/go-sequencing | ||
| rollkit/local-da | ||
| rollkit/template-da-repo | ||
| files: | ||
| - .github/workflows/approve_merge_bots.yml | ||
| - .github/workflows/semantic_pull_request.yml | ||
| - .github/workflows/semantic_release.yml | ||
| - .github/auto_request_review.yml | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| # DO NOT EDIT DIRECTLY | ||
| # EDIT TEMPLATE IN ROLLKIT/.GITHUB REPO | ||
| name: Approve and Merge Bot PRs | ||
| on: | ||
| pull_request: | ||
|
|
||
| jobs: | ||
| dependabot: | ||
MSevey marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| name: "Approve and Merge Dependabot PRs" | ||
| if: ${{ github.actor == 'dependabot[bot]' }} | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| pull-requests: write | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: RollkitBot Approval | ||
| run: | | ||
| gh auth login --with-token <<< "$PAT" | ||
| gh pr review --approve "$PR_URL" | ||
| gh pr merge --auto --squash "$PR_URL" | ||
MSevey marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| env: | ||
| PR_URL: ${{github.event.pull_request.html_url}} | ||
| PAT: ${{secrets.PR_APPROVE_PAT_RB}} | ||
| - name: Sevey Approval | ||
| run: | | ||
| gh auth login --with-token <<< "$PAT" | ||
| gh pr review --approve "$PR_URL" | ||
| gh pr merge --auto --squash "$PR_URL" | ||
| env: | ||
| PR_URL: ${{github.event.pull_request.html_url}} | ||
| PAT: ${{secrets.PR_APPROVE_PAT_SEVEY}} | ||
|
|
||
| rollkitbot: | ||
| name: "Approve and Merge RollkitBot PRs" | ||
| if: ${{ github.actor == 'RollkitBot' && contains(github.event.pull_request.labels.*.name, 'action sync') }} | ||
MSevey marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| pull-requests: write | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Sevey Approval | ||
| run: | | ||
| gh auth login --with-token <<< "$PAT" | ||
| gh pr review --approve "$PR_URL" | ||
| gh pr merge --auto --squash "$PR_URL" | ||
| env: | ||
| PR_URL: ${{github.event.pull_request.html_url}} | ||
| PAT: ${{secrets.PR_APPROVE_PAT_SEVEY}} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| # DO NOT EDIT DIRECTLY | ||
| # EDIT TEMPLATE IN ROLLKIT/.GITHUB REPO | ||
| name: Semantic Pull Request | ||
|
|
||
| on: | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| # DO NOT EDIT DIRECTLY | ||
| # EDIT TEMPLATE IN ROLLKIT/.GITHUB REPO | ||
| name: Semantic Release | ||
|
|
||
| on: | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| name: Sync Files | ||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| workflow_dispatch: | ||
| jobs: | ||
| sync: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout Repository | ||
| uses: actions/checkout@v4 | ||
| - name: Run GitHub File Sync | ||
| uses: BetaHuhn/repo-file-sync-action@v1 | ||
| with: | ||
| GH_PAT: ${{ secrets.FILE_SYNC_PAT }} | ||
| PR_LABELS: "action sync" | ||
| COMMIT_PREFIX: "chore: " | ||
| COMMIT_EACH_FILE: false |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.