Skip to content

refactor(github): remove the project template and audit and views commands #7803

Backlog

Description

@devops-cli-service

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.json runs
  • 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 list without --project-number exits 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 docs runs
  • 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 -q runs
  • 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_views and _resolve_project_number call the loader. project sync and reconcile also 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 template and the views group. Keep project link, project list and project workflows list. Make project workflows list require --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 list choose 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 sync and reconcile call load_project_template in 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.md updated?: Regenerate it with DocGenerator. 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 DocGenerator covers 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.

Dependencies

#5291

Activity

  1. added
    type/refactor
    scope/github
    source/agent
    status/new
    value/medium
    effort/medium
    on Nov 29, 2026
  2. devops-cli-service commented on Nov 29, 2026

    @devops-cli-service
    ContributorAuthor
  3. changed the title [-]refactor(github): remove the project template and the board audit and views commands[/-] [+]refactor(github): remove the project template and audit and views commands[/+] on Nov 29, 2026
  4. devops-cli-service commented on Nov 29, 2026

    @devops-cli-service
    ContributorAuthor

    The job shortened the title of this item. The summary had 66 characters, and the limit is 60. The type and the scope stay.

    • Before: refactor(github): remove the project template and the board audit and views commands
    • Source of the summary: the background model
  5. devops-cli-service commented on Nov 29, 2026

    @devops-cli-service
    ContributorAuthor

    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.

  6. devops-cli-service commented on Nov 29, 2026

    @devops-cli-service
    ContributorAuthor

    Next step: the alternatives check records a verdict. See the section Proposed design of the body.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p2-mediumscope/githubsource/agentstatus/newtype/refactorvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions