dump version, create changelog and pull request
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
LICENSE
README.md

README.md

git-release-request

dump version, create changelog and pull request

git release-status

next version: 1.0.1
commits
* fix some typos
* add feature A
git release-request "- add feature A"

# ...merged

git release-tag
Table of Contents

Requirements

Usage

to install git-release-request, clone into your bash-scripts directory, and export PATH

INSTALL_DIR=path/to/scripts/git-release-request

git clone https://github.com/getto-systems/git-release-request.git $INSTALL_DIR

export PATH=$INSTALL_DIR/bin:$PATH

git release-status

show next version and commits since previous release

git release-status #=> (output)

next version: 1.0.1
commits
* fix some typos
* add feature A

available version files:

  • mix.exs
  • package.json
  • elm-package.json

add version file

you can setup your version file path

export GIT_RELEASE_VERSION_FILE=/gems/lib/my/project/version.rb

git release-request

dump version, create changelog and pull request

git release-request "- add feature A
- fix some typos" #=>
  create changelog &&
  git add $version_file $changelog &&
  git create-work-branch "version dump : $version"

create changelogs:

  • CHANGELOG.md : put summary
  • CHANGELOG/$version.md : summary and commits

add dumping-version files

you can setup your dumping-version files in $GIT_ROOT/.git_release_request.rc.sh

git_release_request_dump_version_local(){
  local file
  for file in some/path/*.txt; do
    sed -i 's/version : [0-9.-]\+/version : '$version'/' $file
    git add $file
  done
}

this function call before commit

you can rewrite some files and add for version-dump commit

  • $version : new version string

git release-tag

tag latest release version

git release-tag #=> git tag $latest_release_version

git release-request-major

commit "major version up"

git release-request-major #=> git commit --allow-empty -m "major version up"

git release-request-minor

commit "minor version up"

git release-request-minor #=> git commit --allow-empty -m "minor version up"

License

git-release-request is licensed under the MIT license.

Copyright © since 2017 shun@getto.systems