Skip to content

📝 add code review guide for agents#141

Merged
bcaudan merged 4 commits into
mainfrom
bcaudan/review-doc
Jun 19, 2026
Merged

📝 add code review guide for agents#141
bcaudan merged 4 commits into
mainfrom
bcaudan/review-doc

Conversation

@bcaudan

@bcaudan bcaudan commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator

Motivation

We increasingly rely on AI agents to review PRs. This adds a concise guide to steer their feedback toward the electron-sdk-specific concerns that matter most (async correctness, SDK observability, bundler/packager coverage) and away from what CI already enforces.

Similar to what was done on the browser-sdk in DataDog/browser-sdk#4706, but tailored to the electron-sdk.

Changes

  • Add docs/REVIEW.md: electron-sdk-specific review guide covering async correctness, error handling philosophy, SDK observability (monitor() usage), backward compatibility, documentation, test quality, bundler/packager coverage, and reuse.
  • Add AGENTS.md at repo root: short instruction file pointing agents to docs/README.md and docs/REVIEW.md before making or reviewing changes (read by Codex and Copilot Coding Agent).
  • Add .github/copilot-instructions.md: condensed version of the review guide for GitHub Copilot code review (which cannot follow file references), with an added review process section (regression detection, git history check, architectural flow, PR scoring).
  • Update docs/README.md to reference the new file.

Test instructions

Documentation-only change, no runtime impact. Review docs/REVIEW.md and .github/copilot-instructions.md for accuracy and tone.

Checklist

  • Tested locally (playground)
  • Added unit tests for this change.
  • Added e2e/integration tests for this change.
  • Updated related documentation.

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

Adds agent-focused documentation to steer PR reviews toward electron-sdk-specific concerns (async correctness, observability/telemetry, bundler & packager coverage) and away from CI-enforced checks.

Changes:

  • Added docs/REVIEW.md with a focused code review checklist (async correctness, error handling, monitor() usage, compatibility, tests, bundler/packager scenarios, reuse guidance).
  • Added root AGENTS.md to direct AI agents to relevant docs before making/reviewing changes.
  • Updated docs/README.md to include the new review guide in the documentation index.

Reviewed changes

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

File Description
docs/REVIEW.md Introduces electron-sdk-specific review guidance for agents (async/telemetry/bundler coverage emphasis).
docs/README.md Adds the new review guide to the docs reference table.
AGENTS.md Provides a short entry point for agents to read the docs index + review guide.

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

Comment thread docs/REVIEW.md Outdated
Comment thread docs/REVIEW.md Outdated
Comment thread docs/REVIEW.md Outdated
bcaudan and others added 2 commits June 19, 2026 16:21
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

Comment thread docs/REVIEW.md Outdated
Comment thread .github/copilot-instructions.md Outdated
Comment thread .github/copilot-instructions.md
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@bcaudan bcaudan marked this pull request as ready for review June 19, 2026 14:43
@bcaudan bcaudan requested a review from a team as a code owner June 19, 2026 14:43
Copilot AI review requested due to automatic review settings June 19, 2026 14:43

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

Comment thread docs/REVIEW.md
Comment thread .github/copilot-instructions.md
@bcaudan bcaudan merged commit b3e6330 into main Jun 19, 2026
15 of 16 checks passed
@bcaudan bcaudan deleted the bcaudan/review-doc branch June 19, 2026 14:47
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