Skip to content

chore: update github workflow and pre-commit-config#1552

Merged
ComixHe merged 1 commit into
OpenAtom-Linyaps:masterfrom
ComixHe:master
Jan 14, 2026
Merged

chore: update github workflow and pre-commit-config#1552
ComixHe merged 1 commit into
OpenAtom-Linyaps:masterfrom
ComixHe:master

Conversation

@ComixHe

@ComixHe ComixHe commented Jan 14, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@ComixHe ComixHe requested review from myml and reddevillg January 14, 2026 08:22
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @ComixHe, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request refines the project's pre-commit configuration to enhance development workflow efficiency. By implementing a global exclusion list, the system now intelligently bypasses unnecessary pre-commit hook executions on directories containing generated code, documentation, or third-party dependencies. This change centralizes exclusion rules and prevents redundant checks, leading to faster and more focused local development cycles.

Highlights

  • Pre-commit Configuration Update: Introduced a global exclude directive in .pre-commit-config.yaml to prevent pre-commit hooks from running on specified directories such as docs/, build/, external/, and various tool-related folders.
  • Clang-format Exclusion Refinement: Updated the clang-format hook's exclude list by removing build/ and external/ as these directories are now covered by the newly added global exclusion.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Ignored Files
  • Ignored by pattern: .github/workflows/** (3)
    • .github/workflows/build.yaml
    • .github/workflows/call-commitlint.yml
    • .github/workflows/lint.yml
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the .pre-commit-config.yaml file by centralizing path exclusions into a global exclude block, which is a good improvement for maintainability. I've found a minor issue in the new regular expression. Additionally, the pull request title mentions an update to a GitHub workflow, but no workflow files seem to be part of this change. You might want to update the title to more accurately reflect the contents of the PR.

Comment thread .pre-commit-config.yaml
Comment on lines +6 to +16
(?x)^(
docs/|
build/|
external/|
cmake/|
LICENSES/|
misc/image/|
po/|
tools/quicktype/|
tools/openapi-c-libcurl-client/|
)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The regular expression has a trailing | at the end of the last path. This creates an empty alternative in the regex group, which means it could match an empty string at the beginning of a path. While this may not cause immediate problems, it's syntactically incorrect for the intended purpose and could lead to unexpected behavior. It should be removed for correctness and clarity.

  (?x)^(
    docs/|
    build/|
    external/|
    cmake/|
    LICENSES/|
    misc/image/|
    po/|
    tools/quicktype/|
    tools/openapi-c-libcurl-client/
  )

@deepin-ci-robot

Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: ComixHe

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Signed-off-by: ComixHe <ComixHe1895@outlook.com>
@codecov

codecov Bot commented Jan 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ComixHe ComixHe merged commit 9f26632 into OpenAtom-Linyaps:master Jan 14, 2026
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants