box-ui-elements
box-ui-elements copied to clipboard
chore(mergify): clean up mergify rules
Summary by CodeRabbit
-
Chores
- Updated GitHub Actions workflow job name for improved clarity.
- Enhanced merge automation rules by refining queue and merge conditions, adding new status checks, and introducing a new automatic merge queue for pull requests targeting the master branch.
## Walkthrough
This update modifies the GitHub Actions workflow by renaming a job from "Validate" to "lint_pull_request". It also revises the `.mergify.yml` configuration, introducing a new pull request rule, refining queue and merge conditions, adjusting status checks and label requirements for automated merging. Additionally, the CODEOWNERS file was updated to add the `@box/ui-elements` team as co-owners alongside existing teams for many source and test directories.
## Changes
| File(s) | Change Summary |
|------------------------------|-------------------------------------------------------------------------------------------------|
| .github/workflows/semantic.yml| Renamed the main workflow job from "Validate" to "lint_pull_request". |
| .mergify.yml | Added a new pull request rule, refined queue and merge rules, updated status checks and conditions. |
| CODEOWNERS | Added `@box/ui-elements` as co-owner alongside existing teams for many source and test paths. |
## Sequence Diagram(s)
```mermaid
sequenceDiagram
participant PR as Pull Request
participant Mergify as Mergify Bot
participant CI as GitHub Actions
PR->>Mergify: Open PR targeting master (not draft)
Mergify->>CI: Wait for status checks (license/cla, lint_pull_request, etc.)
CI-->>Mergify: Report status check results
Mergify->>Mergify: Evaluate pull_request_rules and queue_rules
alt All conditions met
Mergify->>PR: Queue or merge PR automatically
else Conditions not met
Mergify->>PR: Take no action
end
Possibly related PRs
- box/box-ui-elements#4104: Related changes to the CODEOWNERS file updating team ownership assignments.
-
box/box-ui-elements#4142: Related modifications to
.mergify.ymlpull request queue rules and naming conventions. -
box/box-ui-elements#4118: Related adjustments to
.mergify.ymlqueue and pull request rules for automated merges.
Suggested labels
ready-to-merge
Suggested reviewers
- jpan-box
- greg-in-a-box
Poem
A rabbit hopped through YAML fields,
Tweaked the rules for smoother yields.
"Validate" now wears a linty hat,
Mergify queues—imagine that!
With checks in line and labels neat,
This merge will surely be a treat.
🐇✨
<!-- walkthrough_end -->
---
<details>
<summary>📜 Recent review details</summary>
**Configuration used: CodeRabbit UI**
**Review profile: CHILL**
**Plan: Pro**
<details>
<summary>📥 Commits</summary>
Reviewing files that changed from the base of the PR and between fff191727c35cfa4aa0be6bcd7ce349fbac0f5e7 and 1bb39863f3d8f03b044e18b025408d225fad4829.
</details>
<details>
<summary>📒 Files selected for processing (1)</summary>
* `CODEOWNERS` (1 hunks)
</details>
<details>
<summary>🚧 Files skipped from review as they are similar to previous changes (1)</summary>
* CODEOWNERS
</details>
<details>
<summary>⏰ Context from checks skipped due to timeout of 90000ms (3)</summary>
* GitHub Check: lint_test_build
* GitHub Check: Analyze (javascript-typescript)
* GitHub Check: Summary
</details>
</details>
<!-- internal state start -->
<!-- DwQgtGAEAqAWCWBnSTIEMB26CuAXA9mAOYCmGJATmriQCaQDG+Ats2bgFyQAOFk+AIwBWJBrngA3EsgEBPRvlqU0AgfFwA6NPEgQAfACgjoCEYDEZyAAUASpETZWaCrKNwSPbABsvkCiQBHbGlcSHFcLzpIACIGWHx/AAo2CiJ4ADNZAEouBkjMSGxuSBS0zL9vaWjIAHc0ZAcBZnUaejkw2A9sREowoWxMdXqNGE7rO1QMRwFKKIAWAEYAVjn0DHpUNAltLxVI9FDYXFxuRA4AenO03FhsAQ0mZnOBfAAPZ7ewbHgwEki2DC4RDnbjeLznRYrEbuSBKRAMCjwbjifBYeDreAMajSDrUDoeOKYUjIdESfBeKSMfIYdFEQrFG4eACylDK8golUQABoOvhsERYJAMPhIOlsBRGXwlLgdshnB5ePgJPAlLQNOZLABhFgAoH2RzMZyuAww1FeeSPXX8LCM8YoZDpCgsfGFHp8XD9QYy7m1eKQSLpUJoIX4GhhEWM5g9Ck4xAy8QYIhcaLCsMEex/dJcIq0bH2ePdRidBgAaxQWAEVAwcR4TpoYngqPQgd6pRIGmq7n86G7wv4koUrHYyASsKQDG6iEbGGQ/l2rXDLts6oMFkgAFVuLmF4IRA2pA0DUajCb1JFcvEkqUMtlctT6SVWTeKpFkJADAA5aaULiQ1bv9c3S4D0Bhpb0jH0YxwCgMh6HwdIcAIYgy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1uxryVHQAA3JxSUrnGMTeY0CduhUl5GLlAoMAK3fJdzjIwUR3z4sbcQAgYo6QNrbx4NQWAlHtAzkKPYqGvpdpmkcsSvTqKf0zVo/Avss395bY8IaA6J41UasaxdF0109V3WB4a56xq4LvTuOa36VrEBGF6uQRZ/aRxvv7ukdIuEXRDtrQ2pth9JrTVmo1wjptp5gIriUbu5RMDyCNRKE15PPqqMPRa8IFH1Tls5hJKiFq4IIQYkhUWrEojoUBFwKg3EJZGjo4ekiagRIUXEgYLXlp1BNRVIgbG7iO60Cah8iUYlNfQUgAAZgYEHgAnHMAAbLQMPtAABMAg2cMAAAwMCWHHhgAAOdIyeg8AHY89Yjz5HuPtBk8CDj+kBgCwBAcsooH1n6QFhh4WHnuPheg9LAYCBuYaA0Dl5IJH2vtBC8kCD3MMP6QREp/SEsEgef/eO8DzXgQ4fM+R6D+kIPtBs+54EMnuYcwSALEz/vuPKxk+Z/j+fkDtA5iZ7j2HxfS+ICDmaBjN3Huel0Caii/QQA== -->
<!-- internal state end -->
<!-- tips_start -->
---
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.
<details>
<summary>❤️ Share</summary>
- [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai)
- [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai)
- [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai)
- [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)
</details>
<details>
<summary>🪧 Tips</summary>
### Chat
There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=box/box-ui-elements&utm_content=4154):
- 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.`
- `@coderabbitai modularize this function.`
- 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.`
- `@coderabbitai help me debug CodeRabbit configuration file.`
### Support
Need help? Create a ticket on our [support page](https://www.coderabbit.ai/contact-us/support) for assistance with any issues or questions.
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.
### 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](https://docs.coderabbit.ai/finishing-touches/docstrings) for this PR.
- `@coderabbitai generate sequence diagram` to generate a sequence diagram of the changes in 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](https://docs.coderabbit.ai/guides/configure-coderabbit) 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](https://docs.coderabbit.ai) for detailed information on how to use CodeRabbit.
- Join our [Discord Community](http://discord.gg/coderabbit) to get help, request features, and share feedback.
- Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.
</details>
<!-- tips_end -->
note to self: update status check in branch protection after merge