diff --git a/.github/workflows/privileged-pr-process.yml b/.github/workflows/privileged-pr-process.yml index b1bcd376c..41fcee8e2 100644 --- a/.github/workflows/privileged-pr-process.yml +++ b/.github/workflows/privileged-pr-process.yml @@ -19,6 +19,18 @@ jobs: id: assets with: script: | + var current = await github.rest.issues.get({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.payload.number, + }) + .then(result => result.milestone) + + if (current) { + console.log(`Issue already has a milestone assigned, skipping add milestone step`); + return + } + var milestone = await github.rest.issues.listMilestones({ owner: context.repo.owner, repo: context.repo.repo,