Skip to content

Commit 41efc0d

Browse files
authored
Merge pull request #339 from Umplify/copilot/fix-auto-assign-issue
Fix auto-assign workflow for pull requests from forks
2 parents fc5437d + a8d20a5 commit 41efc0d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/auto-assign.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
jobs:
88
run:
99
runs-on: ubuntu-latest
10+
# Skip this workflow for pull requests from forks as GITHUB_TOKEN lacks write permissions
11+
if: github.event_name == 'issues' || (github.event.pull_request != null && github.event.pull_request.head.repo.full_name == github.repository)
1012
permissions:
1113
issues: write
1214
pull-requests: write

0 commit comments

Comments
 (0)