You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Triage Run notification lists each filed issue's Issue line twice #1988
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:
account.triage's recommendation.notification, built by Recommendation::notification in src/triage.rs, which already writes Issue: <url> under each filed issue; and
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.
Activity