Skip to content

Commit 5bc2328

Browse files
Merge pull request #11 from h4sh3d/add-tag-argument
2 parents 9f6c16b + 7e9f6cc commit 5bc2328

File tree

19 files changed

+278
-35
lines changed

19 files changed

+278
-35
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
12+
- New optional `tag` argument allowing `v`-prefixed versions
13+
14+
### Changed
15+
16+
- The `version` argument is no longer required
17+
18+
### Deprecated
19+
20+
- The `version` argument will be replaced in favor of the `tag` argument
21+
1022
## [1.2.1] - 2021-02-23
1123

1224
### Fixed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- name: Update changelog
5454
uses: thomaseizinger/keep-a-changelog-new-release@v1
5555
with:
56-
version: 0.6.0 # You probably want to have this dynamic :)
56+
tag: v0.6.0 # You probably want to have this dynamic :)
5757
```
5858
5959
The action will do nothing else apart from modifying the changelog.

__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

0 commit comments

Comments
 (0)