Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Comments

Close side panel

Add missing TODO comments for featuredetection if-statements#12701

Merged
BagToad merged 1 commit intotrunkcli/cli:trunkfrom
kw/add-missing-fd-todoscli/cli:kw/add-missing-fd-todosCopy head branch name to clipboard
Feb 16, 2026
Merged

Add missing TODO comments for featuredetection if-statements#12701
BagToad merged 1 commit intotrunkcli/cli:trunkfrom
kw/add-missing-fd-todoscli/cli:kw/add-missing-fd-todosCopy head branch name to clipboard

Conversation

@BagToad
Copy link
Member

@BagToad BagToad commented Feb 16, 2026

Adds greppable TODO identifiers above all if-statements that reference featuredetection struct fields, as required by the featuredetection linter introduced in kw/fd-linter-poc.

All 18 violations fixed across 11 files. The TODO identifiers used are:

  • stateReasonCleanup: StateReason checks (3 sites)
  • actorIsAssignableCleanup: ActorIsAssignable checks (5 sites)
  • advancedIssueSearchCleanup: AdvancedIssueSearchAPI/OptIn checks (5 sites)
  • mergeQueueCleanup: MergeQueue check (1 site)
  • immutableReleaseFullSupport: ImmutableReleases check (1 site, moved closer)
  • repoFeaturesCleanup: VisibilityField/AutoMerge checks (3 sites)

Add greppable TODO identifiers above all if-statements that reference
featuredetection struct fields, as required by the featuredetection
linter. This ensures every feature detection branch is tagged for
future cleanup when GHES gains support.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings February 16, 2026 21:26
@BagToad BagToad requested a review from a team as a code owner February 16, 2026 21:26
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds TODO comments above all feature detection if-statements to ensure compliance with a new featuredetection linter. The changes are purely additive, placing greppable TODO identifiers directly above 18 if-statements that check featuredetection struct fields across 13 files. This enables future cleanup when GHES versions gain full support for these features.

Changes:

  • Added 18 TODO comments following the format // TODO <cleanupIdentifier> above feature detection checks
  • Used 6 different cleanup identifiers based on the feature type: stateReasonCleanup, actorIsAssignableCleanup, advancedIssueSearchCleanup, mergeQueueCleanup, immutableReleaseFullSupport, and repoFeaturesCleanup
  • Ensures all feature detection branches are tagged for eventual removal when GHES support catches up

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated no comments.

Show a summary per file
File Description
pkg/search/searcher.go Added TODO for AdvancedIssueSearchAPIOptIn check
pkg/cmd/repo/list/list.go Added TODO for VisibilityField check
pkg/cmd/repo/edit/edit.go Added TODOs for VisibilityField and AutoMerge checks
pkg/cmd/release/list/http.go Added TODO for ImmutableReleases check
pkg/cmd/pr/shared/finder.go Added TODO for MergeQueue check
pkg/cmd/pr/list/http.go Added TODOs for AdvancedIssueSearchAPI and OptIn checks
pkg/cmd/pr/edit/edit.go Added TODOs for three ActorIsAssignable checks
pkg/cmd/issue/shared/lookup.go Added TODO for StateReason check
pkg/cmd/issue/list/list.go Added TODO for StateReason check
pkg/cmd/issue/list/http.go Added TODOs for AdvancedIssueSearchAPI and OptIn checks
pkg/cmd/issue/edit/edit.go Added TODO for ActorIsAssignable check
pkg/cmd/issue/create/create.go Added TODO for ActorIsAssignable check
pkg/cmd/issue/close/close.go Added TODO for StateReason check

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@babakks babakks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment on lines +167 to 171
// TODO advancedIssueSearchCleanup
if features.AdvancedIssueSearchAPI {
variables["query"] = prShared.SearchQueryBuild(filters, true)
// TODO advancedIssueSearchCleanup
if features.AdvancedIssueSearchAPIOptIn {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The second one is redundant, though.

Comment on lines +78 to 82
// TODO advancedIssueSearchCleanup
if features.AdvancedIssueSearchAPI {
variables["q"] = prShared.SearchQueryBuild(filters, true)
// TODO advancedIssueSearchCleanup
if features.AdvancedIssueSearchAPIOptIn {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same.

@BagToad BagToad merged commit 8d819c5 into trunk Feb 16, 2026
19 checks passed
@BagToad BagToad deleted the kw/add-missing-fd-todos branch February 16, 2026 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.