Skip to content

GitHub Action T‐shirt Size the PR

Chloe Lin [SSW] edited this page Jun 10, 2025 · 1 revision

This GitHub Action automatically assigns a T-shirt size to every pull request — based on how big the change is.
This action is part of SSW’s recommended pull request workflow.

When It Runs

  • On pull request opened

  • On updates to a PR (synchronize)

  • On PR reopened

What It Does

  1. Checks out the PR code

    • Uses full history (fetch-depth: 0) so that diffs can be calculated accurately
  2. Runs Microsoft’s PR-Metrics action

    • Calculates a score based on the number of lines changed

    • Classifies the PR into a “size category” (e.g. XS, S, M, L, XL, XXL)

    • Posts the result as a status check on the PR

Clone this wiki locally