Repository navigation
fix(release): draft PR description generator and milestone deliverable resolution (#218) - #219
Merged
dan-petty merged 4 commits intoSep 16, 2026
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved release-generation correctness and test-isolation findings block approval.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
This PR improves release PR description generation with milestone deliverables, changelog de-duplication, and updated CI checklist content.
Changes:
- Adds milestone lookup with branch-commit fallback.
- Adds stale changelog detection and release-note handling.
- Updates checklist generation, tests, documentation, and v0.2.19 notes.
File summaries
| File | Review summary |
|---|---|
tests/test_release.py |
Adds coverage for release-body generation and fallback behavior. |
src/devops_cli/commands/release.py |
Critical (1 vote): Tests invoke live GitHub queries because run_gh is not patched at the command boundary. Moderate: Cache scoping can reuse data across repositories (3 votes); draft claims are marked complete without verification (3 votes); the checklist does not enumerate all ten gates (1 vote); stale-note detection misses differently rendered duplicates (1 vote), closed issues (1 vote), lists over 50 issues (1 vote), and headings with a v prefix (1 vote). |
docs/agent/tasks/task-218-fix-release-draft-pr-description-generator.md |
Nit (1 vote): Replaces the contributor-local file:// link with a repository-relative link. |
CHANGELOG.md |
Updates the v0.2.19 release notes. |
Review details
Suppressed comments (6)
docs/agent/tasks/task-218-fix-release-draft-pr-description-generator.md:20
- This
file://link points to the contributor's local/workspaces/devops-clipath, so it is broken for readers on GitHub and publishes an environment-specific workspace location. Use a repository-relative link to the source file.
1. **Target Milestone Deliverables Resolution ([`src/devops_cli/commands/release.py`](file:///workspaces/devops-cli/src/devops_cli/commands/release.py))**:
src/devops_cli/commands/release.py:789
- The generated section still contains one aggregate
10-Gate CIcheckbox rather than the authoritative ten gate results (python_version,test,coverage,lint,format,typecheck,audit,security,actionlint, anddocs) implemented bydevops ci. That prevents the release PR from showing which gate is incomplete and does not match the PR/issue description's stated 10-gate checklist; enumerate the ten checks or label this as an aggregate check instead.
"- [x] 10-Gate CI Quality Gate passing (`devops ci`)\n"
src/devops_cli/commands/release.py:742
- Comparing the entire current and previous sections with exact string equality does not detect stale duplication when the same deliverables are rendered differently, such as raw conventional-commit bullets with PR suffixes versus summarized bullets in the prior release. The duplicated v0.2.19 content removed by this PR has that shape, so this check can return
Falseand still copy stale notes; compare normalized entries or meaningful overlap and add a regression test for that case.
prev_notes = _extract_changelog_notes(repo_root, matched_vers[idx + 1])
return bool(prev_notes and prev_notes.strip() == notes.strip())
src/devops_cli/commands/release.py:679
gh issue listdefaults to open issues, so closed milestone issues—the items already merged for the release—are omitted. Indraft=Falsemode this same list is rendered asIncluded Deliverables, so the generated body can omit completed work; query--state allso this represents the full milestone. Add a closed-issue regression case as well.
"--json",
"number,title,labels,state",
src/devops_cli/commands/release.py:681
- This hard-coded
--limit 50silently truncates the milestone list once a release has more than 50 issues, so the generated PR body can omit valid deliverables while presenting the section as complete. Retrieve the full result set (or paginate) before formatting it.
"--limit",
"50",
src/devops_cli/commands/release.py:734
_extract_changelog_notesaccepts headings with an optionalvprefix, but this detector only matches## [0.2.19]. A duplicated## [v0.2.19]section therefore bypasses stale-note detection and is copied into the PR body.
all_vers = re.findall(r"^##\s+\[(\d+\.\d+\.\d+(-[0-9A-Za-z.-]+)?)\]", content, re.MULTILINE)
- Files reviewed: 4/4 changed files
- Comments generated: 3
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…s clean autolinks
…ock run_gh in tests
dan-petty
deleted the
fix/218-release-draft-pr-description-generator
branch
September 16, 2026 15:19
4 tasks done
dan-petty
added a commit
that referenced
this pull request
Sep 18, 2026
* feat(release): v0.2.19 * fix(release): draft PR description generator and milestone deliverable resolution (#218) (#219) * feat(release): fix draft PR description generator and milestone deliverable resolution * docs(agent): track task 218 for release draft pr description generator fix * fix(release): prevent duplicate text by formatting milestone issues as clean autolinks * fix(release): isolate milestone cache, dynamic draft checklist, and mock run_gh in tests * fix(ai): support main branch diffing and base resolution in review branch (#220) (#221) * fix(ai): support main branch diffing and base resolution in review branch (#220) * fix(review): propagate target_branch to target_ref and update task 220 status to In Review (#221) * fix(github): treat copilot review as completed when zero unresolved threads remain (#216) (#222) * fix(github): treat copilot review as completed when zero unresolved threads remain (#216) * docs(agent): update task 216 with PR #222 and status In Review * test(github): test monitor_pr across get_pr_monitoring_status boundary with mock threads (#222) * feat(ai): adaptive embedding batch sizing circuit breaker and timeout fallback (#117) (#223) * feat(ai): adaptive embedding batch sizing circuit breaker and timeout fallback (#117) * docs(agent): link PR #223 and transition task 117 to In Review * fix(ai): resolve review feedback on fallback cache poisoning and query key isolation (#117) * perf(ai): high-performance AST context packer with binary search truncation (#118) (#224) * perf(ai): high-performance AST context packer with binary search truncation (#118) * docs(agent): link PR #224 and transition task 118 to In Review * fix(ai): resolve review feedback on full-body binary search, empty AST isolation, and tokenizer prewarming (#118) * fix(ai): accurately evaluate truncation boolean and expand test coverage (#118) * fix(ai): polyglot tree-sitter file size boundary guard and resource containment (#119) (#225) * fix(ai): polyglot tree-sitter file size boundary guard and resource containment (#119) * fix(ai): harden repomap symlink resolution and syntax tuple * test(ci): isolate ci workspace root to tmp_path to prevent unlinking active coverage * perf(ai): parallel async branch and pr review worker pool with semaphore concurrency (#120) (#226) * perf(ai): parallel async branch and pr review worker pool with semaphore concurrency (#120) * docs(agent): link PR #226 to task-120 tracking * fix(ai): address Copilot review feedback on error isolation and sanitization * fix(security): sanitize CodeQL clear-text logging by recording exception type names * feat(ai): llm structured output retry and json schema repair engine (#123) (#230) * feat(ai): llm structured output retry and json schema repair engine (#123) * fix(ci): remove redundant pr merge readiness gate and remediate review findings (#123) (#230) * chore(ci): deduplicate pre-commit code checks and scope hooks to pre-commit stage * chore(ci): real-time quality gate streaming, re-entrant rate limit locking, and repos clone destination (#231) (#232) * chore(ci): real-time quality gate streaming, re-entrant rate limit locking, and project quota safety * feat(repos): parse organization destination from clone url instead of hardcoding standalone * docs(agent): add task-231 tracking for realtime CI, rate limiter locking, and repos clone * docs(agent): link PR #232 to task-231 tracking * fix(gh): isolate disk quota lock yield and add fallback pacing for unknown quotas * docs(agent): document task-231 CI failure remediation and merge readiness * fix(github): resolve paginated url query replacement loop and optimize dry-run reconciliation (#233) (#234) * docs(agent): record PR #232 merge and close task 231 * fix(github): resolve paginated url replacement loop, optimize dry-run project reconciliation, and add pr edit milestone (#233) * docs(agent): update task 233 status to in-review and link PR #234 * fix(github): resolve PR review comments for #234 with milestone resolution, off-board dry-run test, and tuple except syntax * fix: config * fix(github): eliminate bare gh invocations, harden rate limiter quota tracking, and optimize project reconciliation (#235) (#236) * fix(github): eliminate bare gh invocations, harden rate limiter quota tracking, and optimize project reconciliation (#235) * fix(github): replace hardcoded gh CLI strings with CONST_GH_CLI constant (#235) * fix(github): resolve review feedback on mutation budgeting, rate limiter caching, and milestone editing (#235) - Pass shared MutationBudget across issue sync, candidate provisioning, and custom field edits to enforce a strict aggregate cap of 25 mutations - Reject all HTTP mutation methods (POST, PUT, PATCH, DELETE) and field arguments in _is_cacheable_api_call - Retain --milestone option on devops pr edit with REST fallback - Raise GitHubRateLimitError instead of bare TypeError on non-dictionary data in QuotaState.from_dict - Enforce max_backoff in calculate_backoff_delay and quota_max_age in QuotaState.is_valid - Account effective_cost during limiter.acquire() and eliminate redundant second decrement in _post_process_run - Update Task 235 tracking to PR #236 and Status: In Review * fix(github): eliminate delay-bypassing caps and mock external calls in tests (#235) - Remove DEFAULT_GH_MAX_PACING_DELAY_SECONDS and DEFAULT_GH_MAX_BACKOFF_SECONDS to ensure mandatory pauses are never bypassed or truncated - Ensure _acquire_locked pauses for full calculated request delay and calculate_backoff_delay pauses for full duration until reset - Properly mock _resolve_project_owner_arg in project tests to eliminate unmocked rate limit network calls * fix(github): eliminate bare gh invocations, error masking, and inaccurate quota defaults (#237) (#238) * fix(github): eliminate bare gh invocations, error masking, and inaccurate quota defaults (#237) * docs(agent): link PR #238 in task-237 tracking * fix(github): resolve review feedback on error classification, syntax, and sync resiliency (#237) * feat(k8s): minikube gpu detection and dynamic service nodeport reachability fallback (#126) (#239) * feat(k8s): minikube gpu detection and dynamic service nodeport reachability fallback (#126) * docs(agent): update task-126 status to in review with pr #239 * fix(k8s): resolve PR #239 review feedback on valkey normalization, scheme fallback, and sanitization * feat(devcontainer): build from debian:sid with python3.14, uv 0.12.16, and CI caching optimizations * fix(devcontainer): normalize VERSION_CODENAME to trixie for devcontainer feature compatibility * feat(ai): proactive model prewarming and vram eviction governance (#127) (#240) * feat(ai): streaming reasoning think token parser and bounded stream sanitizer (#128) (#241) * feat(ai): streaming reasoning think token parser and bounded stream sanitizer (#128) * docs(task): update task-128 PR link to #241 * fix(ai): resolve review feedback on streaming reasoning and error bounds * feat(ai): high-throughput LLM gateway and distributed model router (#142) (#242) * feat(ai): high-throughput LLM gateway and distributed model router (#142) * docs(agent): update task-142 tracking with PR #242 * fix(ai): remediate review comments on llm gateway, vllm manifests, and router (#142) * fix: address PR #217 comments, remediate uv diagnostics, and add uv-check/lockfile quality gates (#243) * fix: address PR #217 comments, remediate uv diagnostics, upgrade dependencies, and add uv-check/lockfile quality gates * fix(devcontainer): support sys_bin path parameter and add edge-case coverage for shadowed binary reconciliation * fix: remove reconcile_shadowed_user_binaries and debian_sid test, honor table payload options, integrate outdated check into CI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix the release draft PR description generator (
devops release pr) to automatically query target milestone deliverables viarun_ghrate limiter and format them cleanly, discard stale duplicate changelog notes from prior releases, and standardize the quality checklist against the authoritative 10-Gate CI suite.Closes #218
Key Changes
_query_gh_milestone_issues,_query_branch_commit_deliverables, and_fetch_milestone_deliverablesto populate### Target Milestone Deliverableswith fallback to branch commit logs._is_stale_duplicate_changelogand_resolve_clean_release_notesto discard duplicated changelog notes when local git tags are not fetched.devops ci), featuring dynamic checkbox states (- [ ]in draft mode vs.- [x]when ready).tests/test_release.pypassing, cyclomatic complexity <= 6, nesting depth <= 3, and 10-gate pre-push CI passed locally.