Pull Requests

Version: 2.0.1
vcs/pull-requests
superface

Retrive version control system's pull requests for a repository.

PullRequests

Get pull requests of the specified repository.

Owner
Repo
pullRequests

1. Install

npx @superfaceai/cli install vcs/pull-requests

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-requests');

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

  return result.unwrap();
}

run();

3. Add providers