mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-21 13:31:55 -05:00
[PR #1243] [MERGED] fix: deterministic file-path rules for PR area labels #1195
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/harvard-edge/cs249r_book/pull/1243
Author: @profvjreddi
Created: 3/16/2026
Status: ✅ Merged
Merged: 3/16/2026
Merged by: @profvjreddi
Base:
dev← Head:fix/auto-label-deterministic-area📝 Commits (1)
aa9758dfix: use deterministic file-path rules for PR area labels📊 Changes
1 file changed (+133 additions, -93 deletions)
View changed files
📝
.github/workflows/auto-label.yml(+133 -93)📄 Description
Summary
llama3.1:8b) was mis-tagging PRs (e.g., #1242 gotarea: socratiqinstead ofarea: book) because it only saw title/body text — no file pathsHow it works
New step fetches changed files via
pulls.listFiles()and matches against prefix rules:book/tools/area: tools.github/area: toolsbook/area: booktinytorch/area: tinytorchkits/area: kitslabs/area: labssocratiq/area: socratiqwebsite/area: websiteMajority-wins when a PR touches multiple areas. Falls back to LLM only if no prefix matches.
Test plan
area: booktinytorch/files to verify correct tagging🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.