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

97040a98a08d6814d27709320b8ac7cf20aa8ba9

Wolfsblvt <wolfsblvt@gmail.com>

2 files changed, +5 -5Showing whitespace changes
.github/workflows/issues-updates-on-merge.yml+3 -3
@@ -36,10 +36,10 @@ jobs:
36 for ISSUE in $(echo $issues | jq -r '.[]'); do36 for ISSUE in $(echo $issues | jq -r '.[]'); do
37 if [ "${{ github.ref }}" == "refs/heads/staging" ]; then37 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" ]; then40 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 fi43 fi
44 echo "Added label '$LABEL' to issue #$ISSUE"44 echo "Added label '$LABEL' (and removed 'πŸ§‘β€πŸ’» In Progress' if present) in issue #$ISSUE"
45 done45 done
.github/workflows/pr-auto-manager.yml+2 -2
@@ -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 '.[]'); do264 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 done267 done