Skip to content

Commit

Permalink
fix: replace underscores instead of hyphens in actions (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
backwardspy authored Sep 16, 2024
1 parent 0652db0 commit b5d4ec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ fn make_discord_message(e: &Event) -> anyhow::Result<Option<serde_json::Value>>

embed.author(e.sender.clone());

let display_action = e.action.replace('-', " ");
let display_action = e.action.replace('_', " ");

if let Some(comment) = &e.comment {
if e.action != "created" {
Expand Down

0 comments on commit b5d4ec5

Please sign in to comment.