ci: don't add reviewers for PRs created by a bot

This will ensure automatic backports created by the backport action does
not request reviewers (since the commit in question has already been
vetted and merged), but manual backports created by users does request
reviewers as these commits has not been vetted previously.
This commit is contained in:
dundargoc 2024-09-13 13:24:44 +02:00 committed by dundargoc
parent 4c23b83456
commit 755512ed60

View File

@ -5,7 +5,7 @@ on:
workflow_call: workflow_call:
jobs: jobs:
request-reviewer: request-reviewer:
if: github.event.pull_request.state == 'open' && github.event.pull_request.draft == false if: github.event.pull_request.state == 'open' && github.event.pull_request.draft == false && !endsWith(github.actor, '[bot]')
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
pull-requests: write pull-requests: write