Skip to content

Conversation

@rekmarks
Copy link
Member

@rekmarks rekmarks commented Jan 28, 2026

Following #782, continues our quest to get Dependabot working.

Note

Centralizes Dependabot environment detection and updates hooks/scripts to respect it.

  • Adds scripts/utils/check-dependabot.sh and switches scripts/playwright-install.sh and scripts/rebuild-native.sh to use it, skipping installs/rebuilds in Dependabot
  • Replaces simple-git-hooks pre-commit command with scripts/pre-commit.sh, which skips in Dependabot and otherwise runs lint-staged and yarn dedupe --check

Written by Cursor Bugbot for commit 17471fd. This will update automatically on new commits. Configure here.

The pre-commit hook runs 'yarn dedupe --check' which fails when
Dependabot updates dependencies because new deduplication
opportunities are created. This script checks for the Dependabot
environment and skips the hook to allow commits to succeed.

Co-Authored-By: Claude <noreply@anthropic.com>
@rekmarks rekmarks requested a review from a team as a code owner January 28, 2026 00:04
@rekmarks rekmarks enabled auto-merge January 28, 2026 00:08
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 28, 2026

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 88.44%
🟰 ±0%
5765 / 6518
🔵 Statements 88.32%
🟰 ±0%
5857 / 6631
🔵 Functions 87.23%
🟰 ±0%
1504 / 1724
🔵 Branches 84.95%
🟰 ±0%
2078 / 2446
File CoverageNo changed files found.
Generated in workflow #3392 for commit 17471fd by the Vitest Coverage Report Action

@rekmarks rekmarks disabled auto-merge January 28, 2026 00:29
Consolidates Dependabot environment detection logic from three shell scripts
(pre-commit.sh, playwright-install.sh, rebuild-native.sh) into a single
reusable utility script (scripts/utils/check-dependabot.sh).

This eliminates code duplication and provides a single source of truth for
Dependabot detection, making future changes (e.g., adding new environment
variables) easier to maintain and ensuring consistency across all scripts.

Co-Authored-By: Claude <noreply@anthropic.com>
@rekmarks rekmarks enabled auto-merge January 28, 2026 00:32
@rekmarks rekmarks disabled auto-merge January 28, 2026 00:32
@rekmarks rekmarks enabled auto-merge January 28, 2026 00:56
@rekmarks rekmarks changed the title Skip pre-commit hook in Dependabot environment chore: Skip pre-commit hook in Dependabot environment Jan 28, 2026
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