Skip to content

Commit

Permalink
chore: remove npm deps from dependabot + auto-approve (#2578)
Browse files Browse the repository at this point in the history
We have a custom workflow which updates deps.

Additionally, add a GitHub workflow to auto-approve PRs with the `pr/auto-approve` label.
  • Loading branch information
Elad Ben-Israel authored Feb 16, 2021
1 parent 769bc1e commit 2e6f385
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 47 deletions.
25 changes: 6 additions & 19 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,34 @@
version: 2

updates:
- package-ecosystem: npm
directory: '/'
schedule:
interval: daily
labels:
- dependencies
versioning-strategy: increase
ignore:
- dependency-name: typescript
versions:
- '>= 3.10.a'
- dependency-name: '@types/node'
versions:
- '>= 11.a'

- package-ecosystem: nuget
directory: '/packages/@jsii/dotnet-runtime/src'
schedule:
interval: daily
interval: weekly
labels:
- dependencies
- language/dotnet

- package-ecosystem: nuget
directory: '/packages/@jsii/dotnet-runtime-test/test'
schedule:
interval: daily
interval: weekly
labels:
- dependencies
- language/dotnet

- package-ecosystem: pip
directory: '/packages/@jsii/python-runtime'
schedule:
interval: daily
interval: weekly
labels:
- dependencies
- language/python

- package-ecosystem: pip
directory: '/gh-pages'
schedule:
interval: daily
interval: weekly
labels:
- dependencies
- language/python
Expand All @@ -68,3 +53,5 @@ updates:
directory: '/'
schedule:
interval: daily
labels:
- dependencies
13 changes: 13 additions & 0 deletions .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Approve PRs with "pr/auto-approve". mergify takes care of the actual merge.

name: auto-approve
on: pull_request

jobs:
auto-approve:
if: contains(github.event.pull_request.labels.*.name, 'pr/auto-approve')
runs-on: ubuntu-latest
steps:
- uses: hmarr/auto-approve-action@v2.0.0
with:
github-token: "${{ secrets.AUTO_APPROVE_GITHUB_TOKEN }}"
28 changes: 0 additions & 28 deletions .github/workflows/dependabot.yml

This file was deleted.

0 comments on commit 2e6f385

Please sign in to comment.