Remove 'In Progress' label when marking issues as done 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
| @@ -36,10 +36,10 @@ jobs: | |||
| 36 | for ISSUE in $(echo $issues | jq -r '.[]'); do | 36 | for ISSUE in $(echo $issues | jq -r '.[]'); do |
| 37 | if [ "${{ github.ref }}" == "refs/heads/staging" ]; then | 37 | if [ "${{ github.ref }}" == "refs/heads/staging" ]; then |
| 38 | LABEL="β Done (staging)" | 38 | LABEL="β Done (staging)" |
| 39 | gh issue edit $ISSUE -R ${{ github.repository }} --add-label "$LABEL" | 39 | gh issue edit $ISSUE -R ${{ github.repository }} --add-label "$LABEL" --remove-label "π§βπ» In Progress" |
| 40 | elif [ "${{ github.ref }}" == "refs/heads/release" ]; then | 40 | elif [ "${{ github.ref }}" == "refs/heads/release" ]; then |
| 41 | LABEL="β Done" | 41 | LABEL="β Done" |
| 42 | gh issue edit $ISSUE -R ${{ github.repository }} --add-label "$LABEL" | 42 | gh issue edit $ISSUE -R ${{ github.repository }} --add-label "$LABEL" --remove-label "π§βπ» In Progress" |
| 43 | fi | 43 | fi |
| 44 | echo "Added label '$LABEL' to issue #$ISSUE" | 44 | echo "Added label '$LABEL' (and removed 'π§βπ» In Progress' if present) in issue #$ISSUE" |
| 45 | done | 45 | done |
| @@ -262,6 +262,6 @@ jobs: | |||
| 262 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | 262 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 263 | run: | | 263 | run: | |
| 264 | for ISSUE in $(echo $final_issues | jq -r '.[]'); do | 264 | for ISSUE in $(echo $final_issues | jq -r '.[]'); do |
| 265 | gh issue edit $ISSUE -R ${{ github.repository }} --add-label "β Done (staging)" | 265 | gh issue edit $ISSUE -R ${{ github.repository }} --add-label "β Done (staging)" --remove-label "π§βπ» In Progress" |
| 266 | echo "Added label 'β Done (staging)' to issue #$ISSUE" | 266 | echo "Added label 'β Done (staging)' (and removed 'π§βπ» In Progress' if present) in issue #$ISSUE" |
| 267 | done | 267 | done |