Skip to content

Conversation

@snovak7
Copy link
Contributor

@snovak7 snovak7 commented Aug 10, 2025

Closes #34

Summary by CodeRabbit

  • Chores
    • Introduced an automated workflow to update issue labels monthly.

@snovak7 snovak7 self-assigned this Aug 10, 2025
@snovak7 snovak7 linked an issue Aug 10, 2025 that may be closed by this pull request
@coderabbitai
Copy link

coderabbitai bot commented Aug 10, 2025

Walkthrough

A 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

Cohort / File(s) Change Summary
New Scheduled Workflow
.github/workflows/cron-update-labels.yml
Introduces a GitHub Actions workflow that runs monthly or manually to update labels via an external reusable workflow.

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
Loading

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Assessment against linked issues

Objective Addressed Explanation
Sync Labels from a Reusable Workflow from a Keystone repository (#34)

Poem

Each month at dawn, the labels bloom,
A timer ticks within the room.
With workflows borrowed from afar,
Our issues shine like guiding stars.
The rabbit hops with pride anew—
"Your labels now are fresh and true!"
🐇✨

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 details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 70d345f and 25ee4ed.

📒 Files selected for processing (1)
  • .github/workflows/cron-update-labels.yml (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/cron-update-labels.yml
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch 34-sync-labels-from-a-reusable-workflow-from-a-keystone-repository

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions bot added the dependencies/github-actions GitHub Actions Updates label Aug 10, 2025
Copy link

@coderabbitai coderabbitai bot left a 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 runs

Prevents 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

📥 Commits

Reviewing files that changed from the base of the PR and between 38c0f4f and 70d345f.

📒 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 permissions

Ensure 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

@snovak7 snovak7 merged commit 8e5b4a0 into main Aug 10, 2025
4 checks passed
@snovak7 snovak7 deleted the 34-sync-labels-from-a-reusable-workflow-from-a-keystone-repository branch August 10, 2025 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies/github-actions GitHub Actions Updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sync Labels from a Reusable Workflow from a Keystone repository

2 participants