meta: add a label taxonomy and setup script #96

Open
raulmoracode wants to merge 1 commit from upstream-pr/97 into main
raulmoracode commented 2026-11-21 15:56:42 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by raulmoracode on 2026-11-21T15:56:42Z.


Refs #93

Draft: merge only after the RFC accepts the label names and the maintainer is ready to create the labels.

Change

Adds docs/labels.md and an idempotent tools/setup-labels.ps1. The script
creates new labels with gh label create and updates only existing labels whose
color or description differs with gh label edit; it never deletes labels.

Verification

git diff --check passes. The taxonomy is documented in the RFC.

pwsh -NoProfile -File ./tools/setup-labels.ps1 -DryRun prints 19 CREATE rows
against the current 10 existing labels. It also lists the existing labels that
would remain untouched. The dry-run output is in the pull request discussion.

Evidence and follow-up

Labels are repository settings. This pull request does not create them by itself
and does not run automatically. A maintainer must review the names, colors and
descriptions, then run the script.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6531054546 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/97). Originally posted by [raulmoracode](https://github.com/raulmoracode) on 2026-11-21T15:56:42Z. --- Refs #93 Draft: merge only after the RFC accepts the label names and the maintainer is ready to create the labels. ## Change Adds `docs/labels.md` and an idempotent `tools/setup-labels.ps1`. The script creates new labels with `gh label create` and updates only existing labels whose color or description differs with `gh label edit`; it never deletes labels. ## Verification `git diff --check` passes. The taxonomy is documented in the RFC. `pwsh -NoProfile -File ./tools/setup-labels.ps1 -DryRun` prints 19 `CREATE` rows against the current 10 existing labels. It also lists the existing labels that would remain untouched. The dry-run output is in the pull request discussion. ## Evidence and follow-up Labels are repository settings. This pull request does not create them by itself and does not run automatically. A maintainer must review the names, colors and descriptions, then run the script.
R0Y00 commented 2026-11-24 06:47:37 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-21T16:23:14Z.


Please keep this as a draft while we review the proposed labels. Could you attach the -DryRun output for this repository and distinguish newly created labels from updates to existing names, colors or descriptions?

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7065608111 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/97#issuecomment-7065608111). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-21T16:23:14Z. --- Please keep this as a draft while we review the proposed labels. Could you attach the -DryRun output for this repository and distinguish newly created labels from updates to existing names, colors or descriptions?
raulmoracode commented 2026-11-24 06:47:37 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by raulmoracode on 2026-11-21T16:27:01Z.


Kept as a draft. I added an existing-label comparison to the dry run: the script now reads the current labels with gh label list, prints CREATE, UPDATE or UNCHANGED for each proposed label, and shows old and new colors or descriptions for updates.

On current main (88fd8c5), all 19 proposed labels are new and the 10 existing labels would remain untouched:

Action Label Color Description Change
CREATE research #5319e7 A compatibility question with a reproducible test. new label
CREATE build #bfd4f2 CMake, toolchain, packaging or build-script work. new label
CREATE ci #c5def5 GitHub Actions and automation. new label
CREATE tests #d4c5f9 Fixtures, coverage and test infrastructure. new label
CREATE area/cpu #1d76db x64 lifting, ABI, unwind and PE execution. new label
CREATE area/gpu #0e8a16 D3D12, BVH, DXR and GPU coverage. new label
CREATE area/shader #b60205 gfx1013 decoding, HLSL lowering and DXIL. new label
CREATE area/ffx #d93f0b FidelityFX loader, upscaler and FSR4. new label
CREATE area/textures #fbca04 BC7, BCPack, mip tails and texture views. new label
CREATE area/script #006b75 RPF, PSIN, state trees and script replay. new label
CREATE area/pe #5319e7 PE mapping, imports, intake and dependency paths. new label
CREATE area/runtime #0052cc Heap, memory queries and Windows shims. new label
CREATE area/tooling #bfdadc Python tools and fixtures. new label
CREATE area/meta #6f42c1 Contribution workflow, templates, labels and repository process. new label
CREATE needs-repro #e4e669 A reproducible input or command is missing. new label
CREATE needs-hardware #d4c5f9 A physical GPU or adapter-specific result is required. new label
CREATE needs-windows #c2e0c6 The task requires the Windows build or D3D12 runtime. new label
CREATE needs-game-files #f9d0c4 The task needs a local package; public fixtures are not enough. new label
CREATE blocked #000000 Work cannot proceed until another task or decision is resolved. new label

Existing labels not in the proposal (unchanged): accessibility, bug, documentation, duplicate, enhancement, good first issue, help wanted, invalid, question, wontfix.

The script uses gh label create only for new names and gh label edit for existing names. It never deletes labels.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7065655182 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/97#issuecomment-7065655182). Originally posted by [raulmoracode](https://github.com/raulmoracode) on 2026-11-21T16:27:01Z. --- Kept as a draft. I added an existing-label comparison to the dry run: the script now reads the current labels with `gh label list`, prints `CREATE`, `UPDATE` or `UNCHANGED` for each proposed label, and shows old and new colors or descriptions for updates. On current `main` (`88fd8c5`), all 19 proposed labels are new and the 10 existing labels would remain untouched: | Action | Label | Color | Description | Change | |---|---|---|---|---| | CREATE | research | #5319e7 | A compatibility question with a reproducible test. | new label | | CREATE | build | #bfd4f2 | CMake, toolchain, packaging or build-script work. | new label | | CREATE | ci | #c5def5 | GitHub Actions and automation. | new label | | CREATE | tests | #d4c5f9 | Fixtures, coverage and test infrastructure. | new label | | CREATE | area/cpu | #1d76db | x64 lifting, ABI, unwind and PE execution. | new label | | CREATE | area/gpu | #0e8a16 | D3D12, BVH, DXR and GPU coverage. | new label | | CREATE | area/shader | #b60205 | gfx1013 decoding, HLSL lowering and DXIL. | new label | | CREATE | area/ffx | #d93f0b | FidelityFX loader, upscaler and FSR4. | new label | | CREATE | area/textures | #fbca04 | BC7, BCPack, mip tails and texture views. | new label | | CREATE | area/script | #006b75 | RPF, PSIN, state trees and script replay. | new label | | CREATE | area/pe | #5319e7 | PE mapping, imports, intake and dependency paths. | new label | | CREATE | area/runtime | #0052cc | Heap, memory queries and Windows shims. | new label | | CREATE | area/tooling | #bfdadc | Python tools and fixtures. | new label | | CREATE | area/meta | #6f42c1 | Contribution workflow, templates, labels and repository process. | new label | | CREATE | needs-repro | #e4e669 | A reproducible input or command is missing. | new label | | CREATE | needs-hardware | #d4c5f9 | A physical GPU or adapter-specific result is required. | new label | | CREATE | needs-windows | #c2e0c6 | The task requires the Windows build or D3D12 runtime. | new label | | CREATE | needs-game-files | #f9d0c4 | The task needs a local package; public fixtures are not enough. | new label | | CREATE | blocked | #000000 | Work cannot proceed until another task or decision is resolved. | new label | Existing labels not in the proposal (unchanged): accessibility, bug, documentation, duplicate, enhancement, good first issue, help wanted, invalid, question, wontfix. The script uses `gh label create` only for new names and `gh label edit` for existing names. It never deletes labels.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/97:upstream-pr/97'
git switch 'upstream-pr/97'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/97'
git switch 'upstream-pr/97'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/97'
git switch 'upstream-pr/97'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/97'
git switch 'main'
git merge --squash 'upstream-pr/97'
git switch 'main'
git merge --ff-only 'upstream-pr/97'
git switch 'main'
git merge 'upstream-pr/97'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!96
No description provided.