Skip to content

Commit 73bc8ea

Browse files
committed
fix: remove label endpoint
1 parent 9a5f686 commit 73bc8ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/algora/workspace/workspace.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ defmodule Algora.Workspace do
627627
def remove_amount_label(token, owner, repo, number, amount) do
628628
label = "$#{amount |> Money.to_decimal() |> Util.format_number_compact()}"
629629

630-
case Github.remove_label(token, owner, repo, label) do
630+
case Github.Client.fetch(token, "/repos/#{owner}/#{repo}/issues/#{number}/labels/#{Money.parse(amount)}", "DELETE") do
631631
# TODO: properly parse DELETE responses in Github.Client
632632
{:error, %Jason.DecodeError{data: ""}} ->
633633
:ok

0 commit comments

Comments
 (0)