Skip to content

Commit 309d23c

Browse files
committed
feat: update list bounties API to also return ticket body
1 parent 6a82d77 commit 309d23c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/algora/bounties/bounties.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1309,7 +1309,8 @@ defmodule Algora.Bounties do
13091309
id: t.id,
13101310
title: t.title,
13111311
number: t.number,
1312-
url: t.url
1312+
url: t.url,
1313+
description: t.description
13131314
},
13141315
repository: %{
13151316
id: r.id,

lib/algora_web/controllers/api/bounty_json.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ defmodule AlgoraWeb.API.BountyJSON do
5757
id: bounty.ticket.id,
5858
html_url: bounty.ticket.url,
5959
title: bounty.ticket.title,
60-
body: "",
60+
body: bounty.ticket.description,
6161
user: %{
6262
id: 0,
6363
login: "",

0 commit comments

Comments
 (0)