Skip to content

Commit 8334c56

Browse files
committed
chore: Release version 1.1.0 with opt-in wrapper updates
Preserve local code-review-guardian.sh by default; overwrite only when extra.code-review-guardian.auto_update_wrapper is enabled. Document the upgrade path, expand the CI matrix, and align release tooling.
1 parent f61e8a0 commit 8334c56

66 files changed

Lines changed: 6723 additions & 55 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.coderabbit.yaml

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
2+
#
3+
# CodeRabbit configuration for nowo-tech/CodeReviewGuardian.
4+
# Requires the CodeRabbit GitHub App installed on nowo-tech/CodeReviewGuardian.
5+
# Manual review: comment `@coderabbitai review` on a pull request.
6+
7+
language: en-US
8+
9+
reviews:
10+
profile: chill
11+
request_changes_workflow: false
12+
high_level_summary: true
13+
review_status: true
14+
commit_status: true
15+
poem: false
16+
collapse_walkthrough: true
17+
sequence_diagrams: true
18+
changed_files_summary: true
19+
20+
auto_review:
21+
enabled: true
22+
auto_incremental_review: true
23+
auto_pause_after_reviewed_commits: 10
24+
drafts: false
25+
base_branches:
26+
- main
27+
- master
28+
ignore_title_keywords:
29+
- WIP
30+
- "[skip review]"
31+
32+
path_filters:
33+
- "!**/vendor/**"
34+
- "!**/coverage/**"
35+
- "!**/*.lock"
36+
- "!phpstan-baseline.neon"
37+
- "!.cursor/**"
38+
- "src/**"
39+
- "tests/**"
40+
- "docs/**"
41+
42+
- ".github/**"
43+
- "*.md"
44+
- "*.yaml"
45+
- "*.yml"
46+
- "Makefile"
47+
48+
path_instructions:
49+
- path: "src/**/*.php"
50+
instructions: |
51+
nowo-tech/code-review-guardian — Provider-agnostic code review guardian for PHP projects. Works with any PHP project (Symfony, Laravel, Yii, CodeIgniter, etc.) and any Git provider (GitHub, GitLab, Bitbucket, etc.)
52+
Follow PSR-12 and `.php-cs-fixer.dist.php`. Prefer PHP 8 attributes over annotations.
53+
Respect PHP and Symfony ranges in `composer.json` when present. Preserve backward compatibility unless the PR explicitly breaks it.
54+
Use strict comparison (`===`) where appropriate. Keep changes minimal and consistent with existing patterns.
55+
Align with `composer cs-check`, `composer phpstan`, and `composer test` when those scripts exist.
56+
57+
- path: "tests/**/*.php"
58+
instructions: |
59+
PHPUnit tests for this package. Add or update tests for new behaviour.
60+
Match existing test structure (Unit vs Integration). Avoid trivial assertions.
61+
Ensure changes remain compatible with the CI matrix when one is defined.
62+
63+
- path: "docs/**/*.md"
64+
instructions: |
65+
User-facing documentation in English under `docs/`. Do not invent features, versions, or commands.
66+
For notable releases, keep CHANGELOG and UPGRADING aligned. Preserve document structure and tone.
67+
68+
69+
- path: ".github/workflows/**"
70+
instructions: |
71+
GitHub Actions workflows for this repository. Match existing workflow style (checkout@v6, matrix exclusions).
72+
Do not echo secrets. Pin third-party actions to major versions already used in this repo.
73+
74+
tools:
75+
phpstan:
76+
enabled: true
77+
phpcs:
78+
enabled: false
79+
phpmd:
80+
enabled: false
81+
yamllint:
82+
enabled: true
83+
hadolint:
84+
enabled: true
85+
gitleaks:
86+
enabled: true
87+
github-checks:
88+
enabled: true
89+
timeout_ms: 900000
90+
actionlint:
91+
enabled: true
92+
zizmor:
93+
enabled: true
94+
95+
knowledge_base:
96+
learnings:
97+
scope: auto
98+
pull_requests:
99+
scope: auto

