File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Prioritize Issues by Reactions
33on :
44 schedule :
55 - cron : ' 0 0 * * *' # Runs once a day at midnight UTC
6-
6+ workflow_dispatch : # Allows manual runs
77jobs :
88 prioritize :
99 permissions :
2525 BUG_MEDIUM : 5
2626 FEATURE_MEDIUM : 25
2727 run : |
28- issue_numbers=$(gh issue list -R "$REPO" --state open --json number -q '.[].number')
28+ issue_numbers=$(gh issue list -R "$REPO" --state open --limit 1000 -- json number -q '.[].number')
2929
3030 for ISSUE in $issue_numbers; do
3131 echo "🔍 Checking Issue #$ISSUE"
5252 priority="Priority - 3"
5353 fi
5454 echo "👉 Issue #$ISSUE has $total reactions — Assigning label: $priority"
55- elif echo "$labels" | grep -q "Type:Feature" || "$labels" | grep -q "feature-request"; then
55+ elif echo "$labels" | grep -q "Type:Feature" || echo "$labels" | grep -q "feature-request"; then
5656 echo " ✨ Feature request detected"
5757 if [ "$total" -ge "$FEATURE_MEDIUM" ]; then
5858 priority="Priority - 1"
You can’t perform that action at this time.
0 commit comments