From 919a856028c8b94c43fa9a2f662578ab20835e35 Mon Sep 17 00:00:00 2001 From: pinpong Date: Mon, 6 Apr 2026 10:38:09 +0800 Subject: [PATCH] chore(ci): update pr source validation --- .github/workflows/validate_pr_source.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/validate_pr_source.yml b/.github/workflows/validate_pr_source.yml index b977877..7be4fb5 100644 --- a/.github/workflows/validate_pr_source.yml +++ b/.github/workflows/validate_pr_source.yml @@ -21,5 +21,8 @@ jobs: echo "Closing PR from invalid source branch: ${{ github.event.pull_request.head.ref }}" gh pr comment ${{ github.event.pull_request.number }} \ + --repo ${{ github.repository }} \ --body "This PR targets **main**, but it was created from **${{ github.event.pull_request.head.ref }}**. Only PRs from **dev** are allowed." - gh pr close ${{ github.event.pull_request.number }} + + gh pr close ${{ github.event.pull_request.number }} \ + --repo ${{ github.repository }}