Skip to content

Allow changing or removing the trigger reaction when the run finishes (eyes stays on the comment forever) #77508

Done

Description

@ekbritecore

Problem

There is no way to change or remove the reaction gh-aw adds to a triggering comment when the run finishes. The activation job adds an eyes reaction ("Add eyes reaction for immediate feedback"), and the conclusion job's "Update reaction comment with completion status" step only PATCHes the status comment; it makes no reaction call. With status-comment: false there is nothing left to update at all. So on a slash command the eyes reaction stays on the comment forever, whether the run succeeded, failed or was skipped.

Verified

gh-aw v1.2.0, v1.2.2 and v1.2.3 compile the same way, and main has the same options. The relevant options are on.reaction (a string such as eyes, rocket, +1, none, or an object with type and issues / pull-requests / discussions) and on.status-comment (bool or object). Neither has a completion state. In the compiled output, GH_AW_REACTION: "eyes" feeds add_reaction.cjs (a POST to .../reactions), and notify_comment_error.cjs has no reaction handling. The release notes for those versions mention no change here. A search of existing issues found nothing asking for it; related but different: #15831 (decouple the reaction from the status comment), #59183 (stuck reaction comment when pre-activation fails closed), #71489 (status-only jobs after a failed detection).

Why it matters

For comment-triggered workflows (for example /review-style commands) the reaction is the only visible status on the comment for people who do not open the Actions tab. eyes forever reads as "still working". We built a small custom job per workflow that swaps eyes for +1 after a successful review and for confused after a failure, which needs its own job, permissions (comment reactions) and a pinned test.

Suggestion

A completion option on reaction:, for example:

on:
  reaction:
    type: eyes
    on-success: "+1"     # or: remove
    on-failure: confused # or: remove

or a simple remove-on-complete: true. It would use the same token and handler as the add step.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions