From a471d5d048652f97fb0f49782861f7e523f8bb39 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 16 Dec 2025 16:15:52 +0000 Subject: [PATCH 1/4] Initial plan From 82e6ee7ce30a3830edd833c770728f36bf554c7c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 16 Dec 2025 16:20:00 +0000 Subject: [PATCH 2/4] Fix auto-assign workflow to skip fork PRs Co-authored-by: Arash-Sabet <26050123+Arash-Sabet@users.noreply.github.com> --- .github/workflows/auto-assign.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml index 4cb7119..e4e8309 100644 --- a/.github/workflows/auto-assign.yml +++ b/.github/workflows/auto-assign.yml @@ -7,6 +7,8 @@ on: jobs: run: runs-on: ubuntu-latest + # Skip this workflow for pull requests from forks as GITHUB_TOKEN lacks write permissions + if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'issues' permissions: issues: write pull-requests: write From 6730d544630d7e69a2f8fff71a2b0e05be6630b4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 16 Dec 2025 16:22:01 +0000 Subject: [PATCH 3/4] Reorder condition to prevent null reference for issue events Co-authored-by: Arash-Sabet <26050123+Arash-Sabet@users.noreply.github.com> --- .github/workflows/auto-assign.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml index e4e8309..b8fc8d9 100644 --- a/.github/workflows/auto-assign.yml +++ b/.github/workflows/auto-assign.yml @@ -8,7 +8,7 @@ jobs: run: runs-on: ubuntu-latest # Skip this workflow for pull requests from forks as GITHUB_TOKEN lacks write permissions - if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'issues' + if: github.event_name == 'issues' || github.event.pull_request.head.repo.full_name == github.repository permissions: issues: write pull-requests: write From a8d20a592e2e8c26c76ad74c1bd3a36d95e08815 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 16 Dec 2025 16:23:24 +0000 Subject: [PATCH 4/4] Add explicit null check for better clarity and robustness Co-authored-by: Arash-Sabet <26050123+Arash-Sabet@users.noreply.github.com> --- .github/workflows/auto-assign.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml index b8fc8d9..917851c 100644 --- a/.github/workflows/auto-assign.yml +++ b/.github/workflows/auto-assign.yml @@ -8,7 +8,7 @@ jobs: run: runs-on: ubuntu-latest # Skip this workflow for pull requests from forks as GITHUB_TOKEN lacks write permissions - if: github.event_name == 'issues' || github.event.pull_request.head.repo.full_name == github.repository + if: github.event_name == 'issues' || (github.event.pull_request != null && github.event.pull_request.head.repo.full_name == github.repository) permissions: issues: write pull-requests: write