-
Notifications
You must be signed in to change notification settings - Fork 18
feat: submit Leave Request form #71
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
WalkthroughA new GitHub issue template for leave requests has been introduced, and the leave policy documentation has been restructured. The template includes fields for leave type, dates, working days, reason, and backup person with validation requirements. The policy documentation now presents entitlement, post-submission workflow, and payout rules in tabular format. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Suggested reviewers
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ 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 |
Time Submission Status
|
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: 1
🧹 Nitpick comments (2)
.github/ISSUE_TEMPLATE/leave_request.yml (2)
41-47: Working days calculation is manual; consider verification strategy.The template asks users to count working days (Mon–Fri) manually, but provides no validation that the count matches the date range. This creates risk of disputes or errors.
Clarify in HR review guidance:
- Should HR verify the count against the actual date range?
- How are public holidays handled?
- Will a miscalculation be flagged or auto-corrected?
Alternatively, consider adding a note to the form:
- type: input id: total_working_days attributes: label: Total Working Days Requested - description: Count only Mon–Fri + description: Count only Mon–Fri (excluding public holidays). HR will verify against the date range. placeholder: 7
72-78: Backup person marked required for all leave types, including emergency.The
backup_personfield is required (line 78), but emergency leave scenarios may not allow time to arrange or inform a backup person. Consider whether this field should be optional for emergency leave or if the policy explicitly requires backup notification for all leave types.If emergency leave should have backup coverage, clarify this in the form intro. If not, consider:
- type: input id: backup_person attributes: label: Backup / Coverage Person description: Who will cover your responsibilities? (@username). Required for all leave except emergencies. placeholder: "@jane-doe" validations: - required: true + required: falseThen add a note to the confirmation section or intro clarifying expectations for emergency scenarios.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
.github/ISSUE_TEMPLATE/leave_request.yml(1 hunks)docs/LEAVE_POLICY.md(1 hunks)
🔇 Additional comments (4)
docs/LEAVE_POLICY.md (1)
10-27: Policy structure and entitlement rules are clear and well-presented.The tabular format significantly improves readability. The consolidated description (line 17-18) effectively clarifies that all 14 days cover vacation, personal, sick, and public holidays. The personal leave year definition (365 days from agreement) is unambiguous, and the link to the leave request form (line 26) integrates the new template well.
.github/ISSUE_TEMPLATE/leave_request.yml (3)
23-29: Date input fields lack format enforcement; clarify validation approach.The date input fields (start_date, end_date) use text input with YYYY-MM-DD placeholders, but GitHub issue forms support different input types and validations, and the template doesn't enforce format validation. Users could enter dates in other formats (e.g., 12/15/2025), risking parsing errors or ambiguity during HR review.
Clarify how HR will handle malformed dates, or consider adding a helper note:
- type: input id: start_date attributes: label: Start Date (inclusive) description: First day you will be off (YYYY-MM-DD) placeholder: 2025-07-15 + validations: + required: true + pattern: '^\d{4}-\d{2}-\d{2}$'Verify that your issue template processor supports the
patternfield; if not, document the expected format clearly in HR review guidance.Also applies to: 32-38
1-20: Template metadata and form structure are well-designed.The template follows GitHub issue form standards correctly. Metadata (name, description, title pattern, labels, assignees) is appropriate. The intro note (line 11) clearly communicates the 14-day advance requirement and exemptions for sick/emergency leave, aligning well with the policy document. The full_name field is a good anchor for identification.
50-69: Leave type and reason fields are well-scoped.The leave type dropdown includes all necessary options (Paid, Sick, Unpaid, Emergency) with a sensible default. The reason field respects privacy by explicitly noting "No medical details required for sick leave" and includes helpful example placeholders. Both fields support the policy's intent to streamline leave requests.
resolves https://github.com/holdex/hr-internal/issues/700
Summary by CodeRabbit
Release Notes
New Features
Documentation
✏️ Tip: You can customize this high-level summary in your review settings.