Skip to content

Commit d44505a

Browse files
committed
Address code review comments
1 parent 3cd7ad7 commit d44505a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/prioritize-by-reactions.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Prioritize Issues by Reactions
33
on:
44
schedule:
55
- cron: '0 0 * * *' # Runs once a day at midnight UTC
6-
6+
workflow_dispatch: # Allows manual runs
77
jobs:
88
prioritize:
99
permissions:
@@ -25,7 +25,7 @@ jobs:
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"
@@ -52,7 +52,7 @@ jobs:
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"

0 commit comments

Comments
 (0)