Skip to content

Commit 1784fad

Browse files
committed
feat: add alert logging for tip and bounty creation
- Introduced alert logging in the `run_command` function to notify when a global tip intent and a global bounty are being created, enhancing traceability and debugging capabilities.
1 parent 63ab9a1 commit 1784fad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/algora/integrations/github/poller/search_consumer.ex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ defmodule Algora.Github.Poller.SearchConsumer do
2121
end
2222

2323
defp run_command({:tip, args}, ticket_ref, _comment) do
24+
Algora.Admin.alert("Creating global tip intent for #{inspect(args[:amount])}: #{inspect(ticket_ref)}")
25+
2426
Bounties.create_tip_intent(%{
2527
recipient: args[:recipient],
2628
amount: args[:amount],
@@ -48,6 +50,8 @@ defmodule Algora.Github.Poller.SearchConsumer do
4850
_ -> :set
4951
end
5052

53+
Algora.Admin.alert("Creating global bounty for #{inspect(args[:amount])}: #{inspect(ticket_ref)}")
54+
5155
Bounties.create_bounty(
5256
%{
5357
creator: user,

0 commit comments

Comments
 (0)