Repository navigation
docs: Guide PR descriptions toward a TL;DR, Why, and What changes - #174
Merged
Merged
Conversation
doistbot
reviewed
Dec 4, 2026
doistbot
left a comment
Member
There was a problem hiding this comment.
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)
.github/PULL_REQUEST_TEMPLATE.md:19: "The PR title becomes the commit message" isn't always true here.
CONTRIBUTING.mddocumentsnext→mainpromotions 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…".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:61listsperf:among the types that don't trigger a release, while this comment (correctly, per theconventionalcommitspreset inrelease.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 inCONTRIBUTING.mdin this PR so the new comment doesn't entrench the contradiction.AGENTS.md:40: This restatement of the template rules already differs from the template:
.github/PULL_REQUEST_TEMPLATE.mdline 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..github/PULL_REQUEST_TEMPLATE.md:21: This line reads as an unconditional rule, but a breaking change titled
refactor!:(ordocs!:etc.) does release as a major — line 20 says any!is a major, and.agents/checks/public-api.mdagrees ("any type with!... a major"). As written, an author could takerefactor:"doesn't release" as license to ship a breaking refactor without a major bump. Suggest a qualifier, e.g. "docs:,chore:,test:,refactor:andci:don't release on their own (unless they carry!or aBREAKING CHANGE:footer)."
This was referenced Dec 4, 2026
docs: Guide PR descriptions toward a TL;DR, Why, and What changes
todoist/todoist-sdk-typescript#808
Merged
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.
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.
⚡ 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
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
Not verified: nobody has run step 1 yet.