Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions .github/workflows/pr-assigner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request_target:
types: [opened, reopened, synchronize]
branches:
- main
- main

permissions:
pull-requests: write
Expand All @@ -13,11 +13,19 @@ permissions:
jobs:
pr-auto-assign:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Check if PR is from a fork
run: |
if [ "${{ github.event.pull_request.head.repo.full_name }}" != "${{ github.event.pull_request.base.repo.full_name }}" ]; then
echo "⚠️ Pull request is from a fork — skipping assignee assignment (no write permissions)."
exit 0
fi

- uses: actions/checkout@v5
with:
persist-credentials: false

- uses: netcracker/qubership-workflow-hub/actions/pr-assigner@main
with:
assignees-count: 2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: netcracker/qubership-workflow-hub/actions/pr-assigner@b575bad3a0959c4e883bc34f9d055ff07fde2dbd #2.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading