Skip to content

Commit 576342e

Browse files
committed
New tag argument to control prefix of version
Add an new input `tag` and remove `version` as required option to allow smooth transition to the new `tag` argument later. If tag is set version argument is ignored, if version argument is set a warning is emitted to transition to tag and tag is set to its value. Internally tag is added along version to differentiate the version (strict semver) and the tag (potentially 'v' prefixed semver). If the tag is prefixed, version is set as the non-prefixed tag value.
1 parent 9f6c16b commit 576342e

File tree

17 files changed

+265
-34
lines changed

17 files changed

+265
-34
lines changed

__tests__/fixtures/empty_release/fixture.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export default {
2+
tag: '0.3.0',
23
version: '0.3.0',
34
date: '2019-12-06',
45
genesisHash: '1625533e04119e8496b14d5e18786f150b4fce4d',

__tests__/fixtures/first_release/fixture.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export default {
2+
tag: '0.1.0',
23
version: '0.1.0',
34
date: '2020-02-15',
45
genesisHash: 'f29bb46e40c323fe0af44dda68c6f60e5b263c64',

__tests__/fixtures/lowercase_link_reference/fixture.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export default {
2+
tag: '0.3.0',
23
version: "0.3.0",
34
date: "2019-12-06",
45
genesisHash: "1625533e04119e8496b14d5e18786f150b4fce4d",

__tests__/fixtures/standard/fixture.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export default {
2+
tag: '0.3.0',
23
version: '0.3.0',
34
date: '2019-12-06',
45
genesisHash: '1625533e04119e8496b14d5e18786f150b4fce4d',
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [Unreleased]
9+
10+
## [0.3.0] - 2019-12-06
11+
12+
### Changed
13+
14+
- Our main theme is now blue instead of red.
15+
16+
## [0.2.0] - 2019-09-13
17+
18+
### Added
19+
20+
- First feature that is gonna make us money.
21+
- Quite a few bugs, sorry in advance!
22+
23+
### Changed
24+
25+
- Reworked the login system. You have to provide a password now!
26+
27+
## [0.1.0] - 2019-09-05
28+
29+
### Added
30+
31+
- Initial release :tada:
32+
33+
[Unreleased]: https://github.com/foo/bar/compare/v0.3.0...HEAD
34+
35+
[0.3.0]: https://github.com/foo/bar/compare/v0.2.0...v0.3.0
36+
37+
[0.2.0]: https://github.com/foo/bar/compare/0.1.0...v0.2.0
38+
39+
[0.1.0]: https://github.com/foo/bar/compare/1625533e04119e8496b14d5e18786f150b4fce4d...0.1.0
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [Unreleased]
9+
10+
### Changed
11+
12+
- Our main theme is now blue instead of red.
13+
14+
## [0.2.0] - 2019-09-13
15+
16+
### Added
17+
18+
- First feature that is gonna make us money.
19+
- Quite a few bugs, sorry in advance!
20+
21+
### Changed
22+
23+
- Reworked the login system. You have to provide a password now!
24+
25+
## [0.1.0] - 2019-09-05
26+
27+
### Added
28+
29+
- Initial release :tada:
30+
31+
[Unreleased]: https://github.com/foo/bar/compare/v0.2.0...HEAD
32+
33+
[0.2.0]: https://github.com/foo/bar/compare/0.1.0...v0.2.0
34+
35+
[0.1.0]: https://github.com/foo/bar/compare/1625533e04119e8496b14d5e18786f150b4fce4d...0.1.0
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export default {
2+
tag: 'v0.3.0',
3+
version: '0.3.0',
4+
date: '2019-12-06',
5+
genesisHash: '1625533e04119e8496b14d5e18786f150b4fce4d',
6+
owner: 'foo',
7+
repo: 'bar'
8+
};
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [Unreleased]
9+
10+
## [0.3.0] - 2019-12-06
11+
12+
### Changed
13+
14+
- Our main theme is now blue instead of red.
15+
16+
## [0.2.0] - 2019-09-13
17+
18+
### Added
19+
20+
- First feature that is gonna make us money.
21+
- Quite a few bugs, sorry in advance!
22+
23+
### Changed
24+
25+
- Reworked the login system. You have to provide a password now!
26+
27+
## [0.1.0] - 2019-09-05
28+
29+
### Added
30+
31+
- Initial release :tada:
32+
33+
[Unreleased]: https://github.com/foo/bar/compare/v0.3.0...HEAD
34+
35+
[0.3.0]: https://github.com/foo/bar/compare/0.2.0...v0.3.0
36+
37+
[0.2.0]: https://github.com/foo/bar/compare/0.1.0...0.2.0
38+
39+
[0.1.0]: https://github.com/foo/bar/compare/1625533e04119e8496b14d5e18786f150b4fce4d...0.1.0
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [Unreleased]
9+
10+
### Changed
11+
12+
- Our main theme is now blue instead of red.
13+
14+
## [0.2.0] - 2019-09-13
15+
16+
### Added
17+
18+
- First feature that is gonna make us money.
19+
- Quite a few bugs, sorry in advance!
20+
21+
### Changed
22+
23+
- Reworked the login system. You have to provide a password now!
24+
25+
## [0.1.0] - 2019-09-05
26+
27+
### Added
28+
29+
- Initial release :tada:
30+
31+
[Unreleased]: https://github.com/foo/bar/compare/0.2.0...HEAD
32+
33+
[0.2.0]: https://github.com/foo/bar/compare/0.1.0...0.2.0
34+
35+
[0.1.0]: https://github.com/foo/bar/compare/1625533e04119e8496b14d5e18786f150b4fce4d...0.1.0
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export default {
2+
tag: 'v0.3.0',
3+
version: '0.3.0',
4+
date: '2019-12-06',
5+
genesisHash: '1625533e04119e8496b14d5e18786f150b4fce4d',
6+
owner: 'foo',
7+
repo: 'bar'
8+
};

0 commit comments

Comments
 (0)