Skip to content
This repository has been archived by the owner on Aug 25, 2022. It is now read-only.

Release, changelog and merge request generator for GitLab and GitHub. Usefull magic in one string :)

Notifications You must be signed in to change notification settings

titanium-technologies-group/bump.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

bump.sh

#!/bin/bash
#    _                                _
#   | |                              | |
#   | |__  _   _ _ __ ___  _ __   ___| |__
#   | '_ \| | | | '_ ` _ \| '_ \ / __| '_ \
#   | |_) | |_| | | | | | | |_) |\__ \ | | |
#   |_.__/ \__,_|_| |_| |_| .__(_)___/_| |_|
#                         | |
#                         |_|
#                               by @rakshazi
  • Collects changes from commit summaries between branches
  • Generates file CHANGELOG.md with list of all changes
  • Commits that file with commit summary Release v<NEW_VERSION>
  • Creates new tag with release version and changes list as message
  • Pushes commit with new tag and updated changelog
  • Opens Gitlab Merge Request or GitHub Pull Request (url generated from origin url) with predefined title and branches in browser

PLEASE, use http://semver.org/

Integration with git

sudo curl -o /usr/local/bin/git-bump -s https://raw.githubusercontent.com/titanium-codes/bump.sh/stable/bin && sudo chmod +x /usr/local/bin/git-bump
git config --global alias.bump "git-bump"

Usage

# Inside your repo
git bump <BRANCH_FROM> <BRANCH_TO>

BRANCH_FROM default: current branch

BRANCH_TO default: master

Just use:

git bump

And enjoy magic :)