Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
* @articulate/devex

# Allow Botzo to approve dependency bumps (and related updates)
go.* @articulate/devex @botzo
/.github/workflows/ @articulate/devex @botzo
28 changes: 28 additions & 0 deletions .github/workflows/auto-merge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Auto-merge Dependencies

on:
pull_request:

jobs:
auto-merge:
runs-on: ${{ vars.RUNNER_SMALL }}
if: >
github.event.pull_request.user.login == 'dependabot[bot]' ||
github.event.pull_request.user.login == 'articulate-automation[bot]'
steps:
- uses: actions/create-github-app-token@v3
id: token
with:
client-id: ${{ vars.AUTOMATION_CLIENT_ID }}
private-key: ${{ secrets.AUTOMATION_PRIVATE_KEY }}
- name: Approve PR
env:
# Approve as Botzo to work around CODEOWNERS requirement
GH_TOKEN: ${{ secrets.BOTZO_GH_TOKEN }}
PR: ${{ github.event.pull_request.number }}
run: gh pr review --approve "$PR" -R "$GITHUB_REPOSITORY"
- name: Enable auto-merge
env:
GH_TOKEN: ${{ steps.token.outputs.token }}
PR: ${{ github.event.pull_request.number }}
run: gh pr merge --auto --squash "$PR" -R "$GITHUB_REPOSITORY"
1 change: 1 addition & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Test

on:
pull_request:
merge_group:
push:
branches:
- main
Expand Down