Repository navigation
chore: regenerate code references types - #14
Merged
Merged
Conversation
Brings src/code_references/types.py back in sync with the live Flagsmith API schema, which has added a vcs_provider field to FeatureFlagCodeReferencesScan and reordered two fields. The check that caught this regenerates from api.flagsmith.com on every PR and diffs the result, so it drifts whenever the API changes rather than when this repo does. Nothing has run it since February, so the drift only surfaced now. No behaviour change: FeatureFlagCodeReferencesScan is generated but never imported, and CodeReferenceSubmit, the only type this repo actually uses, is unchanged. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
No issues found across 1 file
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Auto-approved: Regenerates code-reference types from the live API schema; the diff only adds an optional vcs_provider field to a TypedDict that is not used by the repo, leaving CodeReferenceSubmit unchanged. Behavior is unaffected and the change is bounded.
Turn on auto-fix | Re-trigger cubic
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #14 +/- ##
========================================
Coverage ? 100.00%
========================================
Files ? 4
Lines ? 112
Branches ? 0
========================================
Hits ? 112
Misses ? 0
Partials ? 0 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Unblocks CI on #13, which was failing on
Validate generated types are up to datefor reasons unrelated to that PR.What happened
make generate-code-references-typesregeneratessrc/code_references/types.pyfrom the live API schema, and the check diffs the result:So it fails when the API changes, not when this repo does.
api.flagsmith.comhas since added avcs_providerfield toFeatureFlagCodeReferencesScanand reordered two others.The last run on this repo was 2026-02-07. Nothing has exercised the check in nine months, so the drift accumulated silently and surfaced on the next PR to come along.
Safety
No behaviour change. The entire diff is inside
FeatureFlagCodeReferencesScan, which is generated but never imported —CodeReferenceSubmitis the only type this repo uses, and it's unchanged:The upload payload is built as a plain dict rather than through the TypedDict, so
vcs_providerneeds no code behind it. If the scanner should be sendingvcs_provider, that's a separate change and someone closer to the API should make the call.Verified locally: regenerated output matches CI's diff exactly,
make lintpasses,make testpasses 29/29.Worth considering
This check will keep ambushing whoever opens the next PR after a quiet spell. Either pin the schema (commit it, or pass a version) so regeneration is deterministic, or run the check on a schedule so drift is caught as its own alert rather than as a failure on an unrelated PR.
🤖 Generated with Claude Code