feat(config): audit repository-settings flag enforcement (Fixes #797) - #915
Conversation
Promote requireLinkedIssue into linkedIssueGateMode when unset, resolve effective settings for the settings preview API, include aiReview fields in preview output, and add an enforcement test matrix for the audited flags. Fixes JSONbored#797 Co-authored-by: Cursor <cursoragent@cursor.com>
|
Note Gittensory Gate skippedPR closed before full evaluation. No late first comment was created.
💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers. |
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
This comment has been minimized.
This comment has been minimized.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #915 +/- ##
===========================================
+ Coverage 70.99% 96.60% +25.61%
===========================================
Files 109 110 +1
Lines 14921 14926 +5
Branches 5394 5398 +4
===========================================
+ Hits 10593 14420 +3827
+ Misses 3094 104 -2990
+ Partials 1234 402 -832 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Add aiReview fields to RepoSettingsPreview and fix gateCheckPolicy usage in the repository-settings enforcement test matrix. Co-authored-by: Cursor <cursoragent@cursor.com>
Keep shared resolveRepositorySettings from settings module while adopting upstream focus-manifest imports and loadGateAuthorHistory in processors. Co-authored-by: Cursor <cursoragent@cursor.com>
🔍 Maintainer reviewReviewed 9 file(s) — ✅ all CI green. Suggested action: ✅ Safe to merge — both reviewers found no blocking issues. Reviewer A · Suggestions
Worth double-checking
Reviewer B · No blocking issues spotted. |
Summary
requireLinkedIssueinto effective settings so it promoteslinkedIssueGateModetoblockwhen stilloff(no silent divergence between the dashboard toggle and gate blocking)..gittensory.yml) settings for the settings preview API instead of DB-only values.aiReview*fields in settings preview output; use repo settings (not a hardcoded default) in maintainer activation previews.repository-settings-enforcement.test.tsdocumenting enforcement forrequireLinkedIssue,includeMaintainerAuthors, andaiReviewMode.Test plan
npx vitest run test/unit/repository-settings-enforcement.test.tsnpx vitest run test/unit/focus-manifest.test.ts test/unit/maintainer-activation.test.ts test/unit/gate-check-policy.test.ts test/unit/settings-preview.test.tsnpm run test:coverageFixes #797