mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 14:16:44 +00:00
rework hallucinated milestone check
This commit is contained in:
parent
d4f8daec22
commit
3c8a0a0e04
1 changed files with 6 additions and 1 deletions
7
.github/workflows/validate_pr.yml
vendored
7
.github/workflows/validate_pr.yml
vendored
|
|
@ -26,7 +26,12 @@ jobs:
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v7
|
||||||
with:
|
with:
|
||||||
script: |
|
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) {
|
if (!milestone) {
|
||||||
core.setFailed('PR must have a milestone assigned');
|
core.setFailed('PR must have a milestone assigned');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue