Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 11, 2026

Updates test-coverage-improver and go-logger workflows to create draft PRs for easier review iteration. Constrains go-logger to process one file at a time with explicit logger reuse.

Changes

Both workflows:

  • Set safe-outputs.create-pull-request.draft: true (previously false)

go-logger workflow:

  • Constraint: Process exactly 1 file per PR (down from max 5)
  • Constraint: Reuse existing logger declarations when present
  • Selection: "Select File for Enhancement" (singular)
  • Logging depth: 3-7 calls for single file (up from 2-5 for multiple files)
  • Instructions: Check for existing var log = logger.New("pkg:filename") before adding new logger
  • Quality checklist: Verify exactly 1 file modified and logger reuse

The single-file constraint improves review focus. Logger reuse prevents duplicate declarations like:

// Before: risk of adding duplicate
var log = logger.New("server:routed")
// ... later in file ...
var log = logger.New("server:routed")  // duplicate!

// After: explicit reuse check
// If logger exists, reuse it; otherwise add once
Original prompt
  • Test coverage improver must create draft PRs
  • go log adder should process one file at a time and reuse existing log infrastructure . Also create draft PRs

Custom agent used: create-agentic-workflow
Design agentic workflows using GitHub Agentic Workflows (gh-aw) extension with interactive guidance on triggers, tools, and security best practices.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Add test coverage improvement for draft PRs Configure workflows to create draft PRs and process single files Jan 11, 2026
Copilot AI requested a review from pelikhan January 11, 2026 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants