Skip to content

Instantly share code, notes, and snippets.

View sawyerh's full-sized avatar

Sawyer Hollenshead sawyerh

View GitHub Profile
@sawyerh
sawyerh / github-helper.js
Created February 3, 2018 20:37 — forked from timaschew/github-helper.js
automate a pull request flow via GitHub API - fork, create branch or update from upstream, commit changes, do pull request and optional merge
'use strict'
const Octokat = require('octokat')
const Promise = require('bluebird')
const ORIGIN_USERNAME = 'username-or-organisation'
const ORIGIN_REPO = 'the-origin-repo'
const ORIGIN_BRANCH = 'master'
const WAIT_FOR_FORK = 5
const WAIT_FOR_MERGE = 5