Skip to content

fix: ensure pre-push hook always runs and remove -p short flag

f8c20a3
Select commit
Loading
Failed to load commit list.
Merged

feat: block force pushes via pre-push hook #412

fix: ensure pre-push hook always runs and remove -p short flag
f8c20a3
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded May 15, 2026 in 21s

Annotations

Check failure on line 1282 in tests/engine_test.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "commit_check.engine.fetch_remote_ref" 4 times.

See more on https://sonarcloud.io/project/issues?id=commit-check_commit-check&issues=AZ4t4ZQoSR9ZwIZS1j9v&open=AZ4t4ZQoSR9ZwIZS1j9v&pullRequest=412

Check failure on line 1285 in tests/engine_test.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "commit_check.engine.get_git_remotes" 4 times.

See more on https://sonarcloud.io/project/issues?id=commit-check_commit-check&issues=AZ4t4ZQoSR9ZwIZS1j9u&open=AZ4t4ZQoSR9ZwIZS1j9u&pullRequest=412

Check failure on line 1292 in tests/engine_test.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "refs/heads/main" 5 times.

See more on https://sonarcloud.io/project/issues?id=commit-check_commit-check&issues=AZ4t4ZQoSR9ZwIZS1j9t&open=AZ4t4ZQoSR9ZwIZS1j9t&pullRequest=412

Check failure on line 852 in tests/main_test.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "feature/topic" 4 times.

See more on https://sonarcloud.io/project/issues?id=commit-check_commit-check&issues=AZ4t7HTYWc4IyMBUJrzW&open=AZ4t7HTYWc4IyMBUJrzW&pullRequest=412

Check failure on line 202 in tests/util_test.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "refs/heads/main" 5 times.

See more on https://sonarcloud.io/project/issues?id=commit-check_commit-check&issues=AZ4t4ZP0SR9ZwIZS1j9n&open=AZ4t4ZP0SR9ZwIZS1j9n&pullRequest=412