Skip to content

REQ 040

sergio velderrain edited this page Nov 9, 2026 · 1 revision

REQ-040: Optional companion-label creation/update is idempotent and reports failure

Requirement

When -Label is nonblank, Enable-RepoIssueTracking.ps1 shall idempotently create or update the one specified companion label as its only other disclosed repository mutation.

Rationale

Keeps the optional label-seeding side effect explicit and repeatable without masking errors. This splits the second obligation out of REQ-004 and records the existing blank-label opt-out.

Fit Criterion

A nonblank -Label (default needs-human-decision) causes one gh label create call with --force; a non-zero exit is surfaced as a failure. An empty or whitespace-only -Label skips label creation.

Verification

TEST-040: code review of Enable-RepoIssueTracking.ps1; no new live run or automated regression test was performed for this split.

Source

Software-Requirements-Specification

Priority

Medium

TestID

TEST-040

TestArtifact

Code review; no automated regression test yet

CodeRef

Enable-RepoIssueTracking.ps1 module

Status

Verified (manual)

Clone this wiki locally