Skip to content

Commit a5bd133

Browse files
committed
MINOR: Fix missing pipe in milestone assignment script
The head -n1 command was not piped to grep output, causing all matching milestones to be captured instead of just the first one. Example failure: Assigning milestone: 19.0.0 20.0.0 '19.0.0 20.0.0' not found
1 parent ad59035 commit a5bd133

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/dev_pr_milestone.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ main() {
3737
local -r milestone=$(
3838
gh api "/repos/${repo}/milestones" |
3939
jq --raw-output '.[] | .title' |
40-
grep -E '^[0-9]+\.[0-9]+\.[0-9]+$'
41-
head -n1
40+
grep -E '^[0-9]+\.[0-9]+\.[0-9]+$' |
41+
head -n1
4242
)
4343

4444
echo "Assigning milestone: ${milestone}"

0 commit comments

Comments
 (0)