Skip to content

Don't ask for feature detection cleanup comments when not needed - #14139

Merged
babakks merged 2 commits into
trunkfrom
babakks/no-cleanup-comment-for-dotcom-only-features
Aug 13, 2026
Merged

Don't ask for feature detection cleanup comments when not needed#14139
babakks merged 2 commits into
trunkfrom
babakks/no-cleanup-comment-for-dotcom-only-features

Conversation

@babakks

@babakks babakks commented Aug 13, 2026

Copy link
Copy Markdown
Member

Description

This change is due to the misleading comment on another PR review (#14006 (comment)) where :copilot: was asking for a cleanup comment on a feature detection conditional, while it didn't make sense because the feature would never be shipped to GHES.

How did you test this change?

N/A

Key points

N/A

Notes for reviewers

N/A

Authorship and follow-up

Who wrote this:

  • A human wrote it.
  • An agent wrote it under close human direction.
  • An agent wrote it independently, and no human has guided the implementation beyond the initial prompt.

Who answers review comments:

  • @babakks will read and reply directly. Name the account.
  • An agent will draft replies and @username will read them before they are posted.
  • Nobody has explicitly committed to replying.

Clarified usage of cleanup comments for API features
@babakks
babakks requested a review from a team as a code owner August 13, 2026 12:13
@babakks
babakks requested review from BagToad and a balanced review from Copilot August 13, 2026 12:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Clarifies when feature-detection cleanup comments are appropriate.

Changes:

  • Exempts capabilities not planned for GHES from cleanup TODOs.
Show a summary per file
File Description
AGENTS.md Updates feature-detection guidance.

Review details

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Balanced

Comment thread AGENTS.md Outdated

Use feature detection only when an API is not GA on all supported GHES versions; skip it for long-established APIs.

Note that a cleanup comment is only needed when a feature will eventually be available on all GitHub API server (i.e. `github.com`, GHEC, and GHES). Those that are not going to be supported on GHES should not have a cleanup comment.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@copilot Fix the code for this review comment.

When a review comment includes a suggested change, apply the suggestion exactly.

Do not make changes beyond what is described in the linked review comment.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Fixed in 508510f - merged the two rules into one consistent statement: the cleanup TODO is required for temporary gates and not needed for permanent GHES-excluded gates.

Co-authored-by: babakks <36728931+babakks@users.noreply.github.com>
@babakks
babakks enabled auto-merge August 13, 2026 14:52
@babakks
babakks merged commit c613912 into trunk Aug 13, 2026
6 checks passed
@babakks
babakks deleted the babakks/no-cleanup-comment-for-dotcom-only-features branch August 13, 2026 15:01
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.

4 participants