Skip to content

docs: test PR labels CI behavior#5

Closed
williamfzc wants to merge 21 commits intomainfrom
test-pr-pipeline
Closed

docs: test PR labels CI behavior#5
williamfzc wants to merge 21 commits intomainfrom
test-pr-pipeline

Conversation

@williamfzc
Copy link
Copy Markdown
Owner

This is a draft PR to verify that the PR Labels GitHub Actions CI works successfully.

Replaced synthetic or open PR samples with actual merged/closed PRs from the
repository to provide a more accurate reflection of the size label categorization.
Added 4 samples each for sizes S, M, and L covering docs, fixes, ci, and features.
Based on user feedback, fine-grained domain labels (like `domain/base`) are too detailed for the early stages.
This change adds support for applying `area/*` tags to indicate which important top-level modules a PR touches.

Currently tracked areas:
- `area/shortcuts`
- `area/skills`
- `area/cmd`

Minor modules like docs, ci, and tests are intentionally excluded to keep tags focused on critical architectural components.
To avoid polluting the root `scripts/` directory, moved `sync_pr_labels.js` and
`sync_pr_labels.samples.json` into a new `scripts/sync-pr-labels/` folder.
Added a dedicated README to document its usage and behavior.
Updated `.github/workflows/pr-labels.yml` to reflect the new path.
Renamed `scripts/sync-pr-labels/` to `scripts/pr-labels/` to keep directory
names concise. Updated internal references and GitHub workflow files to point
to the new path.
Added `expected_areas` lists to each sample in `samples.json` to reflect
the newly added `area/*` high-level module tagging logic. Allows testing
to accurately check both `size/*` and `area/*` outputs.
- Reorganized code into logical sections with clear comments
- Encapsulated GitHub API interactions into a reusable `GitHubClient` class
- Extracted and centralized classification logic into a pure `evaluateRules` function
- Replaced magic numbers with named constants (`THRESHOLD_L`, `THRESHOLD_XL`)
- Fixed `ROOT` path resolution logic
- Simplified conditional statements and control flow
@williamfzc williamfzc marked this pull request as ready for review March 31, 2026 08:30
@williamfzc williamfzc marked this pull request as draft March 31, 2026 08:37
@williamfzc williamfzc added size/S Low-risk docs, CI, test, or chore only changes and removed size/S Low-risk docs, CI, test, or chore only changes labels Mar 31, 2026
@williamfzc williamfzc marked this pull request as ready for review March 31, 2026 09:06
@github-actions github-actions Bot added the size/S Low-risk docs, CI, test, or chore only changes label Mar 31, 2026
@williamfzc williamfzc removed the size/S Low-risk docs, CI, test, or chore only changes label Mar 31, 2026
@williamfzc williamfzc marked this pull request as draft March 31, 2026 09:40
@github-actions github-actions Bot added area/base PR touches the base area size/M Single-domain feat or fix with limited business impact labels Mar 31, 2026
@williamfzc williamfzc force-pushed the test-pr-pipeline branch 3 times, most recently from 9b50a0b to 88149c4 Compare March 31, 2026 14:28
@github-actions github-actions Bot added the domain/base PR touches the base domain label Mar 31, 2026
@williamfzc williamfzc removed the area/base PR touches the base area label Mar 31, 2026
@williamfzc williamfzc removed size/M Single-domain feat or fix with limited business impact domain/base PR touches the base domain labels Apr 1, 2026
@github-actions github-actions Bot added domain/base PR touches the base domain size/M Single-domain feat or fix with limited business impact labels Apr 1, 2026
@williamfzc williamfzc closed this Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain/base PR touches the base domain size/M Single-domain feat or fix with limited business impact

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant