-
Notifications
You must be signed in to change notification settings - Fork 195
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.
-
On pull request opened
-
On updates to a PR (synchronize)
-
On PR reopened
-
Checks out the PR code
- Uses full history (
fetch-depth: 0) so that diffs can be calculated accurately
- Uses full history (
-
Runs Microsoft’s
PR-Metricsaction-
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
-
- How to Create Rules
- How to Edit Rules
- How to Rename Rules
- How to Add and Edit Categories and Top Categories
- How to Rename Categories
- Creating your Fork (One time setup)
- Merging Your Fork
- Updating your fork
- Using Markdown
- Editing MDX Components (in GitHub)