Giter Site home page Giter Site logo

err-github-merger's Introduction

err-github-merger

This plugin allows you to merge your projects' branches on GitHub using Errbot.

Reasons why you might use this plugin:

  • provide a consistent way of merging branches, using whatever flags you find most appropriate
  • make it easy for non-technical users on your team to use your given merge style
  • allow your Errbot server to sign all merges with its GPG key
  • make it possible to do merges from your team's chat platform (Slack, HipChat, IRC, or any other backend supported by Errbot)
  • reduce the number of users with write access to your repos

Features

  • supports merging to multiple repositories
  • signs merges using GPG key
  • merge commits include comprehensive authorship data:
    • the bot user as the committer
    • author of the branch as the author of the giver commit as the author
    • full name of the invoking user (the user who issues the command) as part of the commit message
  • blacklist certain branches from being merged
  • deletes branches after merging

Installation

Requirements:

  • configure the plugin according to the template:
{
    'REPOS_ROOT': '/home/web/repos/',
    'forbidden_branches': ['master', 'develop'],  # Can't merge these
    'projects': {
        # Name of the project in GitHub
        'some-project': '[email protected]:netquity/some-project.git',
    },
}
  • git version 2.11.0 or greater must be installed on the server
  • your server must have access to the repositories you want to merge into

Required only if you want to sign your commits:

  • your GPG key must be
    • imported on your server
    • configured for your machine user's GitHub account
  • set the authorship information in your server's .gitconfig to match your machine user:
[user]
        email = <the email used with your GPG key>
        signingkey = <your GPG fingerprint>
[commit]
        gpgsign = true

Use

  • For your Foo project, merge branch bar to develop:
!merge --branch-name bar --project-name foo

Caveats

  • Only supports merging to develop at this time
  • The merge strategy is not configurable yet; if you want a different strategy, fork the repo

Related Plugins

  • err-github-jira-release
    • Perform version releases between JIRA and GitHub
  • err-fabric
    • Invoke Fabric commands using Errbot to handle tasks like deployments, status checks, etc.

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.