Repository navigation
Assigning reviewers for PR #199 #1142
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PR Auto-Assignment | ||
|
Check warning on line 1 in .github/workflows/pr-assigner.yml
|
||
| run-name: "Assigning reviewers for PR #${{ github.event.pull_request.number }}" | ||
| on: | ||
| pull_request_target: | ||
| types: [opened, reopened, synchronize] | ||
| branches: | ||
| - main | ||
| permissions: | ||
| pull-requests: write | ||
| contents: read | ||
| jobs: | ||
| pr-auto-assign: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - 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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: netcracker/qubership-workflow-hub/actions/pr-assigner@27fd7674286e5f561a6fd8277f2f389ff96ddb9e # v2.6.0 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||