Repository navigation
Add RoosterJS-specific Copilot code review guidelines - #3511
Merged
Merged
Conversation
Julia Roldi (juliaroldi)
marked this pull request as ready for review
December 4, 2026 17:56
Julia Roldi (juliaroldi)
requested review from
Bryan Valverde U (BryanValverdeU) and
Jiuqing Song (JiuqingSong)
December 4, 2026 17:56
|
|
|
||
| - Check whether a DOM event listener duplicates an event already exposed through `PluginEvent`. Handle covered events through `onPluginEvent` instead. | ||
| - Look for calls to `onPluginEvent` from within `onPluginEvent`, including indirect calls that cause recursive event handling. | ||
| - Do not attach event listeners directly to `document`. Use `attachDomEvent` for DOM events not covered by `PluginEvent`, and clean up the returned disposer. |
Jiuqing Song (JiuqingSong)
approved these changes
Dec 4, 2026
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.

Summary
Add
.github/copilot-instructions.mdto guide Copilot code reviews toward actionable, evidence-based findings. Define review priorities and RoosterJS-specific checks for Content Model edits, plugin events, package boundaries, type safety, and meaningful test coverage.How to test
.github/copilot-instructions.mdfor clear review priorities, repository-specific guidance, and focused reporting expectations.yarn test:fast.