We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da461f2 commit be7ae07Copy full SHA for be7ae07
bitbucket.go
@@ -299,6 +299,7 @@ type PullRequestCommentOptions struct {
299
PullRequestID string `json:"id"`
300
Content string `json:"content"`
301
CommentId string `json:"-"`
302
+ Parent *int `json:"parent"`
303
}
304
305
type IssuesOptions struct {
pullrequests.go
@@ -255,6 +255,12 @@ func (p *PullRequests) buildPullRequestCommentBody(co *PullRequestCommentOptions
255
"raw": co.Content,
256
257
258
+ if co.Parent != nil {
259
+ body["parent"] = map[string]interface{}{
260
+ "id": co.Parent,
261
+ }
262
263
+
264
data, err := json.Marshal(body)
265
if err != nil {
266
return "", err
0 commit comments