Skip to content

Use auto-cc lines for generated cc mentions#8079

Open
ezyang wants to merge 1 commit into
mainfrom
gh/ezyang/3/head
Open

Use auto-cc lines for generated cc mentions#8079
ezyang wants to merge 1 commit into
mainfrom
gh/ezyang/3/head

Conversation

@ezyang
Copy link
Copy Markdown
Contributor

@ezyang ezyang commented May 14, 2026

No description provided.

Refactor autoCcBot to emit "auto-cc @user" lines instead of plain "cc @user"
lines when adding subscription-based mentions. This prevents the bot from
clobbering manually written "cc @user" lines that users add themselves.

Key changes:
- Parse existing "cc" lines separately from "auto-cc" lines in the body
- Exclude users already mentioned in explicit "cc" lines from the auto-cc set
- Replace/insert/remove only the "auto-cc" line, leaving explicit "cc" lines
  untouched
- Remove the auto-cc line entirely when all subscription users are already
  covered by explicit cc mentions
- Add TypeScript type annotations to fix ts-ignore suppressions on Set and
  forEach callbacks
- Update tests to reflect the new "auto-cc" prefix and add new test cases for
  mixed explicit/auto cc scenarios and auto-cc removal

[ghstack-poisoned]
@ezyang
Copy link
Copy Markdown
Contributor Author

ezyang commented May 14, 2026

Stack from ghstack (oldest at bottom):

@vercel
Copy link
Copy Markdown

vercel Bot commented May 14, 2026

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

Project Deployment Actions Updated (UTC)
torchci Ready Ready Preview May 14, 2026 4:37am

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 14, 2026
@ezyang ezyang requested a review from malfet May 14, 2026 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant