All Projects → franiglesias → versiontag

franiglesias / versiontag

Licence: MIT license
Bash command to automate tag semantic versioning

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to versiontag

Axion Release Plugin
Gradle release & version management plugin.
Stars: ✭ 372 (+830%)
Mutual labels:  versioning, semantic-versioning
sv4git
Semantic version and conventional commits for git
Stars: ✭ 33 (-17.5%)
Mutual labels:  versioning, semantic-versioning
Python Semver
Python package to work with Semantic Versioning (http://semver.org/)
Stars: ✭ 264 (+560%)
Mutual labels:  versioning, semantic-versioning
React Native Version
🔢 Version your React Native or Expo app in a `npm version` fashion.
Stars: ✭ 408 (+920%)
Mutual labels:  versioning, semantic-versioning
Dunamai
Dynamic versioning library and CLI
Stars: ✭ 85 (+112.5%)
Mutual labels:  versioning, semantic-versioning
Semver
Semantic versioning helper library for PHP
Stars: ✭ 144 (+260%)
Mutual labels:  versioning, semantic-versioning
Poetry Dynamic Versioning
Plugin for Poetry to enable dynamic versioning based on VCS tags
Stars: ✭ 131 (+227.5%)
Mutual labels:  versioning, semantic-versioning
Version
Represent and compare versions via semantic versioning (SemVer) in Swift
Stars: ✭ 160 (+300%)
Mutual labels:  versioning, semantic-versioning
checks-out
Checks-Out pull request approval system
Stars: ✭ 79 (+97.5%)
Mutual labels:  versioning
deblibs-gradle-plugin
A Gradle plugin that creates Github issue and Slack message for outdated dependencies so they can easily be tracked and manually upgraded.
Stars: ✭ 73 (+82.5%)
Mutual labels:  versioning
get-changelog
A CLI tool to easily find changelogs
Stars: ✭ 21 (-47.5%)
Mutual labels:  versioning
versioce
Version bumping and changelog generation for your mix project
Stars: ✭ 19 (-52.5%)
Mutual labels:  versioning
developer
Ermöglicht die Bearbeitung von Templates, Modulen und Aktionen im Dateisystem (also mit einem beliebigen Editor).
Stars: ✭ 84 (+110%)
Mutual labels:  versioning
octoclairvoyant-webapp
Compare GitHub changelogs across multiple releases in a single view.
Stars: ✭ 45 (+12.5%)
Mutual labels:  semantic-versioning
gradle-versioner
Gradle Version Plugin. Generates semantic versions with git meta data per branch.
Stars: ✭ 25 (-37.5%)
Mutual labels:  semantic-versioning
neo4j-migrations
Automated script runner aka "Migrations" for Neo4j. Inspired by Flyway.
Stars: ✭ 82 (+105%)
Mutual labels:  versioning
git-semv
🔖 Git plugin for Semantic Versioning
Stars: ✭ 20 (-50%)
Mutual labels:  semantic-versioning
zerover
0️⃣ Minimalist versioning scheme for devs who can't be bothered.
Stars: ✭ 141 (+252.5%)
Mutual labels:  versioning
gradle-release-plugin
Gradle plugin providing very minimal release version numbering (Git-specific)
Stars: ✭ 43 (+7.5%)
Mutual labels:  semantic-versioning
next-ver
Tells you the next semantic version for your local package
Stars: ✭ 27 (-32.5%)
Mutual labels:  semantic-versioning

versiontag

Bash command to automate tagging with semantic versioning in a git repository.

Current version: v2.1.1

Features

Allow easy maintenance of semantic versioning in git projects.

Since 1.4.2 supports .semver file writing.

Since 2.0.0 tags are not annotated by default. You must use the option -m or --message to annotate the tag.

Commands

help - Shows a help
current - Shows the last version tag found. If there is none it defaults to v0.0.0
patch - Increases patch version: v1.0.0 -> v1.0.1
minor - Increases minor version (and resets patch): v1.0.5 -> v1.1.0
major - Increases major version (and resets minor and patch): v1.3.4 -> v2.0.0
remove - Removes the last tag in the repository. This command doesn't support the -f|--force option.

Options

-h|--help - Shows help.
-f|--force - Script won't ask for confirmation.
-d|--dry - Executes without perform any change.
-m|--message - Annotates the tag with the message.
-s|--semver - Generates the .semver file.

Installation

  • Copy the script to the place you want. Best in your $PATH.
  • Make it executable if needed.
  • There is no step three, I guess.

If you want to install it on your Linux or Mac OS X machine, use:

sudo curl -L \
https://raw.githubusercontent.com/franiglesias/versiontag/master/versiontag \
-o /usr/local/bin/versiontag \
&& sudo chmod +x /usr/local/bin/versiontag \
&& versiontag help

Tests

Tests should help you to understand how versiontag works and to modify the code without breaking functionality. More tests are coming soon.

Run the tests with the following command.

bash testCases/testAll.sh

Known limitations

You should update your master before running versiontag in order to get the latest tags from the remote repo.

Contributors

Feel free to suggest improvements and ideas.

A big thank you to:

Patrik Kristian:

  • Tests
  • Linux installation instructions
  • Several code improvements

Javier Ferrer

  • Suggested .semver file

Asghar Ghorbani

  • Fixed problem with remove command

Skarev

  • Improve tag sorting

Your name here ;-)

Basic usage

$ versiontag patch|minor|major [-m 'Tag message']

The command will show current and updated version and will prompt you to create the tag in the local version.

After that, it will prompt you to push the tag to remote repository.

That's all.

Examples

Show current version

$ versiontag current

Generate .semver for current version

$ versiontag current --semver

Patch version

$ versiontag patch -m 'Fix broken view'

Force patch version without annotation

$ versiontag --force patch

Minor version with message option

$ versiontag minor --message 'Add Customer filter by email'

Major version

$ versiontag major -m 'Blog module'

Remove last tag

$ versiontag remove
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].