The Pull Request API should include a files resource (BB-8809)

Issue #7630 closed
Marcus Bertrand staff created an issue

This would show only the files involved in the Pull Request in JSON format.

Comments (8)

  1. Former user Account Deleted

    It would be nice to have a separate URI on the pullrequests resource to get the files in a pull request. The only work-around currently is to use the /patch URI and grep the text output to look for the lines beginning with diff and pick the file from the end of each such lines. It would be nice to have a separate URI or have additional qualifiers in the /patch URI to return the files preferably in JSON format.

  2. Jonathan Mooring

    I've created a ticket in our internal tracker for this feature request. Watch this public issue for updates on this feature.

    Thanks,
    Jon

  3. Steven Peters

    If you generate the /patch data using hg diff, you could come close to a list of changed files using hg diff --stat.

  4. Atlassian Bitbucket

    This issue has been closed due to inactivity. If you continue to see problems, please reopen or create a new issue.

  5. Log in to comment