Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

add dependabot support for npm and go dependencies #1347

Merged
merged 7 commits into from
Oct 31, 2022
15 changes: 15 additions & 0 deletions .github/actions/auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: auto-merge

on:
pull_request:
paths-ignore:
- "src/**" # prevent auto-merge for go dependencies
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately auto-merge config does not support ignore options.

paths-ignore prevents the auto-merge action from running for go dependencies under src/.

image


jobs:
auto-merge:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ahmadnassri/action-dependabot-auto-merge@v2 # https://github.com/marketplace/actions/dependabot-auto-merge
with:
github-token: ${{ secrets.DEPENDABOT_TOKEN }}
4 changes: 4 additions & 0 deletions .github/auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# auto-merge config file (see https://github.com/marketplace/actions/dependabot-auto-merge#configuration-file-syntax)
- match:
dependency_type: all
update_type: "semver:minor" # includes patch updates!
39 changes: 39 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# See: https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
reviewers:
- "alcion/platform"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this also be Corso maintainers?

open-pull-requests-limit: 50

# Maintain dependencies for npm - website
- package-ecosystem: "npm"
directory: "website/"
schedule:
interval: "daily"
reviewers:
- "corso-maintainers"
open-pull-requests-limit: 50

# Maintain dependencies for npm - docs
- package-ecosystem: "npm"
directory: "docs/"
schedule:
interval: "daily"
reviewers:
- "corso-maintainers"
open-pull-requests-limit: 50

# Maintain dependencies for go - src
- package-ecosystem: "gomod"
directory: "src/"
schedule:
interval: "daily"
reviewers:
- "corso-maintainers"
open-pull-requests-limit: 50