Skip to content

danrspencer/commit-queue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Commit Queue

Based on the idea from the Chromium commit queue to prevent the trunk ever being red while still allowing everyone to work on the trunk branch.

alt terminal

alt concourse

alt slack

Quick Start

Quickly bootstrap your project with Concourse and the Commit Queue pipeline by running the bootstrap.sh in your project root.

curl -s https://raw.githubusercontent.com/danrspencer/commit-queue/master/bootstrap.sh | bash /dev/stdin

The bootstrap script assumes you already have Vagrant installed. If you don't use the following commands to install it:

brew cask install virtualbox
brew cask install vagrant

To push using the queue run push-to-queue. Optionally you can pass command arguments to the script which are forwarded to git commit, e.g.

p2q -am "adding all the files, setting commit msg and pushing!"

Manual Setup

Scripts

Copy the ci, scripts and Makefile into your project, then run make in the root of the project to setup the pre-push hook and the "push to queue" (p2q) script.

make

Concourse

To start Concourse run make inside the ci folder, this will spin up the Vagrant box and setup the pipeline.

cd ci
make

How it works

  1. A simple pre-push hook prevents direct pushes into the trunk branch
  2. The bash script, p2q, handles creating and pushes new unique branch
  3. Concourse picks up the new branch validates it by running tests, linting, etc..
    1. If it passes then merges the commits into master and deletes the branch
    2. If it fails it leaves branch in place so it can be more easily diagnosed and alerts the team via Slack

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published