Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/merge-bot-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

merge-bot:
name: Merge bot pull request job
uses: ptr727/ProjectTemplate/.github/workflows/merge-bot-task.yml@77a5e2d1a2424428c9962ed494f624a19264cb93 # 2.0.1625
uses: ptr727/ProjectTemplate/.github/workflows/merge-bot-task.yml@ac58eecb52e99e5bf7d3aef6ba18862bdf745a60 # 2.0.1682
# The repository-wide auto-delete stays off, so the task deletes each merged bot head branch instead.
with:
delete-branch: true
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
# Single source of the release-gate decision, publish or not and stable or not, reused by every job below.
plan:
name: Plan release job
uses: ptr727/ProjectTemplate/.github/workflows/publish-plan-task.yml@77a5e2d1a2424428c9962ed494f624a19264cb93 # 2.0.1625
uses: ptr727/ProjectTemplate/.github/workflows/publish-plan-task.yml@ac58eecb52e99e5bf7d3aef6ba18862bdf745a60 # 2.0.1682
with:
event_name: ${{ github.event_name }}
actor: ${{ github.actor }}
Expand All @@ -52,7 +52,7 @@ jobs:
name: Validate job
needs: [plan]
if: ${{ needs.plan.outputs.publish == 'true' }}
uses: ptr727/ProjectTemplate/.github/workflows/validate-task.yml@77a5e2d1a2424428c9962ed494f624a19264cb93 # 2.0.1625
uses: ptr727/ProjectTemplate/.github/workflows/validate-task.yml@ac58eecb52e99e5bf7d3aef6ba18862bdf745a60 # 2.0.1682
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
permissions:
Expand All @@ -67,7 +67,7 @@ jobs:
name: Publish project release job
needs: [plan, validate]
if: ${{ needs.plan.outputs.publish == 'true' && needs.validate.result == 'success' }}
uses: ptr727/ProjectTemplate/.github/workflows/build-release-task.yml@77a5e2d1a2424428c9962ed494f624a19264cb93 # 2.0.1625
uses: ptr727/ProjectTemplate/.github/workflows/build-release-task.yml@ac58eecb52e99e5bf7d3aef6ba18862bdf745a60 # 2.0.1682
permissions:
contents: write
actions: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-periodic-codegen-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

run-codegen:
name: Run codegen and pull request job
uses: ptr727/ProjectTemplate/.github/workflows/run-codegen-pull-request-task.yml@77a5e2d1a2424428c9962ed494f624a19264cb93 # 2.0.1625
uses: ptr727/ProjectTemplate/.github/workflows/run-codegen-pull-request-task.yml@ac58eecb52e99e5bf7d3aef6ba18862bdf745a60 # 2.0.1682
secrets:
CODEGEN_APP_CLIENT_ID: ${{ secrets.CODEGEN_APP_CLIENT_ID }}
CODEGEN_APP_PRIVATE_KEY: ${{ secrets.CODEGEN_APP_PRIVATE_KEY }}
4 changes: 2 additions & 2 deletions .github/workflows/test-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:

validate:
name: Validate job
uses: ptr727/ProjectTemplate/.github/workflows/validate-task.yml@77a5e2d1a2424428c9962ed494f624a19264cb93 # 2.0.1625
uses: ptr727/ProjectTemplate/.github/workflows/validate-task.yml@ac58eecb52e99e5bf7d3aef6ba18862bdf745a60 # 2.0.1682
permissions:
contents: read
# Mapped explicitly rather than inherited, since this is a cross-repository call and secrets: inherit would hand the callee every secret this repository holds.
Expand All @@ -75,7 +75,7 @@ jobs:
name: Smoke build job
needs: [changes]
if: needs.changes.outputs.release == 'true' || github.event_name == 'workflow_dispatch'
uses: ptr727/ProjectTemplate/.github/workflows/build-release-task.yml@77a5e2d1a2424428c9962ed494f624a19264cb93 # 2.0.1625
uses: ptr727/ProjectTemplate/.github/workflows/build-release-task.yml@ac58eecb52e99e5bf7d3aef6ba18862bdf745a60 # 2.0.1682
permissions:
contents: read
with:
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**LanguageTags** is a C# .NET library for handling ISO 639-2, ISO 639-3, and RFC 5646 / BCP 47 language tags. The library ships as the NuGet package `ptr727.LanguageTags` and is consumed directly from `main`. The repo also contains a CLI codegen tool (`LanguageTagsCreate/`) that refreshes embedded language data from upstream registries, and an xUnit test project (`LanguageTagsTests/`).

This file is the entry point every coding agent reads first (Claude Code reads [`CLAUDE.md`](./CLAUDE.md), which imports this file). Past that description, the sections below are the only three things this file holds: the bootstrap that says where the canonical rules live and which procedure to follow for the state this repository is actually in, the rules for managing context and delegation, which apply to every task, and a map of where every other rule lives. The fleet-wide rule text itself is in [`GOVERNANCE.md`](./GOVERNANCE.md), one section per topic. Code style lives in [`CODESTYLE.md`](./CODESTYLE.md), the CI/CD workflow contract in [`WORKFLOW.md`](./WORKFLOW.md), the library's design and public-API contracts in [`ARCHITECTURE.md`](./ARCHITECTURE.md), and how this repository is run day to day in [`OPERATIONS.md`](./OPERATIONS.md).
This file is the entry point every coding agent reads first. Past the description above, it holds three things. The first is the bootstrap that says where the canonical rules live and which procedure fits the state this repository is in. The second is the rules for managing context and delegation, which apply to every task. The third is a map of where every other rule lives. The fleet-wide rule text itself is in [`GOVERNANCE.md`](./GOVERNANCE.md), one section per topic. Code style lives in [`CODESTYLE.md`](./CODESTYLE.md) and the CI/CD workflow contract in [`WORKFLOW.md`](./WORKFLOW.md). The library's design and public-API contracts live in [`ARCHITECTURE.md`](./ARCHITECTURE.md). How this repository is run day to day lives in [`OPERATIONS.md`](./OPERATIONS.md).

