Skip to content

Commit

Permalink
Add Dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
j0k3r committed Jun 12, 2024
1 parent 6504343 commit 39ae300
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
time: "02:00"
timezone: Europe/Paris
open-pull-requests-limit: 10
versioning-strategy: increase
groups:
babel-dependencies:
patterns:
- "*babel*"
aws-sdk-dependencies:
patterns:
- "*aws-sdk*"
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
time: "02:00"
timezone: Europe/Paris
open-pull-requests-limit: 10
6 changes: 6 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
changelog:
exclude:
labels:
- Dependencies
authors:
- dependabot
25 changes: 25 additions & 0 deletions .github/workflows/dependabot-automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Auto-merge Dependabot minors
on: pull_request_target

permissions:
pull-requests: write
contents: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2.1.0
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
- name: Approve and merge minor updates
if: ${{ steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch' }}
run: |
gh pr review --approve "$PR_URL"
gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 39ae300

Please sign in to comment.