Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-15913

bitbucket api /diff endpoint responding with empty string

    XMLWordPrintable

Details

    Description

      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.?

      Attachments

        Activity

          People

            Unassigned Unassigned
            8a9f7f0c9a69 rupeshbansal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: