-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c890a01
commit 8e0abfe
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Docs: https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "pip" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "weekly" | ||
day: "monday" | ||
time: "13:00" | ||
timezone: "Europe/Copenhagen" | ||
open-pull-requests-limit: 20 | ||
commit-message: | ||
prefix: "deps:" | ||
include: "scope" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: automerge-bot-prs | ||
|
||
on: pull_request | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
dependabot-automerge: | ||
runs-on: ubuntu-latest | ||
# if actor is dependabot or pre-commit-ci[bot] then run | ||
if: ${{ github.actor == 'dependabot[bot]' }} | ||
|
||
steps: | ||
# Checkout action is required for token to persist | ||
- name: Enable auto-merge for Dependabot PRs | ||
run: gh pr merge --auto --merge "$PR_URL" # Use Github CLI to merge automatically the PR | ||
env: | ||
PR_URL: ${{github.event.pull_request.html_url}} | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Auto approve dependabot PRs | ||
if: ${{ github.actor == 'dependabot[bot]' }} | ||
uses: hmarr/[email protected] | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} |