Title: Milestone assignment script fails when multiple milestones exist · Issue #993 · apache/arrow-java · GitHub
Open Graph Title: Milestone assignment script fails when multiple milestones exist · Issue #993 · apache/arrow-java
X Title: Milestone assignment script fails when multiple milestones exist · Issue #993 · apache/arrow-java
Description: 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: grep -E '^[0-9]+\.[0-9]+\.[0-9...
Open Graph Description: 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 lin...
X Description: 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 lin...
Opengraph URL: https://github.com/apache/arrow-java/issues/993
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Milestone assignment script fails when multiple milestones exist","articleBody":"### Summary\nThe `dev_pr_milestone.sh` script fails to assign a milestone when there are multiple open milestones matching the version pattern.\n\n### Root Cause\n\nMissing pipe (`|`) between `grep` and `head -n1` on lines 40-41:\n\n```bash\ngrep -E '^[0-9]+\\.[0-9]+\\.[0-9]+$'\nhead -n1\n```\n\nThis causes all matching milestones to be captured in the variable instead of just the first one.\n\n### Error Output\n\n```\nAssigning milestone: 19.0.0\n20.0.0\n'19.0.0\n20.0.0' not found\nError: Process completed with exit code 1.\n```\n\n### Fix\n\nAdd the missing pipe to properly chain the commands:\n\n```bash\ngrep -E '^[0-9]+\\.[0-9]+\\.[0-9]+$' |\nhead -n1\n```","author":{"url":"https://github.com/tmater","@type":"Person","name":"tmater"},"datePublished":"2026-01-28T13:53:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/993/arrow-java/issues/993"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d98b108a-cca5-31aa-f394-efbbec9e4fab |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BF00:3C8683:1C86D7C:26FE820:6A4F25B3 |
| html-safe-nonce | fa32e5ddeadfdb0875d9002874013ac73f8c4878d007bbc9f9bf171e67957ef6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjAwOjNDODY4MzoxQzg2RDdDOjI2RkU4MjA6NkE0RjI1QjMiLCJ2aXNpdG9yX2lkIjoiODkyNTgxNTA1NTEwNDAyNjAzNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 118cd9943fc3ba9cb11af2af5f5839b415bef1e8e070db41fdbc5d5864502a88 |
| hovercard-subject-tag | issue:3865569684 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/apache/arrow-java/993/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3992080cd50e32f9d0557d3a1561029520ae7bb93f5ed83a22490a4429f27bf2/apache/arrow-java/issues/993 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3992080cd50e32f9d0557d3a1561029520ae7bb93f5ed83a22490a4429f27bf2/apache/arrow-java/issues/993 |
| og:image:alt | 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 lin... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tmater |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| go-import | github.com/apache/arrow-java git https://github.com/apache/arrow-java.git |
| octolytics-dimension-user_id | 47359 |
| octolytics-dimension-user_login | apache |
| octolytics-dimension-repository_id | 893682219 |
| octolytics-dimension-repository_nwo | apache/arrow-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 893682219 |
| octolytics-dimension-repository_network_root_nwo | apache/arrow-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b8f23afb982271f1b22258a94aede67a6b77760 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width