Skip to content

Fix append-only-comments for activation comment updates#11189

Merged
mnkiefer merged 5 commits intomainfrom
copilot/fix-append-only-comments-issue
Jan 22, 2026
Merged

Fix append-only-comments for activation comment updates#11189
mnkiefer merged 5 commits intomainfrom
copilot/fix-append-only-comments-issue

Conversation

Copy link
Contributor

Copilot AI commented Jan 22, 2026

Problem

When append-only-comments: true is configured, the system still replaces previous comments instead of creating new ones. This only affects PR/issue/commit link updates during workflow execution.

Root Cause

update_activation_comment.cjs (handles PR/issue/commit links) doesn't check the append-only-comments flag, while notify_comment_error.cjs (handles run-started/success/failure) correctly implements it.

Changes

  • update_activation_comment.cjs: Added append-only-comments flag check

    • When enabled: creates new comment via POST API
    • When disabled: updates existing comment via PATCH API (current behavior)
    • Supports both issues/PRs (REST) and discussions (GraphQL)
    • Graceful handling when activation comment doesn't exist
  • update_activation_comment.test.cjs: Added test coverage for append-only mode

    • Updated mocks to support messages_core.cjs
    • Added 5 test cases covering both create and update paths

Configuration

safe-outputs:
  messages:
    append-only-comments: true

With this flag, all comment operations (activation updates + status messages) now create new comments rather than replacing, maintaining full audit trail for campaign tracking.

Original prompt

For campaign generator, messages with append-only-comments: true does not work. The issue still replaces the previous comment intead of creating a new one.


✨ 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: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix issue with append-only-comments not creating new comments Fix append-only-comments for activation comment updates Jan 22, 2026
Copilot AI requested a review from mnkiefer January 22, 2026 05:38
@mnkiefer mnkiefer marked this pull request as ready for review January 22, 2026 05:38
@mnkiefer
Copy link
Contributor

@copilot Recompile affected workflows and the campaign generator.

Copy link
Contributor Author

Copilot AI commented Jan 22, 2026

@copilot Recompile affected workflows and the campaign generator.

Recompiled all workflows including the campaign generator. All 133 workflows compiled successfully with no changes needed to the lock files. The update_activation_comment.cjs changes are used at runtime via the actions/setup action, so the existing lock files remain valid.

Copilot AI requested a review from mnkiefer January 22, 2026 05:46
@mnkiefer mnkiefer merged commit 5604be3 into main Jan 22, 2026
49 checks passed
@mnkiefer mnkiefer deleted the copilot/fix-append-only-comments-issue branch January 22, 2026 05:51
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