Skip to content

Commit 527469f

Browse files
ci: skip auto-request-review workflow for the repository's owner (#315)
1 parent e8b36f1 commit 527469f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/auto-request-review.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,15 @@ jobs:
1212
name: Auto Request Review
1313
runs-on: ubuntu-latest
1414
steps:
15+
- name: Skip for repository owner
16+
id: check_owner
17+
if: github.event.pull_request.user.id == 4849482 # martin-georgiev
18+
run: |
19+
echo "Skipping auto-review request for repository owner"
20+
exit 0
21+
1522
- name: Request reviews based on configuration
23+
if: ${{ always() && steps.check_owner.outcome == 'skipped' }}
1624
uses: necojackarc/auto-request-review@e89da1a8cd7c8c16d9de9c6e763290b6b0e3d424 # v0.13.0
1725
with:
1826
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)