Skip to content
This repository was archived by the owner on Oct 5, 2023. It is now read-only.

segmentio/patchwork

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

patchwork

Patchwork is a library to that lets you apply a single change across mutliple Github repositories. Instead of blindly committing a change to a repository, patchwork lets you leverage your CI to test your changes and give you confidence that a commit is reliable.

Usage

p := patchwork.New(os.Getenv("GITHUB_TOKEN"), os.Getenv("CIRCLE_TOKEN"))

opts := &patchwork.ApplyOptions{}
opts.Message = "Some Commit Message for this change."
opts.Branch = "some-branch-for-this-update"
opts.Repos = []patchwork.Repository{
  // An array of repos to update.
  {"segment-integrations", "analytics.js-integration-mixpanel"},
}

p.Apply(*opts, func(repo *github.Repository, dir string) {
  // apply some changes here.
})

Patchwork will clone your repos, apply your patch, push to a new branch and wait for their CI results. If any tests fail, it will print a message indicating that the commit failed. If all tests succeed, it will open a Pull Request, and merge it for you.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published