Skip to content

Commit

Permalink
fix/deps: dependabot YAML doesn't support anchors/aliases (#850)
Browse files Browse the repository at this point in the history
- per bug report
- duplicate config because anchors/aliases aren't supported, which is a
  bit annoying
  • Loading branch information
agilgur5 authored Aug 31, 2020
1 parent 1619bc1 commit f8b8317
Showing 1 changed file with 23 additions and 17 deletions.
40 changes: 23 additions & 17 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,35 @@
version: 2

# default configuration
defaults: &defaults
package-ecosystem: npm
directory: '/'
schedule:
interval: weekly # don't spam daily
# only increase version when required, don't bump every patch or minor
versioning-strategy: increase-if-necessary
allow:
# only upgrade prod deps (not devDeps)
- dependency-name: '*'
dependency-type: production
commit-message:
prefix: 'deps:' # prefix commit with deps: for consistency

updates:
# configuration for /
- <<: *defaults
- package-ecosystem: npm
directory: '/'
schedule:
interval: weekly # don't spam daily
commit-message:
prefix: 'deps:' # prefix commit with deps: for consistency
# only increase version when required, don't bump every patch or minor
versioning-strategy: increase-if-necessary
allow:
# only upgrade prod deps (not devDeps)
- dependency-name: '*'
dependency-type: production
# temporarily disable dep upgrade PRs for / as they're being updated
open-pull-requests-limit: 0

# configuration for /website
- <<: *defaults
- package-ecosystem: npm
directory: /website
schedule:
interval: weekly # don't spam daily
commit-message:
prefix: 'deps:' # prefix commit with deps: for consistency
# only increase version when required, don't bump every patch or minor
versioning-strategy: increase-if-necessary
allow:
# only upgrade prod deps (not devDeps)
- dependency-name: '*'
dependency-type: production
# /website is not a published package and doesn't really have an attack
# surface area, should only be updated as needed, not as soon as deps change
ignore:
Expand Down

1 comment on commit f8b8317

@vercel
Copy link

@vercel vercel bot commented on f8b8317 Aug 31, 2020

Choose a reason for hiding this comment

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

Please sign in to comment.