.cursor/rules/00-global.mdc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
description: Global rules for Symfony bundle repository
3+
alwaysApply: true
4+
---
5+
6+
Assume this repository is a reusable Symfony bundle.
7+
8+
Prefer:
9+
- minimal, local changes
10+
- starting with files already open or explicitly mentioned
11+
- the smallest viable patch first
12+
- preserving backward compatibility unless explicitly requested otherwise
13+
14+
Do not scan the whole repository unless explicitly required.
15+
Do not read vendor, cache, generated, build, coverage, lock, or binary files unless strictly needed for the task (for example dependency/release sync).

.cursor/rules/01-git-commits.mdc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
description: Git commit message rules for this repository
3+
alwaysApply: true
4+
---
5+
6+
When creating git commits in this repository:
7+
8+
- NEVER add `Co-authored-by: Cursor` or any Cursor agent co-author trailer to commit messages.
9+
- NEVER add `Co-authored-by: cursoragent@cursor.com` or similar Cursor attribution lines.
10+
- Commit messages must list only human authors; tooling attribution belongs in PR descriptions or release notes, not in git trailers.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
description: PHP and Symfony bundle rules
3+
globs:
4+
- "src/**/*.php"
5+
- "config/**/*.php"
6+
- "config/**/*.yaml"
7+
- "config/**/*.yml"
8+
alwaysApply: false
9+
---
10+
11+
Target this bundle compatibility by default: PHP >=8.1 and Symfony 6/7/8.
12+
13+
Prefer:
14+
- modern PHP with strict typing and explicit return types
15+
- PSR-12 coding style
16+
- final classes by default
17+
- readonly where appropriate
18+
- constructor injection
19+
- small focused services
20+
- framework conventions over custom abstractions
21+
- preserving public extension points
22+
- keeping DI extension, compiler pass wiring, and form type options backward compatible
23+
- PHPDoc in English for non-trivial classes, methods, and complex behavior
24+
25+
Do not introduce BC breaks unless explicitly requested.
26+
Do not add PHPDoc in Spanish.
27+
Do not rename public services, configuration keys, or Twig integrations without warning.
28+
Do not touch unrelated namespaces or files.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
description: Twig templates and public bundle assets
3+
globs:
4+
- "templates/**/*.twig"
5+
- "src/**/Resources/views/**/*.twig"
6+
- "src/Resources/public/**/*"
7+
alwaysApply: false
8+
---
9+
10+
Prefer:
11+
- small, backward-compatible template and public asset changes
12+
- preserving current block structure
13+
- local DOM updates
14+
- reusing existing classes, ids, and hooks
15+
- minimal asset changes
16+
17+
Do not edit generated files inside src/Resources/public/build.
18+
Do not rewrite entire templates or public asset trees for a local change.

.cursor/rules/40-tests-quality.mdc

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
description: Tests and quality rules
3+
globs:
4+
- "tests/**/*.php"
5+
- "tests/**/*.ts"
6+
- "tests/**/*.js"
7+
- "src/Resources/assets/**/*.test.ts"
8+
- "src/Resources/assets/**/*.spec.ts"
9+
- "src/Resources/assets/**/*.test.js"
10+
- "src/Resources/assets/**/*.spec.js"
11+
- "phpunit.xml*"
12+
- "vitest.config.*"
13+
- "eslint.config.*"
14+
alwaysApply: false
15+
---
16+
17+
When changing behavior, prefer adding or updating the nearest relevant test.
18+
19+
Prefer:
20+
- one focused test
21+
- minimal fixture changes
22+
- preserving the existing testing style
23+
- test updates close to the changed behavior
24+
25+
Do not introduce new testing frameworks unless explicitly requested.
26+
Do not rewrite unrelated tests.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
description: Documentation and release notes rules
3+
globs:
4+
- "README.md"
5+
- "docs/**/*.md"
6+
alwaysApply: false
7+
---
8+
9+
Prefer:
10+
- documentation updates aligned with real code changes and current compatibility ranges
11+
- concise, actionable release notes
12+
- updating CHANGELOG and UPGRADING together for notable user-facing changes
13+
- preserving existing document structure and tone
14+
- keeping examples consistent with actual defaults and routes in this bundle
15+
16+
Do not invent features, versions, or commands that are not present in the repository.
17+
Do not remove past release history unless explicitly requested.

0 commit comments

Comments
 (0)