Skip to content

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

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 SDK. Descriptions name only what the code calling it see: public methods, arguments and exported types. 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 is a docs-only PR that adds a GitHub PR template (TL;DR, Why, What changes, Reference, Test plan) plus a matching guidance section in AGENTS.md, aligned with similar changes in sibling repos. Review confirmed the template's release-version claims match the repo's semantic-release and CONTRIBUTING configuration, the two documents are mutually consistent, the file sits in the correct location, and nothing in the change touches code or security surface. No inline issues were flagged.

I also included a few optional follow-up notes in the details below.

Optional follow-up notes (4)
  • P3 .github/PULL_REQUEST_TEMPLATE.md:19: "The PR title becomes the commit message" isn't always true here. CONTRIBUTING.md documents next → main promotions as a regular merge commit ("not squash"), where the PR title is not the commit message and semantic-release versions off the individual commits. An author of such a promotion could read this and assume their ! title sets the major bump. Suggest matching CONTRIBUTING's wording: "With a squash merge, the PR title becomes the commit message and sets the release version…"
  • P3 .github/PULL_REQUEST_TEMPLATE.md:20: This mapping is already documented three times: docs/agents.md ("Releases"), CONTRIBUTING.md ("Commit Message Guidelines") and .agents/checks/public-api.md, and the copies already disagree — CONTRIBUTING.md:61 lists perf: among the types that don't trigger a release, while this comment (correctly, per the conventionalcommits preset in release.config.js) makes it a patch. Adding a fourth copy keeps the drift alive for the next person who adds a commit type. Either keep the rule in one place and point the comment at it (e.g. "see docs/agents.md#releases"), or fix the stale copy in CONTRIBUTING.md in this PR so the new comment doesn't entrench the contradiction.
  • P3 AGENTS.md:40: This restatement of the template rules already differs from the template: .github/PULL_REQUEST_TEMPLATE.md line 11 says "A refactor may name the symbol it moves or renames when that is the point", but this bullet forbids naming internal helpers unconditionally. An internal restructure is exactly the case where an agent following AGENTS.md would strip the one name that makes the description useful. Carry the same exception over here, or drop the duplicated rules and defer to the template.
  • P3 .github/PULL_REQUEST_TEMPLATE.md:21: This line reads as an unconditional rule, but a breaking change titled refactor!: (or docs!: etc.) does release as a major — line 20 says any ! is a major, and .agents/checks/public-api.md agrees ("any type with ! ... a major"). As written, an author could take refactor: "doesn't release" as license to ship a breaking refactor without a major bump. Suggest a qualifier, e.g. "docs:, chore:, test:, refactor: and ci: don't release on their own (unless they carry ! or a BREAKING CHANGE: footer)."

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 fe1fe27 into main Dec 4, 2026
5 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