Skip to content

docs: Guide PR descriptions toward a TL;DR, Why, and What changes - #152

Merged
gnapse merged 2 commits into
mainfrom
docs/pr-description-tldr-why-what
Dec 4, 2026
Merged

gnapse merged 2 commits into
mainfrom
docs/pr-description-tldr-why-what

Conversation

@gnapse

@gnapse gnapse commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

⚡ TL;DR

PR descriptions now open with a short TL;DR, then explain why the PR exists and what changes, in plain words. This repo had no PR template, so this adds one.

🤔 Why

Agents write most of our PR descriptions, and they're hard to follow. They mix the cause, the mechanism and the fix. Code names and unexplained project terms creep in, so reviewers read the diff to understand the description.

🛠 What changes

  • A new template with five sections: TL;DR (one or two sentences), Why, What changes, Reference and Test plan.
  • The template is written for a teammate who has never worked on this part of the Comms CLI. Descriptions name only what the people, scripts and agents running it see: commands, flags and --json fields. Internal files, functions, types and modules stay out.
  • The limit is "fits on one screen". The template also says the PR title sets the release version, and asks for a "Not verified:" line in the Test plan.
  • AGENTS.md gets a short section with the same rules and a re-read pass before opening the PR. Agents follow AGENTS.md more reliably than template comments.
  • The same template goes to the Todoist and Comms MCP servers, CLIs and SDKs. Each copy differs only where the repo does: what callers see, how to try a change, and the examples. It follows the same change in comms-web and todoist-web.

Trade-off: a TL;DR and a Why can repeat each other. The template tells authors not to.

🔗 Reference

Same change in the other repos:

🧪 Test plan

  1. On this branch, ask Claude Code or Codex to write a description for a merged PR from its diff alone.
    • It opens with a TL;DR of one or two sentences.
    • TL;DR, Why and What changes name no internal files, functions or types.
    • Project terms are explained the first time they appear.

Not verified: nobody has run step 1 yet.

@gnapse gnapse added the 👀 Show PR requires passing checks before merge and independent human review before or after merge. label Dec 4, 2026

@doistbot doistbot left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This PR adds a pull request description template and a matching AGENTS.md section guiding descriptions toward a short TL;DR, Why, and What changes. No inline issues were flagged; the template's guidance lines up with existing repo conventions, and reviewers found no security or reuse concerns since the change is documentation-only.

I also left one optional follow-up note in the details below.

Optional follow-up note (1)
  • P3 AGENTS.md:122: This paragraph forbids naming symbols outright, but the template it points at (.github/PULL_REQUEST_TEMPLATE.md, line 11) carves out an exception: "A refactor may name the symbol it moves or renames when that is the point of the PR." Since the PR argues agents follow AGENTS.md more reliably than template comments, a rename PR written from these rules would cut the one name the template allows, and a reviewer reading both gets two answers. Add the same exception here, e.g. "…unless a refactor's point is the symbol it moves or renames".

Share Feedback • Review Logs • Trace

@gnapse gnapse added 🚢 Ship PR requires passing checks before merge, but no independent human review. and removed 👀 Show PR requires passing checks before merge and independent human review before or after merge. labels Dec 4, 2026
gnapse added a commit to todoist/todoist-mcp that referenced this pull request Dec 4, 2026
## ⚡ TL;DR

PR descriptions now open with a short TL;DR, then explain why the PR
exists and what changes, in plain words. This replaces the template's
single "Short description".

## 🤔 Why

Agents write most of our PR descriptions, and they're hard to follow.
They mix the cause, the mechanism and the fix. Code names and
unexplained project terms creep in, so reviewers read the diff to
understand the description.

## 🛠 What changes

- The "Short description" becomes three sections: **TL;DR** (one or two
sentences), **Why** and **What changes**. "Closes #..." moves into a new
**Reference** section, and a **Test plan** section is added.
- The template is written for a teammate who has never worked on this
part of Todoist MCP. Descriptions name only what the models and clients
calling its tools see: tool and parameter names. Internal files,
functions, types and modules stay out.
- The limit is "fits on one screen". The template also says the PR title
sets the release version, and asks for a "Not verified:" line in the
Test plan.
- AGENTS.md gets a short section with the same rules and a re-read pass
before opening the PR. Agents follow AGENTS.md more reliably than
template comments.
- The checklist asks to register new tools in every place AGENTS.md
lists. It replaces an item that pointed to registration code the tool
registry has since replaced.
- The same template goes to the Todoist and Comms MCP servers, CLIs and
SDKs. Each copy differs only where the repo does: what callers see, how
to try a change, and the examples. It follows the same change in
comms-web and todoist-web.

Trade-off: a TL;DR and a Why can repeat each other. The template tells
authors not to.

## 🔗 Reference

Same change in the other repos:
- todoist/todoist-cli#739
- todoist/todoist-sdk-typescript#808
- todoist/comms-mcp#135
- todoist/comms-cli#152
- todoist/comms-sdk-typescript#174

## 🧪 Test plan

1. On this branch, ask Claude Code or Codex to write a description for a
merged PR from its diff alone.
    - [ ] It opens with a TL;DR of one or two sentences.
- [ ] TL;DR, Why and What changes name no internal files, functions or
types.
    - [ ] Project terms are explained the first time they appear.

Not verified: nobody has run step 1 yet.
gnapse added a commit to todoist/todoist-cli that referenced this pull request Dec 4, 2026
## ⚡ TL;DR

PR descriptions now open with a short TL;DR, then explain why the PR
exists and what changes, in plain words. This repo had no PR template,
so this adds one.

## 🤔 Why

Agents write most of our PR descriptions, and they're hard to follow.
They mix the cause, the mechanism and the fix. Code names and
unexplained project terms creep in, so reviewers read the diff to
understand the description.

## 🛠 What changes

- A new template with five sections: **TL;DR** (one or two sentences),
**Why**, **What changes**, **Reference** and **Test plan**.
- The template is written for a teammate who has never worked on this
part of the Todoist CLI. Descriptions name only what the people, scripts
and agents running it see: commands, flags and `--json` fields. Internal
files, functions, types and modules stay out.
- The limit is "fits on one screen". The template also says the PR title
sets the release version, and asks for a "Not verified:" line in the
Test plan.
- AGENTS.md gets a short section with the same rules and a re-read pass
before opening the PR. Agents follow AGENTS.md more reliably than
template comments.
- The same template goes to the Todoist and Comms MCP servers, CLIs and
SDKs. Each copy differs only where the repo does: what callers see, how
to try a change, and the examples. It follows the same change in
comms-web and todoist-web.

Trade-off: a TL;DR and a Why can repeat each other. The template tells
authors not to.

## 🔗 Reference

Same change in the other repos:
- todoist/todoist-mcp#829
- todoist/todoist-sdk-typescript#808
- todoist/comms-mcp#135
- todoist/comms-cli#152
- todoist/comms-sdk-typescript#174

## 🧪 Test plan

1. On this branch, ask Claude Code or Codex to write a description for a
merged PR from its diff alone.
    - [ ] It opens with a TL;DR of one or two sentences.
- [ ] TL;DR, Why and What changes name no internal files, functions or
types.
    - [ ] Project terms are explained the first time they appear.

Not verified: nobody has run step 1 yet.
@gnapse
gnapse merged commit 548a68c into main Dec 4, 2026
7 checks passed
@gnapse
gnapse deleted the docs/pr-description-tldr-why-what branch December 4, 2026 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🚢 Ship PR requires passing checks before merge, but no independent human review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants