Skip to content

Triage Run notification lists each filed issue's Issue line twice #1988

Closed

Description

@JacobStephens2

What happens

A successful Triage run's notification email repeats the Issue: line for each issue it filed:

Issues:
- Tell the Day shift once when Pickup is held at its Claim limit, with each holder's pull request (enhancement, wontfix)
Issue: https://github.com/JacobStephens2/thirdshift/issues/959
Issue: https://github.com/JacobStephens2/thirdshift/issues/959
Command log:  ...

The issue should appear once.

Cause

body in src/notification.rs (main 02c96545) appends both:

  1. account.triage's recommendation.notification, built by Recommendation::notification in src/triage.rs, which already writes Issue: <url> under each filed issue; and
  2. account.triage_publication_lines() (src/run_ending.rs), which on success reads triage.published and yields Issue: <url> for the same issues.

The second loop came from #1729 (via c12efe0, "Retain Triage links after partial publication failures"). It is needed when publication fails partway, because then there is no Recommendation notification in the email. On success it duplicates the links.

The terminal output is out of scope. Shown::of in src/run_ending.rs also extends its stderr steps with triage_publication_lines(), but there stdout carries the Recommendation JSON and not its notification text. So that's the single trailing link #1729 asked for, and it should stay.

Fix

In the notification body, add triage_publication_lines() only when account.triage is None, which is the failure path where the Recommendation notification is missing. Keep the partial-failure email listing the links it published.

Acceptance

  • A successful filed Triage run with one issue: its notification has exactly one Issue: <url> line for that issue.
  • A Triage run whose publication fails after filing an issue: its notification still has that issue's Issue: <url> line, once.
  • The terminal output of a Triage run is unchanged.

Activity

  1. added
    bug
    ready-for-agent
    in-progress
    and removed
    ready-for-agent
    on Nov 11, 2026
  2. removed
    in-progress
    on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions