From 97655a291ab0912f262d2a2a6bd1b67741866a0c Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Sun, 20 Oct 2024 15:44:49 -0500 Subject: [PATCH] =?UTF-8?q?Revert=20"Add=20milestone=20to=20a=20closed=20i?= =?UTF-8?q?ssue=20that=20has=20a=20merged=20PR=20fix=20automaticall?= =?UTF-8?q?=E2=80=A6"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 8812072f065be283df3e9a81f3945d0364f2f247. --- .github/workflows/milestone.yml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/.github/workflows/milestone.yml b/.github/workflows/milestone.yml index 7a4d483ee1..1897f2f617 100644 --- a/.github/workflows/milestone.yml +++ b/.github/workflows/milestone.yml @@ -1,11 +1,8 @@ # Description: -# - Add milestone to a merged PR automatically -# - Add milestone to a closed issue that has a merged PR fix (if any) +# - Update milestone of a merged PR name: Milestone Action on: - issues: - types: [closed] pull_request_target: types: [closed] @@ -13,18 +10,9 @@ jobs: update-milestone: runs-on: ubuntu-latest name: Milestone Update + if: ${{github.event.pull_request.merged == true}} steps: - - name: Set Milestone for PR + - name: Set Milestone uses: hustcer/milestone-action@main - if: github.event.pull_request.merged == true - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - # Bind milestone to closed issue that has a merged PR fix - - name: Set Milestone for Issue - uses: hustcer/milestone-action@main - if: github.event.issue.state == 'closed' - with: - action: bind-issue env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}