File tree Expand file tree Collapse file tree 2 files changed +19
-22
lines changed Expand file tree Collapse file tree 2 files changed +19
-22
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -101,3 +101,22 @@ jobs:
101101 env :
102102 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
103103 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
104+
105+ dependabot :
106+ runs-on : ubuntu-latest
107+ if : github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'codama-idl/codama'
108+ needs : [lint, tests]
109+ permissions :
110+ contents : write
111+ pull-requests : write
112+ steps :
113+ - name : Auto-approve the PR
114+ run : gh pr review --approve "$PR_URL"
115+ env :
116+ PR_URL : ${{ github.event.pull_request.html_url }}
117+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
118+ - name : Enable auto-merge
119+ run : gh pr merge --auto --squash "$PR_URL"
120+ env :
121+ PR_URL : ${{ github.event.pull_request.html_url }}
122+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments