From de7a86d62c69f6d7e6a1e6ac2b3fc6faea50c595 Mon Sep 17 00:00:00 2001 From: Juan Bustamante Date: Mon, 26 Jun 2023 17:28:58 -0500 Subject: [PATCH] WIP - initial version Signed-off-by: Juan Bustamante --- .github/workflows/privileged-pr-process.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/privileged-pr-process.yml b/.github/workflows/privileged-pr-process.yml index 3b783d4e6..81cccfce3 100644 --- a/.github/workflows/privileged-pr-process.yml +++ b/.github/workflows/privileged-pr-process.yml @@ -19,6 +19,17 @@ 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`); + } + var milestone = await github.rest.issues.listMilestones({ owner: context.repo.owner, repo: context.repo.repo,