Commit graph

33 commits

Author SHA1 Message Date
Simon Tate 613b909765 git-release: Add prefix to semver
To allow different release names other than specifically mm.vv.pp, this
adds the ability to use a prefix too.

For example, you can use:

```
$ git release --semver minor --prefix "prefix-"
```

This would allow the previous tags to be in the form `prefix-0.1.0`. A
more obvious use case for this would be a single letter, such as `v` or
`r` to use tags like: `r0.1.0` or `v0.1.0`.
2022-04-15 13:13:02 +01:00
Tom Andrade 704b1b4fdd Add flags -s and -u for signed tags 2019-11-26 08:31:06 +01:00
Tjaart van der Walt 658f133691 Major/Minor release should reset minor/patch versions to 0
There is a bug in the current version:

```
version=1.1.3
./git-release --semver minor
version=1.2.3
```

The correct behavior should be:

```
version=1.1.3
./git-release --semver minor
version=1.2.0
```
2018-05-07 15:00:39 -07:00
Tjaart van der Walt 6f416b20c3 Fix greedy match of version number
The original regex will greedily match the first digit of version
numbers that have multiple digits.
2018-05-07 14:44:35 -07:00
spacewander e9ddc1dc3b git-release: show message if nothing given after --semver 2018-02-18 11:37:23 +08:00
spacewander de364cfac1 git-release: add --no-empty-commit for empty commit hater 2018-02-11 20:12:10 +08:00
spacewander 8714ac4aa1 git-release: create an empty release commit if there is nothing to commit 2018-02-11 20:12:10 +08:00
Dominic Barnes 5639160b8b feat(git-release): push tags first to help ci tools not miss them
If you are buliding on CircleCI for example, pushing the commits first
can lead to a race where CI env will not see the tags since the pull
happened before the tags were finished pushing.

It should be fully safe (and backwards-compatible) to change the order
of pushing to the remote.
2018-01-23 13:51:44 -08:00
spacewander ab99fb3eb2 git-release: handle extra non-numeric prefix in tag with --semver 2017-12-12 10:10:37 +08:00
spacewander 693c84f8f0 git-release: add --semver option 2017-12-10 14:06:00 +08:00
spacewander 199364e932 git-release: function usage doesn't exist, ignore unknown argument instead 2017-12-07 00:29:07 +08:00
spacewander 27310926d3 git-release: add pre-release failure message 2017-05-03 09:54:17 +08:00
spacewander 3428b278d3 git release: stop if pre-release hook fails 2017-05-02 14:59:18 +08:00
Daniel Bruder b41a4cf05b pass release arguments to pre/post-release scripts
With some modification to catch up with latest situation.
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2017-05-02 14:35:03 +08:00
spacewander b33f85a5d1 follow common shebang 2016-07-28 22:24:40 +08:00
Riceball LEE 48eb195ee0 + custom commit message options supports 2015-02-12 17:55:31 +08:00
hemanth.hm 081e14f88f Merge pull request #226 from tsldh/master
Added changelog -c flag to git-release.
2014-12-07 10:49:24 +05:30
David Hartmann 292586d96f added changelog to release as optional flag
- rewrote the flags to contain multiple
- added -c as changelog option
2014-12-06 14:43:34 -05:00
dead-horse 9a9be49b63 make release hook more flexible 2014-12-03 00:57:41 +08:00
Damian Krzeminski 9b62449166 Add remote parameter to git-release
When present <remote> is passed to git push
It makes git-release usable even when you have non-standard remotes
configured
2012-10-25 18:19:04 -06:00
TJ Holowaychuk f4936f4e23 git-release: removed "Prepared" 2012-05-11 09:47:49 -07:00
TJ Holowaychuk a4905546c0 ocd 2012-04-29 10:33:31 -07:00
creynders 69140cec81 made git commit optional and added -a -m switches to tag 2012-04-28 14:29:47 +03:00
David Baumgold 3e3b4c918c Send error messages to stderr instead of stdout 2012-01-25 11:52:08 -05:00
Tj Holowaychuk c4e938d656 Added pre- post-release hooks to git-release 2011-12-08 07:55:29 -08:00
Tj Holowaychuk 1f7edd9d24 revert broken git-release 2011-05-20 07:29:53 -07:00
Tj Holowaychuk 11ee5ed4f8 merge conflicts 2011-05-19 14:30:31 -07:00
Jonhnny Weslley 758e8ce8b9 Use annotated tags to release commits instead of lightweight tags
Signed-off-by: Tj Holowaychuk <tj@vision-media.ca>
2011-05-19 14:26:47 -07:00
Jonhnny Weslley f235670a3e adopting uniq code style across multiple scripts: variables assignments, arguments validation and core logic. This style reduces if statements usage and makes code easier to understand. :D 2010-11-25 16:23:38 -03:00
Jonhnny Weslley 54fd21a755 Use annotated tags to release commits instead of lightweight tags 2010-11-24 10:16:53 -03:00
Domenico Rotiroti ed1c111569 Allow spaces in release names/numbers 2010-08-24 06:12:30 -07:00
Tj Holowaychuk 4dc99404ac Added git-delete-branch 2010-08-10 21:13:59 -07:00
Tj Holowaychuk cba70821fb Added git-release 2010-08-04 10:07:14 -07:00