mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-15 09:24:52 +03:00
Add auto-merge dependabot
This commit is contained in:
parent
5c92c1d277
commit
9b74c4fe4d
8
.github/dependabot.yml
vendored
8
.github/dependabot.yml
vendored
|
@ -8,3 +8,11 @@ updates:
|
||||||
directory: "/"
|
directory: "/"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "daily"
|
interval: "daily"
|
||||||
|
- package-ecosystem: pip
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: daily
|
||||||
|
- package-ecosystem: pip
|
||||||
|
directory: "/{{ cookiecutter.project_slug }}/requirements"
|
||||||
|
schedule:
|
||||||
|
interval: daily
|
||||||
|
|
27
.github/workflows/dependabot-merge.yml
vendored
Normal file
27
.github/workflows/dependabot-merge.yml
vendored
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
name: "Dependabot Automerge - Action"
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
worker:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
if: github.actor == 'dependabot[bot]'
|
||||||
|
steps:
|
||||||
|
- name: automerge
|
||||||
|
uses: actions/github-script@0.2.0
|
||||||
|
with:
|
||||||
|
script: |
|
||||||
|
github.pullRequests.createReview({
|
||||||
|
owner: context.payload.repository.owner.login,
|
||||||
|
repo: context.payload.repository.name,
|
||||||
|
pull_number: context.payload.pull_request.number,
|
||||||
|
event: 'APPROVE'
|
||||||
|
})
|
||||||
|
github.pullRequests.merge({
|
||||||
|
owner: context.payload.repository.owner.login,
|
||||||
|
repo: context.payload.repository.name,
|
||||||
|
pull_number: context.payload.pull_request.number
|
||||||
|
})
|
||||||
|
github-token: ${{github.token}}
|
Loading…
Reference in New Issue
Block a user