This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-java.git
The following commit(s) were added to refs/heads/main by this push:
new ce1f3d75b GH-993: Fix missing pipe in milestone assignment script
(#992)
ce1f3d75b is described below
commit ce1f3d75b25038af068b62cb9ebd35817b7a04a3
Author: Tamas Mate <[email protected]>
AuthorDate: Wed Jan 28 22:58:30 2026 +0100
GH-993: Fix missing pipe in milestone assignment script (#992)
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
```
Closes #993
---
.github/workflows/dev_pr_milestone.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/dev_pr_milestone.sh
b/.github/workflows/dev_pr_milestone.sh
index b6876b4b0..4a77eb1f7 100755
--- a/.github/workflows/dev_pr_milestone.sh
+++ b/.github/workflows/dev_pr_milestone.sh
@@ -37,8 +37,8 @@ main() {
local -r milestone=$(
gh api "/repos/${repo}/milestones" |
jq --raw-output '.[] | .title' |
- grep -E '^[0-9]+\.[0-9]+\.[0-9]+$'
- head -n1
+ grep -E '^[0-9]+\.[0-9]+\.[0-9]+$' |
+ head -n1
)
echo "Assigning milestone: ${milestone}"