Skip to content

Commit

Permalink
Merge pull request #44 from pantheon-systems/readme-style-revert
Browse files Browse the repository at this point in the history
  • Loading branch information
joemiller authored Nov 6, 2020
2 parents 1c6b8a4 + c10b18b commit 9c712f7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
24 changes: 16 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# AutoTag
AutoTag
=======

[![Circle CI](https://circleci.com/gh/pantheon-systems/autotag.svg?style=shield&circle-token=ef9a68c180d0d470c594d39caf9e2a86fc529935)](https://circleci.com/gh/pantheon-systems/autotag)
[![Coverage Status](https://coveralls.io/repos/github/pantheon-systems/autotag/badge.svg?branch=master)](https://coveralls.io/github/pantheon-systems/autotag?branch=master)
Expand All @@ -24,7 +25,8 @@ Automatically increment version tags to a git repo based on commit messages.
- [Build from Source](#build-from-source)
- [Release information](#release-information)

## Dependencies
Dependencies
------------

- [Git 2.x](https://git-scm.com/downloads) available in PATH

Expand All @@ -33,7 +35,8 @@ system.

Versions prior to v1.0.0 use cgo libgit or native golang Git, the binary will work standalone.

## Installing
Installing
----------

### Pre-built binaries

Expand Down Expand Up @@ -71,7 +74,8 @@ Install a specific version of `autotag`:

> Only versions v1.2.0+ are supported by the install script.
## Usage
Usage
-----

The `autotag` utility will use the current state of the git repository to determine what the next
tag should be and then creates the tag by executing `git tag`. The `-n` flag will print the next tag but not apply it.
Expand Down Expand Up @@ -173,7 +177,8 @@ A common uses might be the current git reference: `git rev-parse --short HEAD`.

Multiple metadata items should be seperated by a `.`, eg: `foo.bar`

## Examples
Examples
--------

```console
$ autotag
Expand Down Expand Up @@ -252,7 +257,8 @@ workflows:
- master
```
## Troubleshooting
Troubleshooting
---------------
### error getting head commit: object does not exist [id: refs/heads/master, rel_path: ]
Expand All @@ -275,7 +281,8 @@ if [ $(git rev-parse --abbrev-ref HEAD) != "master" ]; then
fi
```

## Build from Source
Build from Source
-----------------

Assuming you have Go 1.5+ installed you can checkout and run make deps build to compile the binary
at `./autotag/autotag`.
Expand All @@ -289,7 +296,8 @@ make test
make build
```

## Release information
Release information
-------------------

Autotag itself uses `autotag` to increment releases. The default [autotag](#scheme-autotag-default)
scheme is used for version selection.
7 changes: 0 additions & 7 deletions autotag.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,6 @@ func validateConfig(cfg GitRepoConfig) error {
return fmt.Errorf("'%s' is not valid SemVer pre-release name", cfg.PreReleaseName)
}

// switch cfg.PreReleaseName {
// case "", "alpha", "beta", "pre", "rc", "dev":
// // nothing -- valid values
// default:
// return fmt.Errorf("pre-release-name '%s' is not valid; must be (alpha|beta|pre|rc|dev)", cfg.PreReleaseName)
// }

switch cfg.PreReleaseTimestampLayout {
case "", "datetime", "epoch":
// nothing -- valid values
Expand Down

0 comments on commit 9c712f7

Please sign in to comment.