Skip to content

Commit c4132c1

Browse files
committed
auto approve my PR with automerge label
1 parent cb0b609 commit c4132c1

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

.github/workflows/autoapprove.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
name: Auto approve
22

33
on:
4-
workflow_dispatch:
5-
inputs:
6-
pullRequestNumber:
7-
description: Pull request number to auto-approve
8-
required: true
94
pull_request_target:
105

116
jobs:
@@ -15,6 +10,6 @@ jobs:
1510
pull-requests: write
1611
steps:
1712
- uses: hmarr/auto-approve-action@v2
13+
if: github.event.label.name == 'automerge' && github.actor == 'tanishiking'
1814
with:
1915
github-token: ${{secrets.GITHUB_TOKEN}}
20-
pull-request-number: ${{ github.event.inputs.pullRequestNumber }}

0 commit comments

Comments
 (0)