git-changelog-command-line 1.102.0 → 1.103.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,10 +2,16 @@
2
2
 
3
3
  [![Maven Central](https://maven-badges.herokuapp.com/maven-central/se.bjurr.gitchangelog/git-changelog-command-line/badge.svg)](https://maven-badges.herokuapp.com/maven-central/se.bjurr.gitchangelog/git-changelog-command-line)
4
4
  [![NPM](https://img.shields.io/npm/v/git-changelog-command-line.svg?style=flat-square)](https://www.npmjs.com/package/git-changelog-command-line)
5
+ [![NPM Downloads](https://img.shields.io/npm/dm/git-changelog-command-line.svg?style=flat)](https://www.npmjs.com/package/git-changelog-command-line)
6
+ [![Docker Pulls](https://badgen.net/docker/pulls/tomasbjerre/git-changelog-command-line?icon=docker&label=pulls)](https://hub.docker.com/r/tomasbjerre/git-changelog-command-line/)
5
7
 
6
8
  This is a command line tool for generating a changelog, or releasenotes, from a GIT repository. It uses the [Git Changelog Lib](https://github.com/tomasbjerre/git-changelog-lib).
7
9
 
8
- This is a Java application (runnable `jar`) packaged into an `NPM` package for convenience. The runnable `jar` can be found in [Maven Central](http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22git-changelog-command-line%22) and used like `java -jar git-changelog-command-line-*.jar ....`. The `npm` package can be found in [NPM](https://www.npmjs.com/package/git-changelog-command-line).
10
+ This is a Java application (runnable `jar`) packaged into an `NPM` package for convenience.
11
+
12
+ - The runnable `jar` can be found in [Maven Central](http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22git-changelog-command-line%22) and used like `java -jar git-changelog-command-line-*.jar ....`.
13
+ - The `npm` package can be found in [NPM](https://www.npmjs.com/package/git-changelog-command-line).
14
+ - The `Docker` image can be found in [Dockerhub](https://hub.docker.com/r/tomasbjerre/git-changelog-command-line) and used like `docker run --mount src="$(pwd)",target=/usr/src/git-changelog-command-line,type=bind tomasbjerre/git-changelog-command-line:X --stdout`.
9
15
 
10
16
  ## Example - Simple
11
17
 
@@ -121,14 +127,14 @@ npx git-changelog-command-line \
121
127
 
122
128
  {{#tags}}
123
129
  {{#ifReleaseTag .}}
124
- ## [{{name}}](https://gitlab.com/html-validate/html-validate/compare/{{name}}) ({{tagDate .}})
130
+ ## [{{name}}](https://github.com/tomasbjerre/someproject/compare/{{name}}) ({{tagDate .}})
125
131
 
126
132
  {{#ifContainsType commits type='feat'}}
127
133
  ### Features
128
134
 
129
135
  {{#commits}}
130
136
  {{#ifCommitType . type='feat'}}
131
- - {{#eachCommitScope .}} **{{.}}** {{/eachCommitScope}} {{{commitDescription .}}} ([{{hash}}](https://gitlab.com/html-validate/html-validate/commit/{{hashFull}}))
137
+ - {{#eachCommitScope .}} **{{.}}** {{/eachCommitScope}} {{{commitDescription .}}} ([{{hash}}](https://github.com/tomasbjerre/someproject/commit/{{hashFull}}))
132
138
  {{/ifCommitType}}
133
139
  {{/commits}}
134
140
  {{/ifContainsType}}
@@ -138,7 +144,7 @@ npx git-changelog-command-line \
138
144
 
139
145
  {{#commits}}
140
146
  {{#ifCommitType . type='fix'}}
141
- - {{#eachCommitScope .}} **{{.}}** {{/eachCommitScope}} {{{commitDescription .}}} ([{{hash}}](https://gitlab.com/html-validate/html-validate/commit/{{hashFull}}))
147
+ - {{#eachCommitScope .}} **{{.}}** {{/eachCommitScope}} {{{commitDescription .}}} ([{{hash}}](https://github.com/tomasbjerre/someproject/commit/{{hashFull}}))
142
148
  {{/ifCommitType}}
143
149
  {{/commits}}
144
150
  {{/ifContainsType}}
@@ -148,6 +154,36 @@ npx git-changelog-command-line \
148
154
  "
149
155
  ```
150
156
 
157
+ Or you can prepend to the current changelog. You may get `$nextVersion` from `--print-next-version` and `$highestTag` from `--print-highest-version-tag`. Somehting like this:
158
+
159
+ ```shell
160
+ npx git-changelog-command-line \
161
+ --from-ref $highestTag \
162
+ --to-ref HEAD \
163
+ --prepend-to-file CHANGELOG.md \
164
+ --template-content "
165
+ ## $nextVersion
166
+
167
+ {{#ifContainsType commits type='feat'}}
168
+ ## Features
169
+ {{#commits}}
170
+ {{#ifCommitType . type='feat'}}
171
+ {{#eachCommitScope .}} **{{.}}** {{/eachCommitScope}} {{{commitDescription .}}} ([{{hash}}](https://github.com/tomasbjerre/someproject/commit/{{hashFull}}))
172
+ {{/ifCommitType}}
173
+ {{/commits}}
174
+ {{/ifContainsType}}
175
+
176
+ {{#ifContainsType commits type='fix'}}
177
+ ## Bug Fixes
178
+ {{#commits}}
179
+ {{#ifCommitType . type='fix'}}
180
+ {{#eachCommitScope .}} **{{.}}** {{/eachCommitScope}} {{{commitDescription .}}} ([{{hash}}](https://github.com/tomasbjerre/someproject/commit/{{hashFull}}))
181
+ {{/ifCommitType}}
182
+ {{/commits}}
183
+ {{/ifContainsType}}
184
+ "
185
+ ```
186
+
151
187
  ### Example NPM and `package.json`
152
188
 
153
189
  If you are using NPM, you may want to add this to your `package.json`:
@@ -301,6 +337,12 @@ Or from command line:
301
337
  include actual releases.
302
338
  <string>: any string
303
339
  Default: null
340
+ -jaf, --jira-additional-field <string> Adds an additional field for Jira.
341
+ When configured, we will return
342
+ from Jira the result of this
343
+ field, if it exists. [Supports Multiple occurrences]
344
+ <string>: any string
345
+ Default: Empty list
304
346
  -jba, --jira-basic-auth <string> Optional token to authenticate
305
347
  with Jira.
306
348
  <string>: any string
@@ -0,0 +1,11 @@
1
+ -----BEGIN PGP SIGNATURE-----
2
+ Version: BCPG v1.68
3
+
4
+ iQEcBAABCgAGBQJko7NPAAoJEJxRmnfYMAu7nk8H+wbQODdMEuIoYxzXIRQB7Cq4
5
+ FvxxsyQ+M6TtJqTcSnB/E3ggdy2cfOwaW3I4FUPLMRXs+kgjl0xzSG9qho3d/2ID
6
+ g0QzRQB5zWM1kbbdkChc1glZ/Pq+odKWVx5nEJZepABJEXEWFupJSc0JV1JECrfa
7
+ Foe0Mn83+g/gcKg8Hh1+cwWwuIvoTl/npYiFpju7zo+jfb/g9piNbPd081+9rDa7
8
+ tcrHq1UbDAVIJBKHaWwAbNWluCDaYsrV1pLR9u9LNQk3AvD9timEJ6FtFJvJD6EL
9
+ iq5dum8hn0KsmuaoTQXdbcKUq4Zg7uUxyFlQWuf3H0RT94tqJTQDR+YBBqeEnQw=
10
+ =1Qd1
11
+ -----END PGP SIGNATURE-----
@@ -0,0 +1,11 @@
1
+ -----BEGIN PGP SIGNATURE-----
2
+ Version: BCPG v1.68
3
+
4
+ iQEcBAABCgAGBQJko7NPAAoJEJxRmnfYMAu7ZtUIAJORvFlNdFnYg21odYB4nWBH
5
+ n8YpULjlRqg0cVTV35/sXkCzB0bqzBLjYcJptBVYBgogo8CXHdMwVT9/nJ1x9344
6
+ KqVcaGcVx/Bp7hb4BjaXIzXlWILfXhnlbki6MW7dDWQCMqqsSha+t/k9u0guNv2K
7
+ tNk7iNtKqHK5f9WGfIAkt9A0sksXPLCWkCQkPyujacOvUjCDiwzV9ugDw5Hm8KXs
8
+ iUGjeTNXCdh6M8WLO0fckz2CJAKSqTm00ukkT/RTflbV5BFsqDnL532/VG3IThLr
9
+ GabONXdMT54weXsOqd98SGTbYWn7LkEuDdMTMg8aE0iJc4RPkhEfb1RYwqGHgNk=
10
+ =5YNx
11
+ -----END PGP SIGNATURE-----
@@ -0,0 +1,11 @@
1
+ -----BEGIN PGP SIGNATURE-----
2
+ Version: BCPG v1.68
3
+
4
+ iQEcBAABCgAGBQJko7NPAAoJEJxRmnfYMAu7xo4H/1TQAErrnfUB7lzIoAAoTzNf
5
+ fZLQdZiiS783n6Qj3Psq78FC1CGmmjC1FPA0QVFQmcISRHBPQ2PRn1kuvax8+slr
6
+ LNFsPFbJ5FLWITjfo3N/hISyo1dumAJ4NxWaB6okQJn2lH9MZmXgB8dunIiDDKRI
7
+ rvttpT8owOF+AQq/WUwPvzMD3WWfWNqXpWIgPhDi4sagW0O3jyVR1psxTtiHxKJA
8
+ WTqp0S9tFSATdRt8OKyimAs/xQinyKVY1gDpgJ3mU4UBbnqoexVcoP9kbt8nhnem
9
+ B7v6KQuTVjXX6zslIrSjH2rEDOiRtVtLbV1AVdM/Lw1ojBgcZoBy+DDbTlVsws0=
10
+ =KwfM
11
+ -----END PGP SIGNATURE-----
@@ -0,0 +1,11 @@
1
+ -----BEGIN PGP SIGNATURE-----
2
+ Version: BCPG v1.68
3
+
4
+ iQEcBAABCgAGBQJko7NPAAoJEJxRmnfYMAu7WGoH/3Z2PuzWX0HTjUYg2RTJdtZy
5
+ rqTKcy0lyeCWVgRGwW7qegV+a9esCr0OyQnF5IDkUV9394orcUg3mROlWflusw3c
6
+ GSgCF1QAbSbv9xwtijMO9VTUQQRTEMw36i7oc+1m7JBZ5g1Nfh2smutfq2X2qqE3
7
+ Hp3kizBXtveGCebs3AiiXBZxmuqLuoTpCK4iBxF3vs8uJSthgJXuar4yLfnNRzrF
8
+ Fprm75p25CVW6m0p4RNpt7rnvrzGbC67JXrMANBuc3fZtvtUHCxAn6P/tm9SqUZl
9
+ AfBpS9E8t4/m24CU7zkszF8pY11BQIJB0BJhrE4pk7TOjqCfIPoD2SXkra+LPKg=
10
+ =kp/Y
11
+ -----END PGP SIGNATURE-----
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.102.0",
2
+ "version": "1.103.2",
3
3
  "name": "git-changelog-command-line",
4
4
  "homepage": "https://github.com/tomasbjerre/git-changelog-command-line",
5
5
  "repository": "https://github.com/tomasbjerre/git-changelog-command-line",
@@ -1,11 +0,0 @@
1
- -----BEGIN PGP SIGNATURE-----
2
- Version: BCPG v1.68
3
-
4
- iQEcBAABCgAGBQJkQ8mTAAoJEJxRmnfYMAu7wwsIAIIo4iLOMe+bX1gUF47aIfyB
5
- t7gHO526qfpY2Qu5Y5YFRK9Vi3G+w6ak11PCGnt7PCFMblCQsMK7y9AjywAwhyQI
6
- Q2KoQs4cxBsiV/RXZ1ULCOCYhfGaKH1yrhQtzZGIPxR7pRSpDlxOO93PVY1E9WS+
7
- kcafD/aBWdfL85iz7Qfvo/e0UGaRTcNDY/F8TS0SvlBeM+Ah95wEB9plry5WeFy6
8
- ozlKzY/v79i1uDtANml73nWzK6zXieNvtHYQj65kHaVpVsUgtmgiO9ujpyjH5snG
9
- 50LCHtT9HXkG2NWYpWQNsPkbuBUMPiOZUEl6cWzTTUElCUhIKw0tDIMOlLuH+T4=
10
- =QhbP
11
- -----END PGP SIGNATURE-----
@@ -1,11 +0,0 @@
1
- -----BEGIN PGP SIGNATURE-----
2
- Version: BCPG v1.68
3
-
4
- iQEcBAABCgAGBQJkQ8mTAAoJEJxRmnfYMAu7gm0H/Ak+lZmoAi3T4mzZxK3e1i61
5
- q2nX0lXdChn2XRDJJwpoO2dz4elPCMdmY3fQJXVdKybP+S/9cLmrxXlYOwtiZtMK
6
- FJTZd/oniwKK28UCul9k475KC78041JdZyEeBy7IiJkwxgGQl0lNNyusqP7dQ/pd
7
- +8Og8T2q7G5GFr3SVc9hasaMFcBRJg3u1NM+p9y4RhSbWnQWra9G+QfmivIm8BWU
8
- Q2uvRGQNS89Z8TTXmpDSGnDjbJ9csnNfe9eXX6ogOyRvOQ7ResYWcZp5DoZYhEGT
9
- ivETKfXFxQQD7qEog9bEss+VLFIHTzegZgQuU4Mfn8jRzpZPlR5YfWdc1OH6H4o=
10
- =fNpA
11
- -----END PGP SIGNATURE-----
@@ -1,11 +0,0 @@
1
- -----BEGIN PGP SIGNATURE-----
2
- Version: BCPG v1.68
3
-
4
- iQEcBAABCgAGBQJkQ8mTAAoJEJxRmnfYMAu7ujUH/3DBEtmn0t72u6taI54eNAL0
5
- myBG4lhK+XHKZ5zf/ZB77Q/XlzlhOtUz3+0jz9JF1YMJaR0QmiPT5yK4hEBRIPSq
6
- PPUxeDXx1HKeW2DfVnlzMuBKDDNZRjBQ2cIIKCnE3lYQb2+4VS5xGuAJ77eu/c3Z
7
- RwftvBUTwcdR6Pib9INU9st6Z6mW1hPUsUBad6+/Lbxi4apn9KFmuAhhNmvFIiUC
8
- V/NTWHOG6ij0+r24v1HyVQmvt6ycGsY985URwb1ufWVMN4gdGQn+gV9B6UyfeYh6
9
- sc/6AYtG/uALF1Un815fy4NVoGYAyv7LZ3nIZnflwsSSnQY71+a2AY41rQFcahU=
10
- =pQCD
11
- -----END PGP SIGNATURE-----
@@ -1,11 +0,0 @@
1
- -----BEGIN PGP SIGNATURE-----
2
- Version: BCPG v1.68
3
-
4
- iQEcBAABCgAGBQJkQ8mTAAoJEJxRmnfYMAu7tRsH/ig+DNvxuf54qC5sHCRQX8fc
5
- g3ZzDscBRfHhqGXQoeETBU+zIVcX00WxjOcimcPKkx8mSCzFlrfWpQDGkvb50h1w
6
- dm55WgdlSzIPvmp0vCK1z7834E4N32Z5etfhoGSeoQheUorcoj93j1c8MQjnoVQy
7
- XMWa/kUDK7EwCZGOCJ5GHDQP2FeQc4M04nAb+HEyaz64ESD6xxM/F9I7n3pfHiaG
8
- b6vkqKqtLXywH5vAhg+SeEUU2ao94fFjPL5W1TWjXsssW17PodEkTRySvYzlS9Ic
9
- Is/0kS1dKVdLEyr6OtSKqS/5aHxDoqdZLmE27QmQO1gW0hYoWIuqb3MOoyFcyWk=
10
- =lC4u
11
- -----END PGP SIGNATURE-----