Home

Awesome

barbershop Build Status Coverage Status

trims a little of the top and sides of your github repository after pull request merges

šŸš§šŸš§šŸš§ This funcitonality is now built into Github šŸš§šŸš§šŸš§

šŸ¤” about

This application is a github webhook handler for pull request events that automates the process of deleting branches after a pull request is merged, keeping your github repository branch list well trimmed šŸ’‡šŸ½ā€ā™€ļø šŸ’‡šŸæā€ā™‚ļø

šŸ”Œ install

You can install this application as a webook under your github repository's settings.

Visit https://github.com/{owner}/{repo}/settings/hooks/new to install a new github webhook.

šŸ‘©ā€šŸ­ development

This is a rustlang application. Go grab yourself a copy of rustup.

šŸš€ deployment

This is a rust application deployed using āš” serverless āš”.

šŸ’” To install serverless, run make dependencies

This lambda is configured through its environment variables.

NameDescription
GITHUB_TOKENtoken used to update github pull request
GITHUB_WEBHOOK_SECRETshared secret used to authenticate requests

šŸ’” the GITHUB_TOKEN env var must have repo scope in order to properly delete branches for the repository the webhook is configured for.

Run AWS_PROFILE=prod make deploy to deploy.