andygrunwald / andygrunwald/go-jira

Add Comment (sometimes) does not add comment and returns 200

Đang mở
#304 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
needs triage
Ngôn ngữ chính
Go
Star
1.6k
Fork
500
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Is really a 200 a valid response to add a comment, when the Jira Documentation states that the valid response is a 201?

https://developer.atlassian.com/cloud/jira/platform/rest/v3/#api-rest-api-3-issue-issueIdOrKey-comment-post

While it is true that 200 should be a valid response, sporadically a code im reviewing gets a 200 response but does not post anything to Jira.
Also, doing a quick search i found this weird interaction on Jira forums: https://community.developer.atlassian.com/t/rest-api-call-to-add-a-comment-on-issue-returns-200-instead-of-201/1742

https://github.com/andygrunwald/go-jira/blob/1b4556ca5af8177a656b688521514fd6a3319059/jira.go#L284

This is really hard to replicate, and i might be crazy, but i cannot find any reason why the Jira docs says the valid response is a 201 and not a 200.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.