Skip to content

Instantly share code, notes, and snippets.

View sahithi-akella's full-sized avatar

sahithi-akella

View GitHub Profile
@sahithi-akella
sahithi-akella / github-helper.js
Created April 5, 2018 10:12 — 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