generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Emerson Knapp <eknapp@amazon.com>
- Loading branch information
Emerson Knapp
committed
Apr 6, 2021
1 parent
2f71b93
commit 1d94aa5
Showing
1 changed file
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
name: Auto approve | ||
|
||
on: pull_request | ||
on: | ||
pull_request_target: | ||
types: [labeled] | ||
|
||
jobs: | ||
# Auto-approve dependabot PRs since this repo requires at least one approving review. | ||
# Dependabot will automatically merge minor version upgrades | ||
# (see .dependabot/config.yml for more info). | ||
auto-approve-dependabot: | ||
runs-on: ubuntu-latest | ||
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' | ||
if: github.actor == 'dependabot[bot]' && contains(github.event.pull_request.labels.*.name, 'dependencies') | ||
steps: | ||
- uses: hmarr/auto-approve-action@v2.0.0 | ||
- uses: hmarr/auto-approve-action@v2.1.0 | ||
with: | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" |