Skip to content

Document previous-result strategies for scheduled workflows - #54568

Merged
pelikhan merged 2 commits into
mainfrom
copilot/update-gh-aw-instructions
Aug 21, 2026
Merged

Document previous-result strategies for scheduled workflows#54568
pelikhan merged 2 commits into
mainfrom
copilot/update-gh-aw-instructions

Conversation

Copilot AI commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Scheduled agentic workflows need an explicit strategy for handling issues or pull requests created by earlier runs. The authoring guidance now requires choosing the strategy that best matches the workflow’s lifecycle.

  • Wait for completion
    • Use on.skip-if-match while a previous issue or pull request remains open.
  • Replace previous results
    • Use close-older-issues and, when needed, close-older-key.
  • Preserve history
    • Review existing items before creating a materially different result, using prior issues or pull requests as workflow memory.

Copilot AI and others added 2 commits August 21, 2026 16:44
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title Document scheduled workflow result strategies Document previous-result strategies for scheduled workflows Aug 21, 2026
Copilot AI requested a review from pelikhan August 21, 2026 16:47
@pelikhan
pelikhan marked this pull request as ready for review August 21, 2026 16:48
Copilot AI balanced review requested due to automatic review settings August 21, 2026 16:48
@pelikhan
pelikhan merged commit 949a4ef into main Aug 21, 2026
@pelikhan
pelikhan deleted the copilot/update-gh-aw-instructions branch August 21, 2026 16:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds lifecycle guidance for handling previous outputs from scheduled workflows.

Changes:

  • Documents wait, replace, and preserve-history strategies.
  • Removes an obsolete generated router suppression comment.
Show a summary per file
File Description
.github/aw/create-agentic-workflow.md Adds previous-result authoring guidance.
.github/workflows/agentic_commands.yml Removes a runner-guard suppression comment.

Review details

  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Balanced

For every daily or scheduled workflow that creates issues or pull requests, choose the strategy that best matches the workflow's goal:

- **Wait for the previous result** when only one active result should exist. Configure `on.skip-if-match` to skip the entire agent execution while the issue or pull request created by an earlier run remains open. The workflow resumes after that item is closed or merged.
- **Replace previous results** when the newest result supersedes older reports. For issues, configure `safe-outputs.create-issue.close-older-issues: true` and use `close-older-key` when an explicit matching key is needed.
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.87.4

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.

3 participants