Skip to content
/ utils Public

Delete pinact and ghalint hooks (#620)#622

Merged
5ouma merged 2 commits intomainfrom
revert-pre-commit-hooks-pinact-ghalint
Jan 4, 2026
Merged

Delete pinact and ghalint hooks (#620)#622
5ouma merged 2 commits intomainfrom
revert-pre-commit-hooks-pinact-ghalint

Conversation

@5ouma
Copy link
Owner

@5ouma 5ouma commented Jan 4, 2026

This reverts commit d94f12f.

Copilot AI review requested due to automatic review settings January 4, 2026 10:59
@github-actions github-actions bot added the 🚸 pre-commit Check the code with pre-commit hooks label Jan 4, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR reverts a previous commit to remove the pinact and ghalint pre-commit hooks from the repository's utilities.

Key Changes:

  • Removed three pre-commit hook definitions (pinact, ghalint, ghalint-act) from .pre-commit-hooks.yaml
  • Updated the README documentation to remove examples of the deleted hooks and changed default hook types
  • Modified Renovate configuration's managerFilePatterns to narrow scope from regex to specific filename

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
.pre-commit-hooks.yaml Removed definitions for pinact, ghalint, and ghalint-act hooks (30 lines deleted)
README.md Removed hook examples from documentation and removed "pre-commit" from default_install_hook_types
.github/renovate.json Changed managerFilePatterns from regex pattern to single filename
Comments suppressed due to low confidence (1)

.github/renovate.json:25

  • The managerFilePatterns was changed from an array containing a regex pattern to an array with a single filename. However, the matchStrings on line 22 is still looking for pinact and ghalint dependencies. Since these hooks have been removed from .pre-commit-hooks.yaml, this regex pattern will never match anything and should also be removed, or the entire customManager entry should be deleted.
    {
      "customType": "regex",
      "managerFilePatterns": [".pre-commit-config.yaml"],
      "matchStrings": [
        "(?<depName>github.com/suzuki-shunsuke/(pinact|ghalint))(/v(?<major>[0-9]+))?/cmd/(pinact|ghalint)@(?<currentValue>v[0-9]+\\.[0-9]+\\.[0-9]+)"
      ],
      "datasourceTemplate": "go"
    }

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@coderabbitai
Copy link

coderabbitai bot commented Jan 4, 2026

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.

Walkthrough

Narrowed Renovate file-match pattern to the exact .pre-commit-config.yaml filename and removed three pre-commit hooks (pinact, ghalint, ghalint-act) from hook definitions and README references.

Changes

Cohort / File(s) Summary
Renovate config change
.github/renovate.json
Replaced a regex matching multiple pre-commit filenames with an exact filename match: .pre-commit-config.yaml.
Pre-commit hook removals
.pre-commit-hooks.yaml
Deleted three hook definitions: pinact, ghalint, and ghalint-act.
Documentation updates
README.md
Removed pre-commit from default_install_hook_types and removed pinact, ghalint, ghalint-act entries from the hooks list, leaving only upload-git-commit-notion.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly describes the main change: deleting pinact and ghalint hooks, which is directly reflected in the file modifications across multiple configuration files.
Description check ✅ Passed The description states this is a revert of a previous commit, which is directly related to the changeset that removes the pinact and ghalint hooks from the codebase.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch revert-pre-commit-hooks-pinact-ghalint

📜 Recent review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 026bcbc and 8ff0059.

📒 Files selected for processing (1)
  • README.md
💤 Files with no reviewable changes (1)
  • README.md

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@5ouma 5ouma merged commit 8866385 into main Jan 4, 2026
5 checks passed
@5ouma 5ouma deleted the revert-pre-commit-hooks-pinact-ghalint branch January 4, 2026 11:04
@5ouma 5ouma bot mentioned this pull request Jan 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🚸 pre-commit Check the code with pre-commit hooks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants