File tree Expand file tree Collapse file tree 3 files changed +23
-27
lines changed
Expand file tree Collapse file tree 3 files changed +23
-27
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,9 @@ version: 2
33multi-ecosystem-groups :
44 maintenance :
55 schedule :
6- interval : " cron"
7- cronjob : " 0 6 1-7 * 1" # Every first Monday of the month at 6:00am
6+ interval : " monthly"
7+ time : " 06:00"
8+ day : " monday"
89 timezone : " America/Detroit"
910 commit-message :
1011 prefix : " Monthly dependency updates: "
Original file line number Diff line number Diff line change 1+ name : Dependabot pull requests
2+
3+ on : pull_request
4+
5+ jobs :
6+ dependabot :
7+ name : Auto-merge Dependabot PRs
8+ runs-on : ubuntu-latest
9+ if : ${{github.event.pull_request.user.login == 'dependabot[bot]'}}
10+ permissions :
11+ pull-requests : write
12+ contents : write
13+ env :
14+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
15+ PR_URL : ${{ github.event.pull_request.html_url }}
16+ steps :
17+ - name : Approve the PR
18+ run : gh pr review --approve "$PR_URL"
19+ - name : Merge the PR
20+ run : gh pr merge --squash --auto "$PR_URL"
Original file line number Diff line number Diff line change 44 push :
55 pull_request :
66
7- permissions :
8- contents : read
9-
107jobs :
118 build-and-test :
129 name : Build and test
2724 run : npm run build
2825 - name : Run tests
2926 run : npm run test
30-
31- dependabot :
32- name : Dependabot pull requests
33- needs : build-and-test
34- runs-on : ubuntu-latest
35- # Only continue if a pull request was created by dependabot
36- if : ${{github.event.pull_request.user.login == 'dependabot[bot]' && github.event_name == 'pull_request'}}
37- permissions :
38- pull-requests : write
39- contents : write
40- env :
41- PR_URL : ${{github.event.pull_request.html_url}}
42- GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
43- steps :
44- - name : Fetch Dependabot Metadata
45- uses : dependabot/fetch-metadata@v2
46- with :
47- github-token : " ${{ secrets.GITHUB_TOKEN }}"
48- - name : Approve the PR
49- run : gh pr review --approve "$PR_URL"
50- - name : Merge the PR
51- run : gh pr merge --squash --auto "$PR_URL"
You can’t perform that action at this time.
0 commit comments