Skip to content

Repository files navigation

Breadcrumbs

A CI/CD tool for enforcing helpful file-specific descriptions in GitHub Pull Requests.

Overview

Breadcrumbs enforces an opinionated standard for PR descriptions that requires developers to document their changes on a per-file basis. This helps reviewers understand changes more easily and improves code review efficiency.

How It Works

Breadcrumbs checks your PR description for properly formatted file annotations:

[path/to/file.js]
<L 10-15> Description of what changed in these lines

[another/file.tsx]
<*> Description of changes across the entire file

Description Format

  • File paths must be enclosed in square brackets: [path/to/file.js]
  • Line annotations must be enclosed in angle brackets: <L 10-15> or <*> for all lines
  • Each file modified in the PR must have a corresponding entry in the description
  • Specific line numbers are encouraged but <*> is acceptable

Examples

[components/Nav.tsx]
<L 22-26> Simplified logic for active link highlighting

[lib/hooks/useAuth.ts]
<*> Fixed edge case with expired tokens

[*]
Styling changes across multiple files

Modes

  • Strict Mode: Every modified file must have a specific entry
  • Loose Mode: Allows use of wildcards [*] to cover multiple files

Setup

  1. Add the GitHub workflow to your repository
  2. Configure mode in the workflow file
  3. Start using the format in your PRs!

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages