ci: add auto-assign workflow#1
Conversation
|
Note Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported. |
Reviewer's GuideAdds a GitHub Actions workflow that automatically assigns newly opened issues and pull requests to @jmrplens using the GitHub CLI and the repository’s GITHUB_TOKEN. Sequence diagram for the new auto-assign GitHub Actions workflowsequenceDiagram
actor User
participant GitHub
participant AutoAssignWorkflow
participant GitHubAPI
User->>GitHub: open issue or pull_request
GitHub-->>AutoAssignWorkflow: issues.opened / pull_request.opened
AutoAssignWorkflow->>GitHubAPI: gh api POST /repos/$REPO/issues/$NUMBER/assignees
GitHubAPI-->>GitHub: assignee jmrplens added
GitHub-->>User: issue/PR shown with assignee jmrplens
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Warning Review limit reached
More reviews will be available in 58 minutes. Learn how PR review limits work. To continue reviewing without waiting, enable usage-based billing in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- You can simplify and make the
NUMBERenv more robust by usingNUMBER: ${{ github.event.number }}, which is available for bothissuesandpull_requestevents instead of relying ongithub.event.issue.number || github.event.pull_request.number. - Since the workflow only calls the issues API, you can drop the
pull-requests: writejob permission to keep the token scope as narrow as possible.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- You can simplify and make the `NUMBER` env more robust by using `NUMBER: ${{ github.event.number }}`, which is available for both `issues` and `pull_request` events instead of relying on `github.event.issue.number || github.event.pull_request.number`.
- Since the workflow only calls the issues API, you can drop the `pull-requests: write` job permission to keep the token scope as narrow as possible.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Auto-assigns newly opened issues and PRs to @jmrplens.
Uses
gh apiwithGITHUB_TOKEN, no external dependencies.