Skip to content

Commit fafb70c

Browse files
committed
lgtm to all
1 parent 691091b commit fafb70c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/pr_labeler.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ jobs:
9696
if: |
9797
contains(github.event.comment.html_url, '/pull/') &&
9898
contains(github.event.comment.body, '/lgtm') &&
99-
contains(steps.reviewers.outputs.reviewers, github.event.comment.user.login || 'null')
99+
contains(steps.reviewers.outputs.reviewers, github.event.comment.user.login || 'null') &&
100+
github.event.issue.user.login != github.event.comment.user.login
100101
uses: andymckay/labeler@master
101102
with:
102103
repo-token: ${{ secrets.BOT_PAT }}
@@ -106,7 +107,8 @@ jobs:
106107
if: |
107108
contains(github.event.comment.html_url, '/pull/') &&
108109
contains(github.event.comment.body, '/lgtm') &&
109-
contains(steps.approvers.outputs.approvers, github.event.comment.user.login || 'null')
110+
contains(steps.approvers.outputs.approvers, github.event.comment.user.login || 'null') &&
111+
github.event.issue.user.login != github.event.comment.user.login
110112
uses: andymckay/labeler@master
111113
with:
112114
repo-token: ${{ secrets.BOT_PAT }}

0 commit comments

Comments
 (0)