Skip to content

Commit

Permalink
ci(github): don't stale issues with 'milestone'
Browse files Browse the repository at this point in the history
  • Loading branch information
lobkovilya committed Oct 8, 2024
1 parent c543158 commit 471d704
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/wfc_lifecycle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ jobs:
before=`date -d '${{ inputs.daysBeforeStale }} days ago' --iso-8601`
echo "Getting all issues untouched since: $before"
issues=`gh issue list -S "-label:${{ inputs.staleLabel }} updated:<$before" -s open -R ${{ github.repository }} --json number -t '{{range .}}{{.number}} {{end}}'`
issues=`gh issue list -S "-label:${{ inputs.staleLabel }} updated:<$before" -s open -R ${{ github.repository }} --json number,milestone --jq '[.[] | select(.milestone == null) | .number] | join(" ")'`
echo "Updating `echo $issues | wc -w` issues"
for issue in $issues; do
gh issue edit $issue --add-label ${{ inputs.staleLabel }} -R ${{ github.repository }}
Expand Down

0 comments on commit 471d704

Please sign in to comment.