-
Notifications
You must be signed in to change notification settings - Fork 4.9k
chore: create workflow to auto add labels to issues #10430
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
Conversation
|
Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. 📝 WalkthroughWalkthroughAdds a new GitHub labeler configuration at Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes ✨ Finishing Touches🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
Status, Documentation and Community
|
Security Scan Results for PRDocker Image Scan Results
Source Code Scan Results🎉 No vulnerabilities found! |
1c87095 to
53a5722
Compare
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.
Pull Request Overview
Creates a GitHub workflow to automatically label issues based on their title and body content. The workflow triggers when issues are opened and uses regex patterns to match appropriate labels.
- Adds automated issue labeling workflow using GitHub's issue-labeler action
- Configures comprehensive label mapping for various Appwrite product areas and features
- Sets up appropriate permissions and debugging for the workflow
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| .github/workflows/auto-label-issue.yml | GitHub workflow configuration for automatic issue labeling |
| .github/labeler.yml | Label mapping configuration with regex patterns for different product areas |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
53a5722 to
ba97cfb
Compare
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
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.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
.github/labeler.yml (1)
1-84: Add missing labels referenced in.github/labeler.yml. The following labels are absent and must be created before merging:
- api / graphql
- product / assistant
- product / locale
- product / avatars
- product / sites
- sdk / cli
Verify labeler workflow config. Ensure your
.github/workflows/labeler.ymlusesgithub/issue-labeler v3.4withinclude-title: 1(and considersync-labels: 1for proper de-labeling).
🧹 Nitpick comments (7)
.github/labeler.yml (7)
1-4: Broaden auth matches; drop redundant term.Covers core terms well, but will miss common variants (sign-in/up, passkeys, OTP, WebAuthn). Also,
oauth2is redundant becauseoauthmatches it. Suggest updating the regex.- - "(auth|session|login|logout|register|2fa|mfa|users|teams|memberships|invite|oauth|oauth2|sso|jwt)" + - "(auth|session|login|signin|sign-in|logout|register|signup|sign-up|password|reset|recovery|verification|verify|2fa|mfa|otp|totp|webauthn|passkey|users?|teams?|memberships?|invitation|invite|oauth|sso|jwt)"Reference config format for this action looks correct. (github.com)
6-8: Handle singular ‘websocket’.Add singular to avoid missing “websocket connection” in titles/bodies.
- - "(realtime|subscribe|websockets)" + - "(realtime|subscribe|websocket|websockets)"
49-52: Avoid false positives with “push” (push notifications vs git push).
pushalone will over-label messaging issues as VCS. Replace with more VCS-specific terms.- - "(repo|push|vcs|repository)" + - "(git|repo|repository|commit|branch|merge|pull request|pr|tag|release|vcs)"
73-76: De-duplicate domains/SSL between “domains” and “sites”.This prevents double-labeling for the same keywords.
- - "(site|web|hosting|domain|ssl|certificate|nextjs|nuxt|react|angular|vue|svelte|astro)" + - "(site|web|hosting|nextjs|nuxt|react|angular|vue|svelte|astro)"
69-72: “icon” is very broad; prefer avatar-centric terms.Reduces accidental matches on generic UI icon issues.
- - "(avatar|initial|flag|icon)" + - "(avatar(s)?|initial(s)?|flag(s)?|favicon)"
81-83: Support all self-hosting spellings.- - "(self-host|self host)" + - "(self[- ]?host(?:ed)?)"
9-12: Optional: tighten “console” scope.If you see false positives from “browser console” mentions, consider anchoring to “Appwrite Console” explicitly:
(appwrite console|console appwrite|console UI). Otherwise current regex is fine.
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
💡 Knowledge Base configuration:
- MCP integration is disabled by default for public repositories
- Jira integration is disabled by default for public repositories
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (2)
.github/labeler.yml(1 hunks).github/workflows/auto-label-issue.yml(1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
- .github/workflows/auto-label-issue.yml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (17)
- GitHub Check: Benchmark
- GitHub Check: E2E Service Test (Site Screenshots)
- GitHub Check: E2E Service Test (Messaging)
- GitHub Check: E2E Service Test (VCS)
- GitHub Check: E2E Service Test (Migrations)
- GitHub Check: E2E Service Test (Proxy)
- GitHub Check: E2E Service Test (Sites)
- GitHub Check: E2E Service Test (Webhooks)
- GitHub Check: E2E Service Test (GraphQL)
- GitHub Check: E2E Service Test (Storage)
- GitHub Check: E2E Service Test (Realtime)
- GitHub Check: E2E Service Test (Teams)
- GitHub Check: E2E Service Test (Databases)
- GitHub Check: E2E Service Test (Account)
- GitHub Check: E2E Service Test (Functions)
- GitHub Check: E2E Service Test (FunctionsSchedule)
- GitHub Check: E2E General Test
🔇 Additional comments (1)
.github/labeler.yml (1)
1-84: Overall: good coverage and correct format.Config structure matches github/issue-labeler expectations; nice descriptive comments. (github.com)
✨ Benchmark results
⚡ Benchmark Comparison
|
What does this PR do?
Create a GitHub workflow to automatically add labels to a GitHub issue based on title and body. The action uses
.github/labeler.ymlmatch a label using a regexp.Test Plan
Tested using act:
with event.json
added "product / auth", "product / functions", and "sdk / cli" to issue appwrite/sdk-for-cli#194:
Related PRs and Issues
None
Checklist