Skip to content

Commit a8d20a5

Browse files
CopilotArash-Sabet
andcommitted
Add explicit null check for better clarity and robustness
Co-authored-by: Arash-Sabet <26050123+Arash-Sabet@users.noreply.github.com>
1 parent 6730d54 commit a8d20a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/auto-assign.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
run:
99
runs-on: ubuntu-latest
1010
# Skip this workflow for pull requests from forks as GITHUB_TOKEN lacks write permissions
11-
if: github.event_name == 'issues' || github.event.pull_request.head.repo.full_name == github.repository
11+
if: github.event_name == 'issues' || (github.event.pull_request != null && github.event.pull_request.head.repo.full_name == github.repository)
1212
permissions:
1313
issues: write
1414
pull-requests: write

0 commit comments

Comments
 (0)