Skip to content

joemasilotti/git-auto-tagger

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

git-auto-tagger

Tag commits based on the commit message. Useful if you rebase often and don't want to manually clean up tags every time.

I'm using this for a workshop I run. Attendees check out code at phases and I rebase often to keep the history clean.

WARNING: This will delete any existing local and remote tags. Make sure all the tags you want to keep are in the YAML file.

Requirements

Ruby 3.1.2

Usage

  1. Add a .tags.yml file to your project
  2. Run ./auto-tag.sh from your project's directory

.tags.yml format

- tag: TAG_NAME
  commit: COMMIT_MESSAGE
  message: OPTIONAL_TAG_ANNOTATION

For example:

- tag: 0.1.0
  commit: Set version to 0.1.0
- tag: 0.2.0
  commit: Bump minor version
  message: Add dynamic indexing
  1. Finds the 'Set version to 0.1.0' commit and sets the tag to '0.1.0'.
  2. Finds the 'Bump minor version' commit and sets the tag to '0.2.0' with a message."

About

Tag commits based on a YAML file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published