mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
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
This commit is contained in:
@@ -36,10 +36,10 @@ jobs:
|
|||||||
for ISSUE in $(echo $issues | jq -r '.[]'); do
|
for ISSUE in $(echo $issues | jq -r '.[]'); do
|
||||||
if [ "${{ github.ref }}" == "refs/heads/staging" ]; then
|
if [ "${{ github.ref }}" == "refs/heads/staging" ]; then
|
||||||
LABEL="✅ Done (staging)"
|
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
|
elif [ "${{ github.ref }}" == "refs/heads/release" ]; then
|
||||||
LABEL="✅ Done"
|
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
|
fi
|
||||||
echo "Added label '$LABEL' to issue #$ISSUE"
|
echo "Added label '$LABEL' (and removed '🧑💻 In Progress' if present) in issue #$ISSUE"
|
||||||
done
|
done
|
||||||
|
4
.github/workflows/pr-auto-manager.yml
vendored
4
.github/workflows/pr-auto-manager.yml
vendored
@@ -262,6 +262,6 @@ jobs:
|
|||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
for ISSUE in $(echo $final_issues | jq -r '.[]'); do
|
for ISSUE in $(echo $final_issues | jq -r '.[]'); do
|
||||||
gh issue edit $ISSUE -R ${{ github.repository }} --add-label "✅ Done (staging)"
|
gh issue edit $ISSUE -R ${{ github.repository }} --add-label "✅ Done (staging)" --remove-label "🧑💻 In Progress"
|
||||||
echo "Added label '✅ Done (staging)' to issue #$ISSUE"
|
echo "Added label '✅ Done (staging)' (and removed '🧑💻 In Progress' if present) in issue #$ISSUE"
|
||||||
done
|
done
|
||||||
|
Reference in New Issue
Block a user