crunchie84 / autoversionbumper

Small C# Web Api which can receive GitHub push webhooks to bump the minor version in your repo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Auto version Bumper

This web-api is used to recieve a webhook push event from github. If the event is a push of commits to the refs/head/develop branch AND it contains commits merging a feature branch into it or a pull request being merged it will try to bump the minor version of the repository and push it back.

Example

Setup

  • Create a Personal Api Token within Github for the user as which you will commit the automated bumps => https://github.com/settings/applications
  • Check out the code, build it. Now update the Appsettings.config and deploy it somewhere (Azurewebsites is easy as pie)
  • Done!

Setup of new repo to watch

Usage

work on your code, create feature/my-epic-feature. Merge it into develop. push it to Github. see the awesomeness in your commit history!

NOTES

Due to the fact that we use libgit2sharp which does not play well with web publishing (yet) i have included the nativelibraries as 'copy to bin folder' in the solution. This is a workaround untill they have merged PR#705 and rolled it out as new version.

About

Small C# Web Api which can receive GitHub push webhooks to bump the minor version in your repo

License:GNU General Public License v2.0


Languages

Language:C# 99.0%Language:ASP 1.0%