-
Notifications
You must be signed in to change notification settings - Fork 1
Add GitHub Actions workflow for monthly label updates #35
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
Add GitHub Actions workflow for monthly label updates #35
Conversation
WalkthroughA new GitHub Actions workflow, "Monthly Label Timer," has been added. This workflow is scheduled to run monthly and can also be triggered manually. It executes a reusable workflow from an external repository to automate the updating of issue labels, inheriting repository secrets and using minimal permissions. Changes
Sequence Diagram(s)sequenceDiagram
participant GitHub Scheduler
participant Workflow (Monthly Label Timer)
participant External Reusable Workflow (escendit/keystone)
participant Issues API
GitHub Scheduler->>Workflow (Monthly Label Timer): Trigger (monthly or manual)
Workflow (Monthly Label Timer)->>External Reusable Workflow (escendit/keystone): Invoke utility-update-labels.yml
External Reusable Workflow (escendit/keystone)->>Issues API: Update labels
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Assessment against linked issues
Poem
Note 🔌 MCP (Model Context Protocol) integration is now available in Early Access!Pro users can now connect to remote MCP servers under the Integrations page to get reviews and chat conversations that understand additional development context. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
✨ Finishing Touches🧪 Generate unit tests
🪧 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 comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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/workflows/cron-update-labels.yml (2)
7-9: Align comment with cron expression (1:27 vs 1:28 UTC)The comment says 1:27 UTC, but cron is set to 01:28. Fix the comment or the cron to match.
- # Every first day of the month at 1:27 UTC + # Every first day of the month at 1:28 UTC
16-21: Optional: add concurrency to avoid overlapping manual/scheduled runsPrevents concurrent runs (e.g., if someone triggers workflow_dispatch near the cron time).
jobs: +concurrency: + group: labels-monthly-${{ github.ref }} + cancel-in-progress: true # Runs reusable workflow (utility-update-labels.yml on the main branch) from keystone repository create-labels:
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.github/workflows/cron-update-labels.yml(1 hunks)
🔇 Additional comments (1)
.github/workflows/cron-update-labels.yml (1)
12-14: Verify cross-repo reusable workflow preconditions and required permissionsEnsure the called workflow supports on: workflow_call and that org/repo settings allow calling it. Confirm that issues: write is sufficient for all label operations it performs (it usually is for both issues and PRs, since PRs are issues).
Please verify:
- escendit/keystone/.github/workflows/utility-update-labels.yml defines on: workflow_call.
- The keystone repo visibility and org settings permit reuse from this repo.
- No additional permissions (e.g., pull-requests: write) are required by the called workflow steps.
Also applies to: 20-21
Closes #34
Summary by CodeRabbit