Skip to content

chore(Cleanup): Promote git_code_references to GA#6729

Merged
emyller merged 2 commits intomainfrom
copilot/remove-git-code-references-flag
Feb 18, 2026
Merged

chore(Cleanup): Promote git_code_references to GA#6729
emyller merged 2 commits intomainfrom
copilot/remove-git-code-references-flag

Conversation

Copy link
Contributor

Copilot AI commented Feb 18, 2026

Thanks for submitting a PR! Please check the boxes below:

  • I have read the Contributing Guide.
  • I have added information to docs/ if required so people know about the feature.
  • I have filled in the "Changes" section below.
  • I have filled in the "How did you test this code" section below.

Changes

Removed feature flag gating for code references functionality across the frontend. Code references now display whenever code_references_counts data exists.

Modified files:

  • FeatureTags.tsx: Removed isCodeReferencesEnabled check, simplified conditional rendering
  • ProjectFeatureRow.tsx: Removed isCodeReferencesEnabled check and unused Utils import
  • create-feature/index.js: Removed flag check, fixed logic bug (was using || operator incorrectly)

Before:

const isCodeReferencesEnabled = Utils.getFlagsmithHasFeature('git_code_references')
const hasScannedCodeReferences = 
  isCodeReferencesEnabled && projectFlag?.code_references_counts?.length > 0

After:

const hasScannedCodeReferences = 
  projectFlag?.code_references_counts?.length > 0

How did you test this code?

Verified with frontend linter, TypeScript compiler, and CodeQL security scan. No new errors or vulnerabilities introduced.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • f.hubspotusercontent40.net
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node scripts/postinstall.mjs (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Promote git_code_references flag to GA</issue_title>
<issue_description>We need to clean up feature flag usage in the code.
Our goal is to delete references of the "git_code_references" feature.
We need to delete the feature flag check so that the code path is no longer guarded by the feature flag.

These are the occurrences of this feature flag in this repository:

  • frontend/web/components/feature-summary/FeatureTags.tsx:42
  • frontend/web/components/feature-summary/ProjectFeatureRow.tsx:30
  • frontend/web/components/modals/create-feature/index.js:627</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@vercel
Copy link

vercel bot commented Feb 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
flagsmith-frontend-preview Ready Ready Preview, Comment Feb 18, 2026 1:03pm
flagsmith-frontend-staging Ready Ready Preview, Comment Feb 18, 2026 1:03pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
docs Ignored Ignored Preview Feb 18, 2026 1:03pm

Request Review

Co-authored-by: emyller <22429+emyller@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove git_code_references feature flag from the code Promote git_code_references to GA Feb 18, 2026
Copilot AI requested a review from emyller February 18, 2026 13:04
@emyller emyller changed the title Promote git_code_references to GA chore(Cleanup): Promote git_code_references to GA Feb 18, 2026
@emyller emyller marked this pull request as ready for review February 18, 2026 15:22
@emyller emyller requested a review from a team as a code owner February 18, 2026 15:22
@emyller emyller requested review from talissoncosta and removed request for a team February 18, 2026 15:22
@github-actions
Copy link
Contributor

github-actions bot commented Feb 18, 2026

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-api-test:pr-6729 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-api:pr-6729 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-e2e:pr-6729 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith:pr-6729 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-private-cloud:pr-6729 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-frontend:pr-6729 Finished ✅ Results

@github-actions github-actions bot added the chore label Feb 18, 2026
@emyller emyller merged commit 5f19d90 into main Feb 18, 2026
39 of 40 checks passed
@emyller emyller deleted the copilot/remove-git-code-references-flag branch February 18, 2026 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Promote git_code_references flag to GA

3 participants

Comments