Skip to content
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

[pull] master from JetBrains:master #200

Merged
merged 52 commits into from
Feb 21, 2025
Merged

[pull] master from JetBrains:master #200

merged 52 commits into from
Feb 21, 2025

Conversation

pull[bot]
Copy link

@pull pull bot commented Feb 21, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.1)

Can you help keep this open source service alive? 💖 Please sponsor : )

Summary by Sourcery

This pull request introduces new features and enhancements related to pull/merge request creation notifications, auto-test toolbar, and JPMS module access checks. It also includes performance improvements and bug fixes for the debugger.

New Features:

  • Adds actions to push notifications to open existing pull/merge requests or create new ones for GitHub and GitLab.
  • Adds a floating toolbar to the editor for auto-test status in Java projects.

Bug Fixes:

  • Fixes a bug where the debugger could deadlock when awaiting a CompletableFuture on the Debugger Manager Thread (DMT).

Enhancements:

  • Refactors JPMS module access checks in JavaPlatformModuleSystem to improve code clarity and correctness.
  • Improves the performance of the debugger by caching helper classes and using asynchronous operations.
  • Improves the performance of the debugger by avoiding deadlocks when awaiting CompletableFuture on DMT.

CI:

  • Adds MAVEN_IN_DOCKER_INTEGRATION_TESTS test group.

FredyH and others added 30 commits February 21, 2025 13:41
^KTIJ-32943 fixed

GitOrigin-RevId: 323e1b145eb9dbf3aaa092a2b9b96f5c99902470
KTIJ-32943

GitOrigin-RevId: 41af496b58fb5b77fe2cb301fc0a145557fba0f8
KTIJ-32943

GitOrigin-RevId: 9523a3e1d9ad496c826019b1f504041c3e5e1d4c
GitOrigin-RevId: 9ffcd59ab6810970b0f595fe9e1a721f83997812
…the thin client

GitOrigin-RevId: 0fe2b568340e3f1a64b20241bfd22d43c8537570
…perty to the external system testFramework module

GitOrigin-RevId: 76271ca1eb0695c1bcab18793b66ce46b95e110b
…st timeout

The ExternalSystemModuleDataIndexTestCase.importData function has unpredicated duration due to the high number of integration points.
  * ActionManager
  * ProjectDataService and WorkspaceDataService
  * ProjectDataImportListener

GitOrigin-RevId: 696eae99f037a94a9fa565d85649a379be261e08
Enhanced notification actions to support detecting and opening existing pull requests directly from the GitHub plugin. If an existing PR is found, the corresponding tab in the tool window is opened instead of prompting to create a new one. This ensures better alignment of actions with repository context.

closes #2949

GitOrigin-RevId: 9ad0b9c09db803d701248659f04de4483d4ca083
…ount of linear scrollings

GitOrigin-RevId: dbba1c16da85edfeef71239ba484558800d6d949
GitOrigin-RevId: b28e59d470faefd3133384e45e876b749fed3d02
GitOrigin-RevId: f4f4127b8daebec5935e40e910dedb1d94b4ba4f
#2948

In the best case when used in an android debug process, JdiHelperClassLoader impl either returns null or throws an exception. In the worst case scenario it hangs the variables view rendering for a while.

GitOrigin-RevId: 3437b7f13e37385459095cb8b5e9db431b785c0f
GitOrigin-RevId: ec23ff3a9787ca9d23264a964b3249d5faa582b8
Don't recreate proxies for the same session. Not a big deal, as proxies are stateless ATM and only delegate everything to XDebugSession

GitOrigin-RevId: 1acc5e8e8b94df4d271ebee4ecb5d45f35bed304
…XDebugSession

GitOrigin-RevId: 000833d51105b41e8e1bae43fec2f41b357ab81e
…sionTab

GitOrigin-RevId: 5b33acbed2d6f1002c01d10c382ee4c48b6f7a14
…sc, bring it back on new code changes

