Skip to main content

PR Template Generator: Pull Request Description Templates for GitHub, GitLab and Bitbucket

Build a pull request template for your repo: pick the change type, platform, team style and sections, and get a ready-to-commit .github/pull_request_template.md, GitLab Default.md, Bitbucket or Azure DevOps file, with a live preview, copy and download.

Last updatedHow we build & check our tools

Interactive Tool

Loading interactive tool…

Enter your values once it appears to see your results.

Results will appear here once the tool finishes loading. Everything runs locally in your browser.

Where each platform looks for a pull request template

The file name and folder are what make a template work. Get either wrong and the platform ignores the file without telling you. The generator writes to the path each platform documents:

PlatformDefault templateSeveral templates
GitHub.github/pull_request_template.md (root or docs/ also work).github/PULL_REQUEST_TEMPLATE/*.md, chosen with ?template=name.md
GitLab.gitlab/merge_request_templates/Default.mdAny other .md in that folder, chosen from the template dropdown
Bitbucket Cloud.bitbucket/pull_request_template.mdOne file only
Azure DevOps.azuredevops/pull_request_template.md (also .vsts/, docs/, root).azuredevops/pull_request_template/*.md, under "Add a template"

GitHub, GitLab and Azure DevOps read the template from the default branch, so it does nothing until it is merged. Bitbucket Cloud reads it from the source branch of each pull request, so branches cut before you committed the file will not pick it up until they merge or rebase on it.

What the generated template contains, with the default example

The template that loads with the page is a GitHub, standard-style feature template with a linked issue, testing steps and screenshots. In order, it holds:

  1. A hidden comment with the title format: feat: <summary in the imperative>, for example "feat: add CSV export to invoices".
  2. Summary, asking what changed and why, problem first.
  3. Changes, a short list of where to look first.
  4. Related issue, prefilled with Closes #.
  5. How to test, numbered steps plus "Unit tests added or updated" and "Tested locally" checkboxes.
  6. Screenshots, a two-column Before / After table.
  7. Checklist: self-review, docs updated, no debug code left.

Switch the change type and the middle changes. A bug fix asks for the bug, root cause and fix. A refactor asks for the motivation and whether behaviour changes. A hotfix asks for the incident and a follow-up ticket and always includes a rollback plan. A dependency bump gets a Package / From / To / Changelog table. Guidance sits in HTML comments, which GitHub and GitLab hide when the description renders, so authors see the prompts while typing and reviewers do not.

Choosing minimal, standard or strict

A template people delete is worse than none. Pick the style that matches how your team reviews:

  • Minimal: a summary, the type-specific section and two checkboxes. Suits a small team where everyone knows the codebase.
  • Standard: every section you tick, plus an author checklist. Suits most product teams.
  • Strict: adds a risk level (low, medium, high), deployment notes, CI and edge-case checkboxes, consumer migration steps for breaking changes, and a security reviewer request. Suits regulated code, payments, or open source projects with outside contributors.

The title hint follows Conventional Commits 1.0.0. If your repo uses squash merges, the PR title becomes the commit message, so a feat: or fix: prefix is what release tooling reads to decide between a minor and a patch version. Add ! after the type for a breaking change. The semver calculator shows which version ranges a bump like that will break.

What a template cannot do

  • It does not enforce anything. Checkboxes can be ticked without doing the work, and unticked ones do not block a merge. Use branch protection, required reviewers and CI checks for rules that must hold.
  • GitHub does not offer a menu of templates. Files in PULL_REQUEST_TEMPLATE/ are only used when the compare URL carries ?template=name.md. Put the links in your CONTRIBUTING file or a bookmark.
  • Closing keywords only close issues on the default branch. "Closes #123" on a pull request into a release branch links the issue but leaves it open.
  • Bitbucket Cloud has one template. If you need per-type templates there, use the strict style and delete the sections that do not apply.

Frequently Asked Questions

Common questions about the PR Template Generator: Pull Request Description Templates for GitHub, GitLab and Bitbucket

Save it as pull_request_template.md in the .github folder, the repository root or docs/, then merge it into the default branch. GitHub fills the description of every new pull request from it after that. The generator uses .github/pull_request_template.md, which keeps the root clean.

From the same team

Turn your GPU into an OpenAI-compatible API endpoint

Wide Area AI routes your LLM API calls to your own hardware over a Cloudflare Tunnel — free local inference with edge caching and automatic cloud failover. Works with any OpenAI SDK.

Start routing — free

Sources & References

Creating a pull request template for your repository

GitHub's rules for template file names and folders.
- Root, docs/ or .github/; PULL_REQUEST_TEMPLATE/ for several.
- Takes effect once merged to the default branch.

Using query parameters to create a pull request

The template= query parameter that picks a file from PULL_REQUEST_TEMPLATE/.

Description templates

GitLab merge request templates.
- .gitlab/merge_request_templates/ on the default branch.
- Default.md applies automatically on all tiers.

Pull Request templates in Bitbucket Cloud

The .bitbucket/pull_request_template.md file, read from the source branch.

Improve pull request descriptions with pull request templates

Azure Repos default, branch-specific and additional template locations and search order.

Conventional Commits 1.0.0

Title prefixes used in the template's title hint.
- feat, fix and other types; ! or a BREAKING CHANGE footer for breaking changes.

Writing good CL descriptions

Google Engineering Practices guidance behind the Summary section.
- A short first line saying what changed, then a body explaining why.