Repository navigation
docs: PR description guidelines - #10707
Conversation
|
|
@chrisgervang I appreciate your input here, but it feels a bit backwards to me. The problem of verbose PR description has come about because people are using AI to draft them. Pre-2025 it was rare for somebody to just post a wall of text as they had to type it! Adding 400 lines of guidelines on how to write a PR description has precisely one audience: AI. No human is going to read and remember all this. The way the text is written assumes in numerous places that it indeed will be AI writing PR descriptions (no surprise, given I strongly suspect it is AI-drafted 😄 ). The PR template is pretty clear in what is expected in a PR message and people didn't have trouble following the pattern in the past. In general we should as a TSC come to an agreement on what we want:
@chrisgervang @Pessimistress @ibgreen it would be good to get your vote here. If I'm in the minority here it would be good to know |
|
Well, yeah - it includes hundreds of lines of quotation that I wanted to include and it was drafted by AI. It was a reasoning and research exercise - the tokens went through over a hundred PR descriptions over the last decade, pre-AI, to reason about what contributors do (it's a skill the models are very good at). And then I am going through it to rewrite weird text until it's something that seems good to go.. You could say I've assimilated (and in some cases resigned) to the new habits that the majority of engineers around me have adopted. The optimist in me thinks there are big improvements we can make with these new tools.. and we need to invest more time into creating an environment in which good code and development practices are followed. long walls of text, lazy communication, and poorly written comments are very annoying to review. AIs can write useful and easy to read descriptions with good guidance.. I don't actually believe another person's AI will write a better summary because they don't know why someone is making this change. |
|
OK well so we can move forward, why don't we merge this and see how the PR descriptions evolve over the next months. I'm out until the end of the year anyway, and there doesn't seem to be a strong support in the TSC to mandate human written descriptions, so I don't see the harm in better guiding the LLMs |
Add dev-docs/pr-description-guidelines.md based on descriptions from PRs merged between 2016 and 2024, point the PR template and AGENTS.md at it, and link it from CONTRIBUTING.md. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01FxTrx7YCgJTjgKsAMxu2st
907c3dc to
07db528
Compare
For #10701
Background
The PR template says which headings to use but not what a good description looks like, and
AGENTS.mdasks agents for "goals, changes and validation", which is where the long generated descriptions come from. This PR documents the style maintainers already use, with examples from PRs merged between 2016 and 2024, and points the template andAGENTS.mdat it.Change List
dev-docs/pr-description-guidelines.md: structure, rules, examples, rewrites, notes for AI assistants.github/pull_request_template.md: comments point to the guidelinesAGENTS.md: add "Pull Request Descriptions"; "Ready For Merge" follows the guidelinesCONTRIBUTING.md: link the guidelinesThis description was drafted by an AI coding agent following the proposed guidelines.
Note
Low Risk
Documentation and contributor-process changes only; no runtime, API, or build behavior changes.
Overview
Adds
dev-docs/pr-description-guidelines.mdas the canonical style for deck.gl PR descriptions: required template sections (issue link, optional Background, Change List), length and bullet rules, how to record verification, and what to omit (extra sections, file tables, reviewer checkboxes). It includes historical PR examples, before/after rewrites, and a short section for AI assistants..github/pull_request_template.mdcomments now point at that doc and spell out when to use optional Background, Change List bullets, screenshots, and TODO.AGENTS.mdgains a Pull Request Descriptions section aligned with the guidelines and replaces vague “goals, changes and validation” merge handoff text with instructions to follow the template and guidelines.CONTRIBUTING.mdlinks the new doc in the PR prep list.Reviewed by Cursor Bugbot for commit 07db528. Bugbot is set up for automated code reviews on this repo. Configure here.