From 97040a98a08d6814d27709320b8ac7cf20aa8ba9 Mon Sep 17 00:00:00 2001 From: Wolfsblvt Date: Fri, 28 Mar 2025 01:58:22 +0100 Subject: [PATCH] Remove 'In Progress' label when marking issues as done MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automatically removes the '🧑‍💻 In Progress' label while adding completion labels to keep issue tracking clean and accurate after merging. Updates log messages to reflect both label additions and removals consistently across workflows --- .github/workflows/issues-updates-on-merge.yml | 6 +++--- .github/workflows/pr-auto-manager.yml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/issues-updates-on-merge.yml b/.github/workflows/issues-updates-on-merge.yml index 3efc9b37f..ddd76b459 100644 --- a/.github/workflows/issues-updates-on-merge.yml +++ b/.github/workflows/issues-updates-on-merge.yml @@ -36,10 +36,10 @@ jobs: for ISSUE in $(echo $issues | jq -r '.[]'); do if [ "${{ github.ref }}" == "refs/heads/staging" ]; then LABEL="✅ Done (staging)" - gh issue edit $ISSUE -R ${{ github.repository }} --add-label "$LABEL" + gh issue edit $ISSUE -R ${{ github.repository }} --add-label "$LABEL" --remove-label "🧑‍💻 In Progress" elif [ "${{ github.ref }}" == "refs/heads/release" ]; then LABEL="✅ Done" - gh issue edit $ISSUE -R ${{ github.repository }} --add-label "$LABEL" + gh issue edit $ISSUE -R ${{ github.repository }} --add-label "$LABEL" --remove-label "🧑‍💻 In Progress" fi - echo "Added label '$LABEL' to issue #$ISSUE" + echo "Added label '$LABEL' (and removed '🧑‍💻 In Progress' if present) in issue #$ISSUE" done diff --git a/.github/workflows/pr-auto-manager.yml b/.github/workflows/pr-auto-manager.yml index cf247ff9d..005fa8da6 100644 --- a/.github/workflows/pr-auto-manager.yml +++ b/.github/workflows/pr-auto-manager.yml @@ -262,6 +262,6 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | for ISSUE in $(echo $final_issues | jq -r '.[]'); do - gh issue edit $ISSUE -R ${{ github.repository }} --add-label "✅ Done (staging)" - echo "Added label '✅ Done (staging)' to issue #$ISSUE" + gh issue edit $ISSUE -R ${{ github.repository }} --add-label "✅ Done (staging)" --remove-label "🧑‍💻 In Progress" + echo "Added label '✅ Done (staging)' (and removed '🧑‍💻 In Progress' if present) in issue #$ISSUE" done