Skip to content

Commit e66194e

Browse files
committed
feat: enhance bounty notification message
- Added the `bounty_id` to the notification job arguments for better tracking. - Updated the notification message to include a link for viewing and rewarding the bounty, improving user engagement.
1 parent 4fb2845 commit e66194e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/algora/bounties/jobs/notify_bounty.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ defmodule Algora.Bounties.Jobs.NotifyBounty do
1717

1818
def perform(%Oban.Job{
1919
args: %{
20+
"bounty_id" => bounty_id,
2021
"owner_login" => owner_login,
2122
"amount" => amount,
2223
"ticket_ref" => ticket_ref,
@@ -32,7 +33,7 @@ defmodule Algora.Bounties.Jobs.NotifyBounty do
3233
}
3334

3435
body = """
35-
💎 **#{owner_login}** is offering a **#{amount}** bounty for this issue
36+
💎 **#{owner_login}** is offering a **#{amount}** bounty for this issue, View and reward the bounty at #{AlgoraWeb.Endpoint.host()}/bounties/#{bounty_id}
3637
3738
👉 Got a pull request resolving this? Claim the bounty by commenting `/claim ##{ticket_ref.number}` in your PR and joining #{AlgoraWeb.Endpoint.host()}
3839
"""

0 commit comments

Comments
 (0)