Pull Request

Version: 1.1.1
vcs/pull-request
superface

Retrieve information about a pull request in a version control system repository.

PullRequest

Get details of the specified pull request.

Owner
Repo
Identifier
Tittle
Id
Url
Sha

1. Install

npx @superfaceai/cli install vcs/pull-request

2. Use in your code

const { SuperfaceClient } = require('@superfaceai/one-sdk');

const sdk = new SuperfaceClient();

async function run() {
  // Load the installed profile
  const profile = await sdk.getProfile('vcs/pull-request');

  // Use the profile
  const result = await profile
    .getUseCase('PullRequest')
    .perform({
      owner: 'superfaceai',
      repo: 'one-sdk-js',
      identifier: 42
    });

  return result.unwrap();
}

run();

3. Add providers