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