Skip to content

Fix stray $ in Discord and Slack book titles - #393

Merged
robertlordhood merged 1 commit into
developfrom
fix/notification-title-dollar
Dec 1, 2026
Merged

robertlordhood merged 1 commit into
developfrom
fix/notification-title-dollar

Conversation

@robertlordhood

@robertlordhood robertlordhood commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Book deleted and book file deleted notifications showed a literal $ in the title. Discord sent Author - $Book and Slack sent $Author - $Book. The $ was an extra character inside an interpolated string, inherited from Readarr.

Adds a test for the added, deleted and file deleted titles on both.

Summary by CodeRabbit

  • Bug Fixes
    • Corrected book deletion and file deletion notification titles in Discord and Slack. Titles now display the author and book names without stray dollar signs, and file deletion notifications retain the “file deleted” label. This makes the notification text clearer when these events are delivered.

Book deleted and book file deleted titles printed a literal $ before the book title (and before the author on Slack).
@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Discord and Slack book deletion and file-deletion titles no longer include literal dollar signs. Parameterized tests check titles for added, deleted, and file-deleted events.

Changes: Book notification titles

Layer / File(s) Summary
Format titles and verify book events
src/NzbDrone.Core/Notifications/Discord/Discord.cs, src/NzbDrone.Core/Notifications/Slack/Slack.cs, src/Chaptarr.Core.Test/Notifications/BookNotificationTitleFixture.cs
Discord and Slack deletion titles omit literal dollar signs. Tests check author and book names for added and deleted events, and the file deleted suffix for file-deleted events.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Merge Risk: Minimal · up to 7edab

This fixes the stray dollar signs in Discord and Slack book deletion notification titles. The change is small and has tests, so merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: a stray literal $ in the Discord and Slack book notification titles. The raw summary confirms the Discord OnBookDelete/OnBookFileDelete and Slack deletion attachment t…
Description check Passed The description explains the bug: deleted and file-deleted notifications showed a literal $ (Discord as Author - $Book, Slack as $Author - $Book), and it attributes the cause to an interpolated st…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: a stray literal $ in the Discord and Slack book notification titles. The raw summary confirms the Discord OnBookDelete/OnBookFileDelete and Slack deletion attachment titles were changed to drop the $ characters, and a test fixture was added. The title is short, specific, and accurate, so it describes the primary change.

Full details: Description check

Explanation

The description explains the bug: deleted and file-deleted notifications showed a literal $ (Discord as Author - $Book, Slack as $Author - $Book), and it attributes the cause to an interpolated string inherited from Readarr. It also states that tests were added for the added, deleted, and file-deleted titles. It does not use the template's Database Migration section or the How was this tested section with OS/setup details, and it has no Fixes # line. These gaps are minor for a small fix, so the description is mostly complete.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 05a74e93-97c9-4446-a445-939aaaf6ec32
Commits

Reviewing files that changed from the base of the PR and between afbc67e and 7edab87.

Files selected for processing: 3

  • src/Chaptarr.Core.Test/Notifications/BookNotificationTitleFixture.cs
  • src/NzbDrone.Core/Notifications/Discord/Discord.cs
  • src/NzbDrone.Core/Notifications/Slack/Slack.cs

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

@robertlordhood
robertlordhood merged commit ef2f0b6 into develop Dec 1, 2026
29 of 33 checks passed
@robertlordhood
robertlordhood deleted the fix/notification-title-dollar branch December 1, 2026 00:49
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.

1 participant