Skip to content

Commit dd270c5

Browse files
committed
add label on bounty created
1 parent d2c4a76 commit dd270c5

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
@@ -42,7 +42,8 @@ defmodule Algora.Bounties.Jobs.NotifyBounty do
4242
with {:ok, token} <- Github.get_installation_token(installation_id),
4343
{:ok, installation} <-
4444
Workspace.fetch_installation_by(provider: "github", provider_id: to_string(installation_id)),
45-
{:ok, owner} <- Accounts.fetch_user_by(id: installation.connected_user_id) do
45+
{:ok, owner} <- Accounts.fetch_user_by(id: installation.connected_user_id),
46+
{:ok, _} <- Github.add_labels(token, ticket_ref["owner"], ticket_ref["repo"], ticket_ref["number"], ["💎 Bounty"]) do
4647
body = """
4748
## 💎 #{amount} bounty [• #{owner.name}](#{User.url(owner)})
4849
### Steps to solve:

0 commit comments

Comments
 (0)