Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Feb 2, 2026

Problem

Agentic workflows creating pull requests or issues lacked expiration configuration, allowing created items to persist indefinitely without automatic cleanup.

Changes

Added expires: 2d to safe-outputs.create-pull-request and safe-outputs.create-issue configurations across 21 workflow files:

Affected workflows:

  • ci-coach, cloclo, code-scanning-fixer, dependabot-bundler
  • developer-docs-consolidator, dictation-prompt, github-mcp-tools-report
  • glossary-maintainer, go-logger, hourly-ci-cleaner, instructions-janitor
  • jsweep, layout-spec-maintainer, poem-bot, q, secret-scanning-triage
  • technical-doc-writer, test-create-pr-error-handling, tidy
  • ubuntu-image-analyzer, unbloat-docs

Example change:

safe-outputs:
  create-pull-request:
    expires: 2d  # ← Added
    title-prefix: "[ci-coach] "

The expires: 2d configuration converts to 48 hours in compiled workflows, after which created PRs/issues are eligible for automatic closure.

Known Issue

Workflows with both create-pull-request and push-to-pull-request-branch safe-outputs have a compiler bug preventing the expires field from appearing in generated lock files. Source .md files are correctly updated; lock file generation issue should be addressed separately.

Original prompt

Review agentic workflows in repo that create pull request or create issue and make sure there an expires on the safe output. If missing set to 2d.


✨ 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] Review agentic workflows for pull request and issue creation Add expires: 2d to safe-outputs in 21 agentic workflows Feb 2, 2026
@pelikhan pelikhan marked this pull request as ready for review February 2, 2026 14:43
@pelikhan pelikhan merged commit cc6029f into main Feb 2, 2026
148 checks passed
@pelikhan pelikhan deleted the copilot/review-agentic-workflows branch February 2, 2026 14:44
Copilot AI added a commit that referenced this pull request Feb 2, 2026
…reate-pull-request

Root cause: YAML unmarshal error when reviewers field is a string instead of []string
The single string was being converted to array AFTER unmarshaling, causing unmarshal to fail silently

Solution: Pre-convert reviewers string to array BEFORE unmarshaling
This prevents YAML parser errors and allows all fields (expires, title-prefix, labels, etc.) to be correctly unmarshaled

Affected workflows: poem-bot, tidy, q, github-mcp-tools-report, technical-doc-writer
All now correctly include expires field in handler config

Related: #13285

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
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