chore(types): mark gateCheckMode @deprecated at every declaration site - #5430
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
gittensory-ui | 94ed64e | Commit Preview URL Branch Preview URL |
Jul 12 2026, 07:22 PM |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5430 +/- ##
==========================================
- Coverage 94.46% 94.42% -0.04%
==========================================
Files 554 554
Lines 44426 44426
Branches 14663 14663
==========================================
- Hits 41967 41950 -17
- Misses 1784 1801 +17
Partials 675 675
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-12 19:26:22 UTC
⏸️ Suggested Action - Manual Review Review summary Nits — 6 non-blocking
Concerns raised — review before merging
📋 Copy for AI agents — paste into your coding agent
Review context
Contributor next steps
Signal definitions
[BETA] Chat with GittensoryAsk Gittensory a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://gittensory.aethereal.dev/docs/gittensory-commands Visual preview
Click any thumbnail to open the full-size screenshot. Before = production · After = this PR's preview deploy. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 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.
|
71b9c2b to
8289a6a
Compare
#5373) #4618 already made gateCheckMode a computed read-back of reviewCheckMode with narrative comments explaining it in most places, but several public-surface type declarations (RepositorySettings, GithubAppBehavior, the settings-preview response shape, the activation preview response, the gittensory-engine package's own RepositorySettings copy, and the OpenAPI response schemas) never got an explicit @deprecated marker on the field itself. Add one everywhere it was missing so IDEs/readers see it at the point of use, not just in a few narrative comments elsewhere in the codebase. Also drops gateCheckMode from the UI's local ActivationResponse type -- confirmed dead: the field was declared but never read anywhere in that component. Stage 1 of #5373's two-stage plan; the DB column/full removal (Stage 2) is tracked separately given its size (447 occurrences across 48 files).
8289a6a to
94ed64e
Compare


Summary
Stage 1 of #5373's two-stage plan (
gateCheckModeis a computed read-back ofreviewCheckMode, deprecated since #4618).gateCheckModederived-only with narrative comments explaining it in most places, but several public-surface type declarations never got an explicit@deprecatedmarker on the field itself:RepositorySettings(src/types.ts),GithubAppBehavior(registration-readiness.ts), the settings-preview response shape,MaintainerActivationPreview.currentGateMode, thegittensory-enginepackage's ownRepositorySettingscopy, and all 4 OpenAPI response schema definitions. Added@deprecated(or a matching plain comment where the file has no JSDoc-tag precedent, i.e. the Zod schema file) at each site pointing toreviewCheckMode.ActivationResponse.gateCheckModewas declared but never read anywhere inactivation-preview.tsx-- confirmed via grep, removed from both the type and its test fixture.openapi.jsonis byte-identical (plain comments only, no.describe()/.openapi()metadata added).Stage 2 (the actual DB column + full removal, 447 occurrences across 48 files) is intentionally out of scope here and tracked separately per #5373.
Test plan
npm run typechecknpm run ui:typechecknpm run ui:lintnpm run docs:drift-checknpm run ui:openapi:check(confirms zero drift -- plain comments don't affect the generated schema)test/unit/registration-readiness.test.ts,test/unit/repo-policy-readiness.test.ts,test/unit/settings-preview.test.ts,test/unit/maintainer-settings-preview-ui.test.ts,test/unit/backfill.test.ts,test/unit/backfill-2.test.ts, and the UI'sactivation-previewtest -- all green