Awesome
Learning action-dependabot-auto-merge
Just one of the things I'm learning. https://github.com/hchiam/learning
At least once
https://github.com/settings/tokens
Set up a PAT (Personal Access Token) named mytoken
with these scopes:
repo
for private repositoriespublic_repo
for public repositories
Per repo
Go to: Settings > Security > Secrets and variables > Dependabot > New repository secret > Name: mytoken, Secret: (paste PAT) > Add secret
Create this file:
.github/workflows/dependabot_auto_merge.yml
Literally post this into that file: (yes, literally ${{ secrets.mytoken }}
)
name: dependabot_auto_merge
on:
pull_request:
jobs:
auto-merge:
runs-on: ubuntu-latest
steps:
- uses: ahmadnassri/action-dependabot-auto-merge@v2
with:
github-token: ${{ secrets.mytoken }}