Skip to content

Commit

Permalink
Setup dependabot version update and automerging of dependabot prs
Browse files Browse the repository at this point in the history
  • Loading branch information
kaja-nav committed Jan 24, 2024
1 parent 91387bc commit d32014b
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: 2

updates:
- package-ecosystem: github-actions
directory: '/'
schedule:
interval: daily

- package-ecosystem: gradle
directory: '/'
schedule:
interval: daily
time: '14:30'
open-pull-requests-limit: 20
10 changes: 10 additions & 0 deletions .github/workflows/label-dependabot-pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: label-dependabot-pr
on:
pull_request:
types: [ opened, unlabeled ]

jobs:
label-dependabot-pr:
uses: navikt/teamesyfo-github-actions-workflows/.github/workflows/label-dependabot-pr.yaml@main
permissions:
pull-requests: write
15 changes: 15 additions & 0 deletions .github/workflows/merge-dependabot-pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: merge-dependabot-pr
on:
workflow_dispatch:
schedule:
- cron: '0,15,30,45 7-14 * * 1,2,3,4,5'

jobs:
merge-dependabot-pr:
uses: navikt/teamesyfo-github-actions-workflows/.github/workflows/merge-dependabot-pr.yaml@main
permissions:
actions: write
checks: read
contents: write
pull-requests: write
statuses: read
3 changes: 3 additions & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
* @navikt/team-esyfo

# Set empty owners on package.json and package-lock.json to avoid that github adds team-esyfo as reviewer on all automergeable prs from Dependabot
build.gradle.kts

0 comments on commit d32014b

Please sign in to comment.