https://github.com/salmanm/github-script-land-dependabot
https://github.com/salmanm/github-script-land-dependabot
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/salmanm/github-script-land-dependabot
- Owner: salmanm
- Created: 2020-11-11T12:17:38.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-11T13:46:23.000Z (over 4 years ago)
- Last Synced: 2024-10-11T02:32:43.635Z (8 months ago)
- Language: JavaScript
- Size: 43.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# github-script-land-dependabot
This module is to auto-merge dependabot PRs using [github-script](https://github.com/actions/github-script).
## Usage
```yml
...
automerge:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '12'- run: npm i github-script-land-dependabot
- name: Dependabot Auto Merge
uses: actions/github-script@v3
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request' }}
with:
github-token: ${{secrets.github_token}}
script: |
const automerge = require('github-script-land-dependabot')
automerge({ github, context })
...
```