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