File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11version : 2
22
3+ registries :
4+ npm-github :
5+ type : npm-registry
6+ url : https://npm.pkg.github.com
7+ token : ${{ secrets.GH_TOKEN }}
8+ git-github :
9+ type : git
10+ url : https://github.com
11+ username : x-access-token
12+ password : ' ${{ secrets.GH_TOKEN }}'
13+
314updates :
415 - package-ecosystem : npm
5- registries :
6- - gh-packages
7- directory : ' /'
816 schedule :
917 interval : weekly
10- open-pull-requests-limit : 99
11- versioning-strategy : increase
12- allow :
13- - dependency-name : ' @typeform*'
14- commit-message :
15- prefix : ' chore'
16- include : ' scope'
17- labels :
18- - ' dependabot'
18+ day : monday
1919 groups :
20- typeform :
20+ dependencies :
2121 patterns :
22- - ' @typeform*'
22+ - " *"
23+ directories :
24+ - " /"
25+ commit-message :
26+ prefix : fix(dependabot)
27+ registries :
28+ - npm-github
29+ - git-github
2330
24- registries :
25- gh-packages :
26- type : npm-registry
27- url : https://npm.pkg.github.com
28- token : ${{ secrets.GH_TOKEN }}
31+ - package-ecosystem : github-actions
32+ schedule :
33+ interval : weekly
34+ day : monday
35+ groups :
36+ dependencies :
37+ patterns :
38+ - " *"
39+ directory : " /"
40+ commit-message :
41+ prefix : build(dependabot)
Original file line number Diff line number Diff line change 1+ name : Dependabot auto-approve and auto-merge
2+
3+ on :
4+ pull_request_target :
5+ types : [opened, synchronize, reopened]
6+
7+ permissions :
8+ pull-requests : write
9+ contents : write
10+
11+ jobs :
12+ dependabot :
13+ runs-on : [self-hosted, ci-universal]
14+ if : github.actor == 'dependabot[bot]'
15+
16+ steps :
17+ - name : Checkout Repo
18+ uses : actions/checkout@v5
19+ with :
20+ fetch-depth : 1
21+
22+ - name : Install GitHub CLI
23+ run : |
24+ sudo apt-get update
25+ sudo apt-get install -y gh
26+
27+ - name : Authenticate gh
28+ run : echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
29+
30+ - name : Approve dependabot PRs
31+ run : gh pr review --approve "$PR_URL"
32+ env :
33+ PR_URL : ${{ github.event.pull_request.html_url }}
34+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35+
36+ - name : Merge for dependabot PRs
37+ run : gh pr merge --auto --squash "$PR_URL"
38+ env :
39+ PR_URL : ${{ github.event.pull_request.html_url }}
40+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments