CLI-614 Add hook markers migration#404
CLI-614 Add hook markers migration#404georgii-borovinskikh-sonarsource wants to merge 9 commits into
Conversation
f834383 to
1eff0f7
Compare
6cc54c3 to
b959d6d
Compare
0265d36 to
168b3c1
Compare
168b3c1 to
062ba72
Compare
✅ Deploy Preview for sonarqube-cli ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
15446f3 to
8bb20d2
Compare
9b461ce to
8a06681
Compare
d093248 to
86cbc1b
Compare
8a06681 to
f4c5895
Compare
86cbc1b to
74e0406
Compare
f4c5895 to
4317d0b
Compare
47cdce4 to
710be2b
Compare
After rebasing onto the EOL branch (which tracks current master), the `install-integration.ts` file picked up an `onFeatureApplyStart` callback call from master that the pre-rebase `installer.ts` didn't declare. Restores the `<TOptions>` generic on `ApplyFeatureCallbacks`, adds `onFeatureApplyStart`, and propagates the generic to all call-sites so the feature-start text display works correctly. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
710be2b to
3d8f8ec
Compare
Code Review ✅ Approved 6 resolved / 6 findingsMigration of legacy Git hooks to stage-specific IDs is implemented alongside a new declarative cleanup framework. All reported issues regarding incorrect error messaging, migration logic, and resource cleanup were addressed. ✅ 6 resolved✅ Bug: Native hook test asserts a message the code never throws
✅ Quality: git-pre-push argument help text references pre-commit
✅ Edge Case: inferStage can throw on a sonar entry missing 'entry'
✅ Bug: Uninstall no longer cleans legacy repo / empty local repo
✅ Edge Case: Legacy sonar-secrets entry without stages is never migrated
...and 1 more resolved from earlier reviews OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
|



Part of CLI-505
Summary by Gitar
sonar-secretsID to per-stage IDs (sonar-pre-commit,sonar-pre-push) to allow concurrent hook management.legacyCleanupsto handle idempotency and migration of old hook artifacts.RemovableResourceinterface to decouple and standardize the cleanup of legacy hooks and patches.TextSnippet,WholeFile, and various patch resources to use dedicated remover classes for safer, idempotent cleanup.markers.tsto manage distinct framework-aware markers for Git hooks, replacing a single global marker for improved detection and separation.--forceadvice, providing cleaner remediation hints instead.This will update automatically on new commits.