bitbucket api /diff endpoint responding with empty string

Rupesh Bansal March 23, 2018

Hello,

 

So I am using bitbucket api to get the diff of files in a PR. Somehow, its responding an empty string even though the PR has file changes. The issue seems to be reproducible, tried it in multiple repos from multiple accounts.

This is the command I am using to access this.

curl --user USERNAME:PASSWORD -s -XGET "https://api.bitbucket.org/2.0/repositories/{OWNER}/{REPO_SLUG}/pullrequests/{PR_ID}/diff"

 

When I try this command, it works.

curl --user USERNAME:PASSWORD -s -XGET "https://api.bitbucket.org/2.0/repositories/{OWNER}/{REPO_SLUG}/pullrequests/{PR_ID}/comments"

 

Can someone please help me here.?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events