diff --git a/.github/workflows/validate_pr.yml b/.github/workflows/validate_pr.yml index 9546ba4354..d05c350263 100644 --- a/.github/workflows/validate_pr.yml +++ b/.github/workflows/validate_pr.yml @@ -26,7 +26,12 @@ jobs: uses: actions/github-script@v7 with: script: | - const milestone = context.payload.pull_request.milestone; + // Fetch the PR data explicitly to ensure we have milestone info + const { data: pr } = await github.rest.pulls.get({ + owner: context.repo.owner, + repo: context.repo.repo, + pull_number: context.payload.pull_request.number + }); if (!milestone) { core.setFailed('PR must have a milestone assigned');