Skip to content

Bitbucket Server: Add LoadPullRequest method to Client

Warren Gifford requested to merge a8n/bitbucket-server into master

Created by: mrnugget

This adds support for Bitbucket Server pull requests to our Automation GraphQL API.

It allows users to use the createChangeset mutation with Bitbucket Server repositories and external IDs pointing to Bitbucket Server pull requests.

The user can then fetch the changesets via the GraphQL API and read every currently defined field for changesets pointing to Bitbucket Server pull requests.

It does that by adding

  • a LoadPullRequest method to bitbucketserver.Client
  • a bitbucketserver.PullRequest type definition
  • a LoadChangesets method to the BitbucketServerSource
  • the necessary case branches to read the necessary fields from a serialized Bitbucket Server pull request
  • integration tests

Merge request reports

Loading