Giter Site home page Giter Site logo

backport's Introduction

build status

Goal

Backport is a GitHub App, based on Probot, to backport a pull request by simply adding a label to it. Try it!

Usage

  1. ๐Ÿ”Œ Install the publicly hosted Backport GitHub App on your repository.
  2. ๐Ÿ’ฌ Let's say you want to backport a pull request on a branch named production. Then label it with backport production. (See how to create labels.)
  3. โœจ That's it! When the pull request gets merged, it will be backported to the production branch. If the pull request cannot be backported, a comment explaining why will automatically be posted.

Note: multiple backport labels can be added. For example, if a pull request has the labels backport staging and backport production it will be backported to both branches: staging and production.

Demo

Backport demo

This pull request has two commits and targets the development branch. After labeling it with backport production and merging it, Backport automatically creates a pull request on the production branch by cherry-picking these two commits.

How it Works

Backport relies on github-backport to perform all the required Git operations directly through the GitHub REST API instead of having to clone repositories on a server and executing Git CLI commands.

github-backport is the ๐Ÿ—๏ธ to being able to run Backport as a stateless, easy to maintain, and cheap to operate, GitHub App!

Which Permissions & Webhooks Is Backport Using?

Permissions

  • Repository contents [read & write]: because the backporting process requires creating commits and manipulating branches.
  • Issues [read & write]: to post comments when the backport process fails.
  • Pull requests [read & write]: to create new pull requests.

Webhooks

  • Pull requests: to detect when pull requests are merged or labeled.

backport's People

Contributors

m-kuhn avatar roborourke avatar shadyvb avatar tibdex avatar

Watchers

 avatar  avatar

Forkers

isabella232

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.