comment out the milestone check

This commit is contained in:
Guillaume Ballet 2025-08-22 12:53:08 +02:00
parent ffcc8e8d9e
commit 0647bdb555

View file

@ -22,20 +22,20 @@ jobs:
console.log('✅ PR title format is valid'); console.log('✅ PR title format is valid');
- name: Check Milestone Assignment # - name: Check Milestone Assignment
uses: actions/github-script@v7 # uses: actions/github-script@v7
with: # with:
script: | # script: |
// Fetch the PR data explicitly to ensure we have milestone info # // Fetch the PR data explicitly to ensure we have milestone info
const { data: pr } = await github.rest.pulls.get({ # const { data: pr } = await github.rest.pulls.get({
owner: context.repo.owner, # owner: context.repo.owner,
repo: context.repo.repo, # repo: context.repo.repo,
pull_number: context.payload.pull_request.number # pull_number: context.payload.pull_request.number
}); # });
if (!pr.milestone) { # if (!pr.milestone) {
core.setFailed('PR must have a milestone assigned'); # core.setFailed('PR must have a milestone assigned');
return; # return;
} # }
console.log(`✅ Milestone "${pr.milestone.title}" is assigned`); # console.log(`✅ Milestone "${pr.milestone.title}" is assigned`);