Skip to content

chore(deps-dev): bump braces from 3.0.2 to 3.0.3 in the npm_and_yarn group across 1 directory #400

chore(deps-dev): bump braces from 3.0.2 to 3.0.3 in the npm_and_yarn group across 1 directory

chore(deps-dev): bump braces from 3.0.2 to 3.0.3 in the npm_and_yarn group across 1 directory #400

Workflow file for this run

name: Auto approve and merge Dependabot PRs
on:
pull_request:
types:
- opened
- synchronize
branches:
- main
jobs:
auto-approve-and-merge:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]' || github.event_name == 'workflow_dispatch'
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Approve PR
uses: actions/github-script@v3
with:
github-token: ${{ secrets.PAT }}
script: |
github.pulls.createReview({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.issue.number,
event: 'APPROVE'
});
- name: Add label
uses: actions/github-script@v3
with:
github-token: ${{ secrets.PAT }}
script: |
github.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
labels: ['approved']
});
- name: Merge PR
uses: actions/github-script@v3
with:
github-token: ${{ secrets.PAT }}
script: |
github.pulls.merge({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.issue.number
});