From cf5a669a8b19075ad7a427e75afac8c7d23bdc65 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 26 Nov 2025 13:18:18 +0000 Subject: [PATCH 1/2] Initial plan From 9659dc68af31ee1521abe4fe05a83c3ec64cda2a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 26 Nov 2025 13:24:43 +0000 Subject: [PATCH 2/2] Add discussion comments example to DailyOps documentation Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- .../content/docs/examples/scheduled/dailyops.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/src/content/docs/examples/scheduled/dailyops.md b/docs/src/content/docs/examples/scheduled/dailyops.md index 9b4236ce634..d107c8c0934 100644 --- a/docs/src/content/docs/examples/scheduled/dailyops.md +++ b/docs/src/content/docs/examples/scheduled/dailyops.md @@ -44,6 +44,19 @@ safe-outputs: category: "ideas" ``` +### Discussion Comments + +For workflows that post updates to an existing discussion, use `add-comment` with `discussion: true` and a specific `target` discussion number: + +```aw wrap +safe-outputs: + add-comment: + target: "4750" + discussion: true +``` + +This pattern is ideal for daily status posts, recurring reports, or community updates. The [daily-fact.md](https://github.com/githubnext/gh-aw/blob/main/.github/workflows/daily-fact.md) workflow demonstrates this by posting daily facts about the repository to a pinned discussion thread. + ### Persistent Memory Enable `cache-memory` to maintain state at `/tmp/gh-aw/cache-memory/` across runs, useful for tracking progress, storing metrics, and building knowledge bases over time: @@ -57,6 +70,7 @@ tools: This repository implements several DailyOps workflows demonstrating different use cases: +- **daily-fact.md** - Posts daily facts about the repository to a discussion thread - **daily-test-improver.md** - Systematically adds tests to improve coverage incrementally - **daily-perf-improver.md** - Identifies and implements performance optimizations - **daily-doc-updater.md** - Keeps documentation synchronized with merged code changes