From 676f3745f92322b6bc7fd7f303fbd0ae9d7811f9 Mon Sep 17 00:00:00 2001 From: Anket Satbhai Date: Mon, 9 Mar 2026 16:18:44 +0530 Subject: [PATCH 1/2] feat: resolve issue pr validation for fork --- .github/workflows/pr-checks.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index 3f3f939e..5f1ac4e3 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -55,17 +55,15 @@ jobs: validateSingleCommit: ${{ inputs.validateSingleCommit }} - name: 🏷️ Check PR labels - if: ${{ inputs.checkLabels && github.event.pull_request.head.repo.fork == false }} + if: ${{ inputs.checkLabels }} env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - labels=$(gh api repos/$GITHUB_REPOSITORY/issues/${{ github.event.pull_request.number }}/labels --jq '.[].name') - - if [ -z "$labels" ]; then + if [ -z "$(gh api repos/$GITHUB_REPOSITORY/issues/${{ github.event.pull_request.number }}/labels --jq '.[].name')" ]; then echo "::error::No labels found on this PR. Please add at least one label." exit 1 else - echo "PR has labels" + echo "PR has labels, validation passed." fi validate-commits: From ec67e80151e83a5230f3ab093fbbe6bda31f59d1 Mon Sep 17 00:00:00 2001 From: Anket Satbhai Date: Mon, 9 Mar 2026 16:26:33 +0530 Subject: [PATCH 2/2] feat: resolve issue pr validation for fork --- .github/workflows/pr-checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index 5f1ac4e3..fad05271 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -79,4 +79,4 @@ jobs: uses: wagoid/commitlint-github-action@v6 with: configFile: commitlint.config.cjs -... +...