Treat this file and `GOVERNANCE.md` as authoritative for cross-cutting rules, and do not restate their rules elsewhere. This project's own public-API and behavioral contracts live in [`ARCHITECTURE.md`](./ARCHITECTURE.md), which the paragraph above routes to, and never in [`.github/copilot-instructions.md`](./.github/copilot-instructions.md), because that file targets GitHub Copilot and VS Code specifically while the docs this file routes to are the agent-agnostic ones every coding agent reads.

Expand Down
5 changes: 0 additions & 5 deletions CLAUDE.md

This file was deleted.

1 change: 0 additions & 1 deletion GOVERNANCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,6 @@ Every repo's GitHub repository details (the About panel) follow a fixed conventi
## Repository Layout

- [`AGENTS.md`](./AGENTS.md): the agent entry point, carrying context and delegation rules plus the map to the sections below.
- [`CLAUDE.md`](./CLAUDE.md): imports `AGENTS.md`, since Claude Code reads `CLAUDE.md` and never `AGENTS.md` on its own. Carries no rule of its own.
- [`GOVERNANCE.md`](./GOVERNANCE.md), [`CODESTYLE.md`](./CODESTYLE.md), [`WORKFLOW.md`](./WORKFLOW.md): the governance docs. This file is the cross-cutting-rules authority.
- [`ARCHITECTURE.md`](./ARCHITECTURE.md): how the library is laid out, and the public-API and behavioral contracts a consumer is entitled to assume.
- [`OPERATIONS.md`](./OPERATIONS.md): how this repo is run, day to day, beyond what CI covers.
Expand Down
2 changes: 1 addition & 1 deletion OPERATIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ How this repo is run, day to day, beyond what CI covers. [`AGENTS.md`](./AGENTS.
What verifying a change in this repo requires, and which part of the repo's contract CI structurally cannot exercise.

- **Clean-compile.** Run the `.NET Format` VS Code task (chains `CSharpier Format` -> `.NET Build` -> `dotnet format style --verify-no-changes`) after every code change; see [`.vscode/tasks.json`](./.vscode/tasks.json) for the exact command sequence, and [`CODESTYLE.md`](./CODESTYLE.md) "Clean-Compile Verification" for why it must match exactly.
- **Tests.** `dotnet test --coverage --coverage-output-format cobertura --results-directory ./coverage` (native Microsoft.Testing.Platform mode, per `global.json`, driving `Microsoft.Testing.Extensions.CodeCoverage`). This is also the invocation CI's `Validate job / Unit test job` runs, so a local pass predicts the CI result.
- **Tests.** `dotnet test --coverage --coverage-output-format cobertura --results-directory ./coverage` (native Microsoft.Testing.Platform mode, per `global.json`, driving `Microsoft.Testing.Extensions.CodeCoverage`). CI's .NET unit-test leg, `Validate job / Unit test job (.NET X.Y)`, instead runs `dotnet test --framework` over each tracked `*Tests*.csproj`. A local pass predicts it only while every such project is in `LanguageTags.slnx`.
- **Codegen drift.** `dotnet run --project ./LanguageTagsCreate/LanguageTagsCreate.csproj -- --codepath . --skip-download` then `dotnet tool restore && dotnet csharpier format .` regenerates the embedded language data offline from the committed `LanguageData/` (no network) and reformats it. CI runs exactly this as `Validate job / Validate repository job`, which invokes this repository's own hook at [`.github/actions/validate/action.yml`](./.github/actions/validate/action.yml), and fails if the tree drifts from what is committed. Run this whenever you change a codegen emitter (`SaveCodeAsync` / `SaveJsonAsync` / `GetCodeGenString` in `LanguageTags/*Data.cs` or `LanguageTags/LanguageSchema.cs`) or the committed `LanguageData/` source, and commit the regenerated `LanguageTags/*DataGen.cs` and `LanguageData/*.json` in the **same PR**. `--skip-download` never fetches upstream. A full refresh from the official ISO 639-2/3, RFC 5646, and UN M.49 registries is the scheduled codegen workflow's job, not something to run in a feature PR.
- **Linters.** See "Tool Usage" below for the known-working invocations; CI is the authoritative run, a local run is only for fast feedback.
- **Workflow changes.** [`WORKFLOW.md`](./WORKFLOW.md) is a machine-followable rulebook, not just documentation: it defines a static audit (5A), end-to-end trace scenarios (5B), a live probe (5C), and a repository-configuration audit (5D) that together yield a binary **operational / not-operational** verdict. When asked to check, change, or troubleshoot the CI/CD workflows, drive that methodology, audit the workflow files and repository configuration against the section-4 contract, trace the affected scenarios, and report the verdict with `file:line` citations, rather than reasoning about the YAML ad hoc. A workflow change is not done until it has been re-validated this way (probe without publishing).
Expand Down
Loading