From 3c8a0a0e0424b20ad4f7004e4754ca0f12e2f227 Mon Sep 17 00:00:00 2001 From: Guillaume Ballet <3272758+gballet@users.noreply.github.com> Date: Fri, 22 Aug 2025 09:40:09 +0200 Subject: [PATCH] rework hallucinated milestone check --- .github/workflows/validate_pr.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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');