GitOrigin-RevId: f2a6b13e655c65a46a64b9f644838c367e18cacd
GitOrigin-RevId: 42547dab835ad0a61cde7d08669e9634eaac9640
…r waits for click/shown slowly" issue

GitOrigin-RevId: c68f63c41f23a9f14ebfdb3818e0c987a03bae40
…ATION_TESTS` test group for tests in Docker

GitOrigin-RevId: b9221d179f65354d511c052b57aa57f0cb90cc18
GitOrigin-RevId: 66e724834e567471d0ab8a1188114982948ebc3e
NVDA announces all components with an accessible role label when the JDialog is opened. So the text in the JEditorPane with an accessible role label is announced when the dialog appears.

GitOrigin-RevId: e9eee9e7e059c568fa92f7cb5d04a9489d909c34
…ails page for plugins unavailable in the free mode

GitOrigin-RevId: aaf0a114eb6624f0675c419ecd153f942348bd8b
…t; moved into java-analysis-impl

Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: 773526841956a159d23f64f01fccaaf4588ba643
…ng problem, reporting it and creating fixes

Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: 0990deef5a6fc379464fe1e8c9ecb46d73a1c13b
… strategy providing APIs

GitOrigin-RevId: 5bc80e3cc549c5aec688028bfd7b1e6bba070f76
…ot be available on the top project level

GitOrigin-RevId: b72b20e4bc3bfd29edc1eb85109b482fd8e8063c
GitOrigin-RevId: 0cb87a337f35a68951f665e3474d32b6ff38df7a
GitOrigin-RevId: c2c3072b073f1a2530c54a1cc651f9ee292bc835
GitOrigin-RevId: c756510fd3f0269473c29eb285cf153a5f76875e
DartVerder and others added 22 commits February 21, 2025 17:08
GitOrigin-RevId: 2e88458ff9583f2e86303b8254eca60e1dace9c7
- IDEA-367995 statistics

GitOrigin-RevId: a71aef8cdb8c838df5363e27dd1a1bcd26ed185d
Introduce actions for opening existing pull/merge requests directly in the respective tool windows. This improves usability by allowing users to interact with existing requests if detected, avoiding duplicate creation workflows.

GitOrigin-RevId: 1f547343cdaa94e6f8cc4ea642ae79f435f614c1
GitOrigin-RevId: 3ff98ecaca9d2bf8923a8c2f8bbb4c6fffd0c821
…named declarations

#KTIJ-33194 Fixed

GitOrigin-RevId: 94ff8b34821b6975f60dfd80f685a7f980271a8b
 fragment

GitOrigin-RevId: cbacee2dcf5c8463fc8abe124408de6af63d040e
Because when the LaF changes, presentations may change as well.
An example is icon sizes changing when toggling Compact Mode.

GitOrigin-RevId: 46b4f7b56c9a05ae339c533ac333c56562daacde
LafManagerListener.TOPIC is only broadcast on the app bus,
so the listener was never invoked on a LaF change,
and the cache was never cleared.

While we're at it, replace simple connections with properly
scoped ones. It's not strictly necessary for the project connection,
but it is necessary for the new app connection to avoid leaks,
so let's handle both the same way for consistency.

GitOrigin-RevId: c58d689f94c91eb8951ce4215daf3f80dfe18483
Similar to install/removeSearchComponent, we need to
ensure the layout is updated when the editor component changes.

GitOrigin-RevId: 3a74deb98984ceed488384e9e3b7ad18023c0d1b
…methods are not taken into account by type checker

Check return type of `__getattr__` when other means to get type of qualified expression failed


Merge-request: IJ-MR-155099
Merged-by: Aleksandr Govenko <[email protected]>

GitOrigin-RevId: 66e3c0dcc078f7e533b6495c6a43693e6e3909dc
restrict nove detection to clion

GitOrigin-RevId: 53618d47e865759d211262860021b420403e88a0
GitOrigin-RevId: d8d30e3f569c807e4361615271e4b04ffaae9428
GitOrigin-RevId: a2c15037a7a365eeeec16ff1aa58c56b2f314105
GitOrigin-RevId: c3c80c5d4c01b3b37cc069fe9608a5bb0c32a287
GitOrigin-RevId: 1190c48921b7210df20d27643a4d5f53e5aef75c
Auto-test is disabled:
- when another test configuration is started
- when the test configuration tab is closed

#IDEA-365697 Fixed
#IDEA-365668 Fixed

GitOrigin-RevId: 417cb8a692feda19ccb635c8732b52613a71b6b3
GitOrigin-RevId: f91310d9bcdafba320129abc844492dff1cce15a
GitOrigin-RevId: 2ffb41c38e656ea3501dddeb2c8ae6f7ec5ab4fc
GitOrigin-RevId: 91a7beea00bdad606da732e383dcf53fe59a0bf4
…PL-173035)

GitOrigin-RevId: 0df5725e3f649bbd3cd7472e243456c5e51e4e99
GitOrigin-RevId: 8a60ac56e05f43fef240efefdbd3095c343f4928
@pull pull bot added the ⤵️ pull label Feb 21, 2025
Copy link

gitstream-cm bot commented Feb 21, 2025

🚨 gitStream Monthly Automation Limit Reached 🚨

Your organization has exceeded the number of pull requests allowed for automation with gitStream.
Monthly PRs automated: 1940/250

To continue automating your PR workflows and unlock additional features, please contact LinearB.

Copy link

sourcery-ai bot commented Feb 21, 2025

Reviewer's Guide by Sourcery

This pull request includes several bug fixes and improvements across different areas of the IDE, including JPMS module access checks, GitHub and GitLab integration, debugger UI, auto-test toolbar, Python version checks, plugins UI, floating toolbar, main toolbar, command completion, and debugger.

Sequence diagram for GitHub push notification with existing PR

sequenceDiagram
    participant GitPlugin as GP
    participant GHPushNotificationCustomizer as GHNC
    participant GHRepositoryConnectionManager as GHCM
    participant GHAccountManager as GHA
    participant GithubApiRequestExecutor as GAE
    participant PullRequests as PR
    GP->GHNC: getActions(repository, pushResult, customParams)
    GHNC->GHCM: getConnectionState()
    alt connection == null
        GHNC->GHNC: findRepositoryAndAccount()
        GHNC->GHA: accountsState()
    end
    GHNC->GHNC: canCreateReview(projectMapping, account, remoteBranch)
    GHNC->GHA: findCredentials(account)
    GHA-->>GHNC: token
    GHNC->GAE: create(server, token)
    GHNC->GAE: executeSuspend(Repo.find(repository))
    alt defaultBranch == remoteBranchName
        GHNC-->>GP: []
    else
        GHNC->GHNC: findExistingPullRequests(projectMapping, account, remoteBranch)
        GHNC->GAE: executeSuspend(PullRequests.find(repository, state, baseRef, headRef))
        PR-->>GAE: items
        alt items.size == 0
            GHNC-->>GP: [GHPRCreatePullRequestNotificationAction]
        else items.size == 1
            GHNC-->>GP: [GHOpenPullRequestExistingTabNotificationAction]
        else items.size > 1
            GHNC-->>GP: []
        end
    end
Loading

Sequence diagram for GitLab push notification with existing MR

sequenceDiagram
    participant GitPlugin as GP
    participant GitLabPushNotificationCustomizer as GLNC
    participant GitLabProjectConnectionManager as GLCM
    participant GitLabAccountManager as GLA
    participant GitLabApiManager as GLAM
    participant GitLabApi as GLApi
    participant GraphQL as GQL
    GP->GLNC: getActions(repository, pushResult, customParams)
    GLNC->GLCM: getConnectionState()
    alt connection == null
        GLNC->GLNC: findRepositoryAndAccount()
        GLNC->GLA: accountsState()
    end
    GLNC->GLNC: canCreateReview(projectMapping, account, remoteBranch)
    GLNC->GLA: findCredentials(account)
    GLA-->>GLNC: token
    GLNC->GLAM: getClient(server, token)
    GLAM-->>GLNC: api
    GLNC->GLApi: getRepositoryInfo(api, repository)
    GLApi->GQL: find(repository)
    alt rootRef == remoteBranchName
        GLNC-->>GP: []
    else
        GLNC->GLNC: findExistingMergeRequests(projectMapping, account, remoteBranch)
        GLNC->GLA: findCredentials(account)
        GLA-->>GLNC: token
        GLNC->GLAM: getClient(server, token)
        GLAM-->>GLNC: api
        GLNC->GQL: findMergeRequestsByBranch(project, state, remoteBranchName)
        GQL-->>GLNC: nodes
        alt nodes.size == 0
            GLNC-->>GP: [GitLabMergeRequestOpenCreateTabNotificationAction]
        else nodes.size == 1
            GLNC-->>GP: [GitLabOpenMergeRequestExistingTabNotificationAction]
        else nodes.size > 1
            GLNC-->>GP: []
        end
    end
Loading

Updated class diagram for JavaPlatformModuleSystem

classDiagram
    class JavaPlatformModuleSystem {
        -ERR
        +getName()
        +isAccessible(targetPackageName, targetFile, place)
        +checkAccess(targetPackageName, targetFile, place)
        +isAccessible(targetModule, place)
        +checkAccess(targetModule, place)
        -getProblem(targetPackageName, targetFile, place, quick, isAccessible)
        -checkAccess(target, place, quick, isAccessible)
        +toErrorWithFixes(problem, place)
        -getMessage(problem)
        -getFixes(problem, place)
    }

    class JpmsModuleAccessInfo {
        +toErrorWithFixes(problem, place)
        -getMessage(problem)
        -getFixes(problem, place)
    }

    JavaPlatformModuleSystem -- JpmsModuleAccessInfo : uses
Loading

File-Level Changes

Change Details Files
Refactor JPMS module access checks for improved clarity and correctness.
  • Introduce JpmsModuleAccessInfo to encapsulate access details between modules.
  • Introduce JpmsModuleInfo to represent JPMS module information.
  • Refactor checkAccess methods to use JpmsModuleAccessInfo and JpmsModuleInfo.
  • Introduce JpmsModuleAccessProblem enum to represent different access problems.
  • Move JPMS related methods from JavaPsiModuleUtil to JpmsModuleAccessInfo.
  • Remove ModuleAccessInfo and ModuleInfo.
  • Remove JavaModuleGraphUtil.exports method and use JavaPsiModuleUtil.exports instead.
java/java-impl/src/com/intellij/psi/impl/JavaPlatformModuleSystem.kt
java/codeserver/core/src/com/intellij/java/codeserver/core/JavaPsiModuleUtil.java
java/codeserver/core/src/com/intellij/java/codeserver/core/JpmsModuleAccessInfo.kt
java/codeserver/core/src/com/intellij/java/codeserver/core/JpmsModuleInfo.kt
java/java-analysis-impl/src/com/intellij/codeInsight/daemon/impl/analysis/JavaModuleGraphUtil.java
java/java-analysis-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/AddExportsOptionFix.kt
java/java-analysis-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/AddModulesOptionFix.kt
Enhance GitHub and GitLab push notification customizers to handle existing pull/merge requests.
  • Add logic to find existing open pull/merge requests for the pushed branch.
  • Modify notification actions to open existing pull/merge requests if found, or create a new one if none exist.
  • Add new notification actions GHOpenPullRequestExistingTabNotificationAction and GitLabOpenMergeRequestExistingTabNotificationAction.
  • Refactor canCreateReview methods to only check if creating a PR/MR is valid, not if one already exists.
plugins/github/github-core/src/org/jetbrains/plugins/github/notification/GHPushNotificationCustomizer.kt
plugins/github/github-core/src/org/jetbrains/plugins/github/pullrequest/action/GHPRCreatePullRequestAction.kt
plugins/gitlab/gitlab-core/src/org/jetbrains/plugins/gitlab/notification/GitLabPushNotificationCustomizer.kt
plugins/gitlab/gitlab-core/src/org/jetbrains/plugins/gitlab/mergerequest/ui/create/action/GitLabMergeRequestOpenCreateTabAction.kt
Implement a proxy for XDebugSession to support split UI mode.
  • Introduce XDebugSessionProxy interface and XDebugSessionProxyKeeper service.
  • Modify XDebugSessionTab and related classes to use XDebugSessionProxy instead of XDebugSession directly.
  • Implement Monolith class that implements XDebugSessionProxy and wraps XDebugSession.
  • Update XDebugView to use XDebugSessionProxy.
  • Add logic to handle split UI mode in XDebugSessionTab3 and XDebugSessionTabNewUI.
platform/xdebugger-impl/src/com/intellij/xdebugger/impl/ui/XDebugSessionTab.java
platform/xdebugger-impl/src/com/intellij/xdebugger/impl/ui/XDebugSessionTab3.kt
platform/xdebugger-impl/src/com/intellij/xdebugger/impl/ui/XDebugSessionTabNewUI.kt
platform/xdebugger-impl/src/com/intellij/xdebugger/impl/frame/XDebugView.java
platform/xdebugger-impl/src/com/intellij/xdebugger/impl/frame/XDebugSessionProxy.kt
platform/xdebugger-impl/src/com/intellij/xdebugger/impl/frame/XDebugSessionProxyKeeper.kt
platform/xdebugger-impl/src/com/intellij/xdebugger/impl/frame/XDebugViewSessionListener.java
Refactor auto-test floating toolbar to use console properties and execution listeners.
  • Remove JavaAutoRunFloatingToolbarService and JavaAutoRunFloatingToolbarState.
  • Use TestConsoleProperties.SHOW_AUTO_TEST_TOOLBAR to control toolbar visibility.
  • Add an execution listener to update the current configuration and toolbar visibility after each run.
  • Update the toolbar visibility when auto-test is enabled or disabled.
  • Update the toolbar visibility when the SHOW_AUTO_TEST_TOOLBAR property changes.
java/execution/impl/src/com/intellij/execution/testDiscovery/JavaAutoRunFloatingToolbarProvider.kt
Add support for version and platform checks in Python code.
  • Implement PyVersionCheck object to convert expressions to version ranges.
  • Modify evaluateVersionsForElement function to use PyVersionCheck.
  • Update PyVersionAwareElementVisitor to use PyVersionCheck.
  • Add convertToVersionRanges method to PyVersionCheck to convert PyIfPart to version ranges.
python/python-psi-api/src/com/jetbrains/python/psi/impl/PyVersionCheck.kt
python/python-psi-impl/src/com/jetbrains/python/psi/impl/stubs/PyVersionSpecificStubBase.kt
python/python-psi-api/src/com/jetbrains/python/psi/impl/PyVersionAwareElementVisitor.kt
Fixes and improvements to the plugins UI.
  • Add a padlock icon to the plugin name component when the plugin is not free in free mode.
  • Add a banner to the plugin details page when the plugin is not free in free mode.
  • Add a tooltip to the plugin list item when the plugin is not free in free mode.
  • Fix a bug where the error component was not updated correctly when the plugin was disabled.
  • Fix a bug where the align button was not visible when the restart button was visible.
platform/platform-impl/src/com/intellij/ide/plugins/newui/ListPluginComponent.java
platform/platform-impl/src/com/intellij/ide/plugins/newui/PluginDetailsPageComponent.kt
platform/platform-api/resources/messages/IdeBundle.properties
java/idea-ui/resources/messages/JavaUiBundle.properties
Fixes and improvements to the floating toolbar.
  • Add onHiddenByEsc method to FloatingToolbarProvider to notify when the toolbar is hidden by the Esc key.
  • Call onHiddenByEsc when the toolbar is hidden by the Esc key.
  • Notify the hot swap manager when the toolbar is hidden by the Esc key or by the user.
  • Add debug logging to the hot swap manager.
platform/platform-impl/src/com/intellij/openapi/editor/toolbar/floating/FloatingToolbarProvider.kt
platform/platform-impl/src/com/intellij/openapi/editor/toolbar/floating/EditorFloatingToolbar.kt
platform/debugger-impl/frontend/src/com/intellij/platform/debugger/impl/frontend/hotswap/HotSwapFloatingToolbarProvider.kt
Fixes and improvements to the main toolbar.
  • Update actions asynchronously when the UI is updated.
  • Fix a bug where the main menu button was not updated correctly when the window was resized.
platform/platform-impl/src/com/intellij/openapi/wm/impl/headertoolbar/MainToolbar.kt
platform/platform-impl/src/com/intellij/openapi/actionSystem/impl/ActionToolbarImpl.java
Fixes and improvements to the command completion.
  • Add statistics collection for command completion.
  • Fix a bug where the command text after the dots was not removed correctly.
platform/lang-impl/src/com/intellij/codeInsight/completion/command/CommandInsertHandler.kt
platform/lang-impl/src/com/intellij/codeInsight/completion/command/CommandCompletionProvider.kt
platform/lang-impl/src/com/intellij/codeInsight/completion/command/CommandCompletionCollector.kt
Fixes and improvements to the debugger.
  • Fix a bug where the source position was not computed correctly for Java values.
  • Fix a bug where the helper class cache was not cleared correctly.
  • Fix a bug where the debugger was not working correctly with Dex.
java/debugger/impl/src/com/intellij/debugger/engine/JavaValueUtils.kt
java/debugger/impl/src/com/intellij/debugger/impl/DebuggerUtilsAsync.java
java/debugger/impl/src/com/intellij/debugger/engine/JavaValue.java
java/debugger/impl/src/com/intellij/debugger/impl/HelperClassCache.kt
java/debugger/impl/src/com/intellij/debugger/impl/JdiHelperClassLoaderImpl.kt
java/debugger/impl/src/com/intellij/debugger/impl/asyncCommands.kt
java/debugger/impl/src/com/intellij/debugger/impl/DexDebugFacility.kt
plugins/kotlin/jvm-debugger/base/util/src/org/jetbrains/kotlin/idea/debugger/base/util/DexDebugFacility.kt
plugins/kotlin/jvm-debugger/core/src/org/jetbrains/kotlin/idea/debugger/core/filter/KotlinSyntheticTypeComponentProvider.kt
plugins/kotlin/jvm-debugger/core/src/org/jetbrains/kotlin/idea/debugger/core/stackFrameUtils.kt
plugins/kotlin/jvm-debugger/core/src/org/jetbrains/kotlin/idea/debugger/stepping/smartStepInto/KotlinLambdaAsyncMethodFilter.kt
plugins/kotlin/jvm-debugger/core/src/org/jetbrains/kotlin/idea/debugger/stepping/smartStepInto/KotlinSmartStepIntoHandler.kt
plugins/kotlin/jvm-debugger/evaluation/src/org/jetbrains/kotlin/idea/debugger/evaluate/classLoading/AndroidOClassLoadingAdapter.kt
plugins/kotlin/jvm-debugger/evaluation/src/org/jetbrains/kotlin/idea/debugger/evaluate/classLoading/OrdinaryClassLoadingAdapter.kt

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!
  • Generate a plan of action for an issue: Comment @sourcery-ai plan on
    an issue to generate a plan of action for it.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@pull pull bot merged commit 886cd1b into Stars1233:master Feb 21, 2025
Copy link

coderabbitai bot commented Feb 21, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 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.
    • Generate unit testing code for this file.
    • 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 generate unit testing code for this file.
    • @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 generate unit testing code.
    • @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.

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 for this PR. (Beta)
  • @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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.