@artsy/update-repo
Update repositories easily from a node script
Last updated 3 months ago by artsy-engineering .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @artsy/update-repo 
SYNC missed versions from official npm registry.

@artsy/update-repo

Update github repos with a pull request

Installation

yarn add @artsy/update-repo

Usage

Aside from node, you need two things in your execution environment to make this work:

import { updateRepo } from "@artsy/update-repo"

await updateRepo({
  repo: { owner: "artsy", repo: "metaphysics" },
  branch: "update-npm-dependency",
  targetBranch: "master",
  title: "Update the version for my-npm-package",
  body: "bleep bloop :robot:",
  commitMessage: "update version",
  assignees: ["ds300"],
  labels: ["automated"],
  update: (dir) => {
    // This update function gets executed in a freshly-checked-out version
    // of the repo you speicified. If you make any changes here they will
    // be committed and added to a PR.
    execSync(`yarn add my-npm-package@${newVersion}`, { cwd: dir })
  },
})

About Artsy

This project is the work of engineers at Artsy, the world's leading and largest online art marketplace and platform for discovering art. One of our core Engineering Principles is being Open Source by Default which means we strive to share as many details of our work as possible.

You can learn more about this work from our blog and by following @ArtsyOpenSource or explore our public data by checking out our API. If you're interested in a career at Artsy, read through our job postings!

Current Tags

  • 0.1.5                                ...           latest (3 months ago)

13 Versions

  • 0.1.5                                ...           3 months ago
  • 0.1.4                                ...           3 months ago
  • 0.1.3                                ...           3 months ago
  • 0.1.2                                ...           4 months ago
  • 0.1.1                                ...           4 months ago
  • 0.1.0                                ...           4 months ago
  • 0.0.7                                ...           4 months ago
  • 0.0.6                                ...           4 months ago
  • 0.0.5                                ...           4 months ago
  • 0.0.4                                ...           4 months ago
  • 0.0.3                                ...           4 months ago
  • 0.0.2                                ...           4 months ago
  • 0.0.1                                ...           4 months ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (5)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |