-
Notifications
You must be signed in to change notification settings - Fork 715
ci: auto label and milestone #9384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
+102
−0
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Yashodhan Joshi <[email protected]>
Signed-off-by: Yashodhan Joshi <[email protected]>
Contributor
|
Failed to generate code suggestions for PR |
Signed-off-by: Yashodhan Joshi <[email protected]>
Contributor
Greptile OverviewGreptile SummaryAdds GitHub Actions workflow to automatically label approved PRs and assign them to the next milestone based on version numbers.
Confidence Score: 0/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant PR as Pull Request
participant GHA as GitHub Actions
participant Script as get_next_milestone.js
participant API as GitHub API
participant GH as gh CLI
PR->>GHA: pull_request_review event (approved)
GHA->>GHA: Check if review.state == 'approved'
GHA->>GH: gh pr edit --add-label "Needs-Testing"
GH->>PR: Label added
GHA->>Script: node get_next_milestone.js
Script->>API: GET /repos/openobserve/openobserve/milestones
API-->>Script: Return milestones JSON
Script->>Script: Filter out "Backlog"
Script->>Script: Parse version numbers from titles
Script->>Script: Compare versions to find lowest
Script-->>GHA: Output milestone title
GHA->>GH: gh pr edit -m "$MILESTONE"
GH->>PR: Milestone assigned
|
Contributor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 files reviewed, 5 comments
Signed-off-by: Yashodhan Joshi <[email protected]>
Signed-off-by: Yashodhan Joshi <[email protected]>
Signed-off-by: Yashodhan Joshi <[email protected]>
Signed-off-by: Yashodhan Joshi <[email protected]>
Shrinath-O2
approved these changes
Dec 2, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See working run here https://github.com/openobserve/openobserve/actions/runs/19761555623/job/56624451400
Also check the timeline items that mention gh actions bot added the label and milestone to it.
This adds a CI which will automatically label every PR on approve and add it to the lowest open milestone (ignoring backlog)
So if current open milestones are backlog, v0.20.0, v0.20.1 , it will auto add this on approval to v0.20.0 and add
Needs-Testinglabel.