Repository navigation
Description
Split from #5291.
Problem statement / motivation / context: The need. What problem it solves, who it serves. Owner decision 5 of 2026-11-12 removes .github/project-template.json. #5291 cannot remove the template. The kept commands load it. load_project_template()atsrc/devops_cli/github/projects.py:142-153defaults toCONST_PROJECT_TEMPLATE_PATH. The status_project, _resolve_project_number, audit_project, show_template, list_views, spec_views, sync_viewsandaudit_viewscommands insrc/devops_cli/commands/gh.pycall it with no--template argument. A deletion of the template without a change to those commands breaks them. ### Why deferred: #5291 removes devops gh project syncandreconcile. It cannot remove the template while the audit and views commands stay. This issue carries the rest of owner decision 5. ### Proposed solution / architectural design: Remove .github/project-template.json. Remove each command that loads it, or rewrite the command to read its data with no template file. Regenerate docs/CLI_REFERENCE.md. ### Acceptance criteria: - [ ] .github/project-template.jsonis deleted. - [ ] Each command that loads the template is removed or reads its data with no template file. - [ ]uv run devops ci --check --only docsexits 0. - [ ]uv run pytest tests/github/test_gh_project_views_pages_dry_run.py tests/commands/test_gh_cmd.py -q passes.
Proposed design
Problem statement
Owner decision 5 of 2026-11-12 removes .github/project-template.json. Eight commands and helpers load the file, so a deletion alone breaks them. #5291 removes project sync and reconcile; this issue waits on it. This change removes the template, the project status, project audit and project template commands, and the views group. It makes the remaining project-number lookup require an explicit number. It regenerates the CLI reference.
Acceptance criteria
Requirement: Project template file removed
The repository MUST NOT contain .github/project-template.json.
Scenario: Template file is absent
- WHEN
test ! -e .github/project-template.jsonruns - THEN The command exits 0.
Requirement: Template loader removed
src/devops_cli/github/projects.py MUST NOT define load_project_template or project_template_path, and src/devops_cli/config/constants.py MUST NOT define CONST_PROJECT_TEMPLATE_PATH.
Scenario: Template loader symbols are absent
- WHEN
uv run pytest tests/github/test_gh_project_views_pages_dry_run.py -q -k 'template_loader_removed'runs - THEN The test passes and asserts each named symbol is absent.
Requirement: Project template commands removed
The devops gh project command group MUST NOT register status, audit or template, and src/devops_cli/commands/gh.py MUST NOT define status_project, audit_project or show_template.
Scenario: Removed project commands are absent
- WHEN
uv run pytest tests/commands/test_gh_cmd.py -q -k 'removed_project_commands'runs - THEN The test passes and asserts each named command and function is absent.
Requirement: Views command group removed
The devops gh app MUST NOT register a views command group, and src/devops_cli/commands/gh.py MUST NOT define views_app, list_views, spec_views, sync_views, audit_views or _display_issues_saved_views.
Scenario: Views group and helpers are absent
- WHEN
uv run pytest tests/commands/test_gh_cmd.py -q -k 'views_group_removed'runs - THEN The test passes and asserts the group and each named function are absent.
Requirement: Project number must be explicit
_resolve_project_number MUST require a project number and MUST NOT load the project template.
Scenario: Missing project number stops the command
- WHEN
uv run pytest tests/commands/test_gh_cmd.py -q -k 'project_number_required'runs - THEN The test passes and asserts
devops gh project workflows listwithout--project-numberexits 1 and prints a message that names--project-number.
Requirement: No template imports remain
src/devops_cli/commands/gh.py MUST NOT import or call load_project_template, project_template_path, find_project_by_template, audit_project_requests, audit_project_drift, audit_views_requests, audit_remote_project_views, sync_views_requests or sync_remote_project_views.
Scenario: Template symbols are absent from the command module
- WHEN
uv run pytest tests/commands/test_gh_cmd.py -q -k 'template_symbols_removed'runs - THEN The test passes and asserts each named symbol is absent from the module source.
Requirement: CLI reference regenerated
The generated CLI reference MUST NOT list the removed project status, project audit, project template or views commands.
Scenario: Docs check accepts the regenerated reference
- WHEN
uv run devops ci --check --only docsruns - THEN The command exits 0.
Requirement: Affected tests pass
The GitHub project and command tests MUST pass after the removals.
Scenario: Project and command tests pass
- WHEN
uv run pytest tests/github/test_gh_project_views_pages_dry_run.py tests/commands/test_gh_cmd.py -qruns - THEN The command exits 0.
Existing Tool Considered
No alternatives check has run. No open, maintained tool or library covers the removal of repository-specific GitHub Projects commands. The repository's existing DocGenerator regenerates docs/CLI_REFERENCE.md. The change builds no new tool code, so the build cost is zero tokens and zero elapsed time.
Key questions
- Which commands and helpers load
.github/project-template.json?:status_project,audit_project,show_template,list_views,spec_views,sync_views,audit_viewsand_resolve_project_numbercall the loader.project syncandreconcilealso call it until refactor(github): remove the board sync and reconcile commands #5291 removes them. [sources: src/devops_cli/commands/gh.py, src/devops_cli/github/projects.py:142-153, src/devops_cli/config/constants.py:4411, .github/project-template.json] - Which commands must this issue remove?: Remove
project status,project audit,project templateand theviewsgroup. Keepproject link,project listandproject workflows list. Makeproject workflows listrequire--project-number. (best practice) [sources: src/devops_cli/commands/gh.py, src/devops_cli/github/projects.py:142-153, .github/project-template.json]- Chosen: Remove the template commands and the views group. The template goes away, and no replacement data source exists.
- Rejected: Rewrite the audit and views commands with inline view data. It duplicates the deleted template and adds maintenance.
- Rejected: Keep the template file. It contradicts owner decision 5.
- How does
project workflows listchoose a board after the template is removed?: Require--project-number. If the option is absent, exit 1 and name the option. Do not infer a board from a template. (best practice) [sources: src/devops_cli/commands/gh.py:579, src/devops_cli/github/projects.py:142-153]- Chosen: Require an explicit project number. No template data remains, and the caller chooses the board.
- Rejected: Inline the template board name. It duplicates deleted data and adds maintenance.
- Rejected: Keep the template file. It violates owner decision 5.
- Does refactor(github): remove the board sync and reconcile commands #5291 block this issue?: Yes.
project syncandreconcilecallload_project_templatein the current tree. refactor(github): remove the board sync and reconcile commands #5291 removes them. This issue depends on refactor(github): remove the board sync and reconcile commands #5291. [sources: src/devops_cli/commands/gh.py, src/devops_cli/github/projects.py:142-153] - How is
docs/CLI_REFERENCE.mdupdated?: Regenerate it withDocGenerator. Do not edit it by hand. (best practice) [sources: CONTEXT.md, docs/CLI_REFERENCE.md, src/devops_cli/docs/generator.py:475]- Chosen: Regenerate with DocGenerator. The generated document stays in git, and the docs check validates it.
- Rejected: Edit by hand. The docs check refuses a hand-edited generated document.
- Rejected: Leave it stale. The docs check fails, and the command list is wrong.
- Does an open, maintained tool cover this change?: No open, maintained tool covers the removal of repository-specific commands. The existing
DocGeneratorcovers the CLI reference. (best practice) [sources: AGENTS.md, CONTEXT.md, src/devops_cli/docs/generator.py:475]- Chosen: Use the repository DocGenerator. It already writes generated documents and keeps them in git.
- Rejected: Add an external project-template tool. No open tool covers removal of repository-specific commands.
- Rejected: Build a new generator. It adds code and maintenance with no benefit.
Fit
Fits in one pull request.
Suspected block
None.
Activity
devops-cli-service commentedon Nov 29, 2026
Both touch the GitHub project board commands in gh.py, but #703 makes sync truthful while this candidate removes the template and the audit and views commands entirely.[-]refactor(github): remove the project template and the board audit and views commands[/-][+]refactor(github): remove the project template and audit and views commands[/+]devops-cli-service commentedon Nov 29, 2026
The job shortened the title of this item. The summary had 66 characters, and the limit is 60. The type and the scope stay.
refactor(github): remove the project template and the board audit and views commandsdevops-cli-service commentedon Nov 29, 2026
Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies and Watched files in the section Proposed design of the body.
devops-cli-service commentedon Nov 29, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.