git ssb

0+

cel / ssb-pull-requests



Tree:
📄README.md
📄index.js
📁lib
📄package.json
README.md

ssb-pull-requests

Pull requests for git-ssb repos

API

var Pulls = require('ssb-pull-requests')
var pulls = Pulls.init(sbot)

get: async

Get a pull request by its id

pulls.get(id, cb)

{
  id: Ref,
  created_at: timestamp,
  headRepo: Ref,
  headBranch: string,
  baseRepo: Ref,
  baseBranch: string,
  title: string?,
  text: string?,
  open: boolean,
  mergeable: boolean?
}

list: source

Get a stream of pull requests

issues.list({ repo:, open:, author:, live:, gt:, gte:, lt:, lte:, reverse: })

{
  id: Ref,
  created_at: timestamp,
  repo: Ref,
  branch: string,
  head_repo: Ref,
  head_branch: string,
  title: string?,
  text: string?,
  open: boolean,
  mergeable: boolean?,
}

Schemas

var prSchemas = Pulls.schemas

prSchemas.new(baseRepo, baseBranch, headRepo, headBranch, title, text)

Create a pull request. A pull request is a request to pull from a branch of one git-ssb repo (head), to a branch on another git-ssb repo (base).

{
  type: 'pull-request',
  project: Ref,
  repo: Ref,
  branch: string,
  base_repo: Ref,
  base_branch: string,
  title: string?,
  text: string?
}

License

Copyright (c) 2016 Charles Lehner

Usage of the works is permitted provided that this instrument is retained with the works, so that any entity that uses the works is notified of this instrument.

DISCLAIMER: THE WORKS ARE WITHOUT WARRANTY.

Built with git-ssb-web