tmater opened a new issue, #993:
URL: https://github.com/apache/arrow-java/issues/993

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   ### Summary
   The `dev_pr_milestone.sh` script fails to assign a milestone when there are 
multiple open milestones matching the version pattern.
   
   ### Root Cause
   
   Missing pipe (`|`) between `grep` and `head -n1` on lines 40-41:
   
   ```bash
   grep -E '^[0-9]+\.[0-9]+\.[0-9]+$'
   head -n1
   ```
   
   This causes all matching milestones to be captured in the variable instead 
of just the first one.
   
   ### Error Output
   
   ```
   Assigning milestone: 19.0.0
   20.0.0
   '19.0.0
   20.0.0' not found
   Error: Process completed with exit code 1.
   ```
   
   ### Fix
   
   Add the missing pipe to properly chain the commands:
   
   ```bash
   grep -E '^[0-9]+\.[0-9]+\.[0-9]+$' |
   head -n1
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to