git-changelog-command-line 1.93.0 → 1.96.5

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
@@ -299,6 +299,27 @@ Or from command line:
299
299
  -ri, --remove-issue-from-message Dont print any issues in the
300
300
  messages of commits.
301
301
  Default: disabled
302
+ -rmp, --redmine-pattern <string> Redmine issue pattern.
303
+ <string>: any string
304
+ Default: #([0-9]+)
305
+ -rmpw, --redmine-password <string> Optional password to
306
+ authenticate with Redmine.
307
+ <string>: any string
308
+ Default:
309
+ -rms, --redmine-server <string> Redmine server. When a Redmine
310
+ server is given, the title of the
311
+ Redmine issues can be used in the
312
+ changelog.
313
+ <string>: any string
314
+ Default: null
315
+ -rmt, --redmine-token <string> Optional token/api-key to
316
+ authenticate with Redmine.
317
+ <string>: any string
318
+ Default:
319
+ -rmu, --redmine-username <string> Optional username to
320
+ authenticate with Redmine.
321
+ <string>: any string
322
+ Default:
302
323
  -rt, --readable-tag-name <string> Pattern to extract readable
303
324
  part of tag.
304
325
  <string>: any string
@@ -0,0 +1,11 @@
1
+ -----BEGIN PGP SIGNATURE-----
2
+ Version: BCPG v1.64
3
+
4
+ iQEcBAABCgAGBQJhmTWQAAoJEJxRmnfYMAu7GeIH/046rS/FJ+iluJPMs5RQSa2Z
5
+ dXJ9VSVM4uwt1SfFS83Ksmf4viumLLxCBtwFI1YUdkftGAZQTrO1b+/X8F4M1UTs
6
+ 1HozrVEuvGTodjYFfjV4bjD9WaNJYMgwYR8EupwUEt9noVH9cYETEeKoDpk6gNQJ
7
+ ldKJ5aFS8YI3gAxZfObQyjdD4vptBlrOfm4eNw/v9JGuEMdUr1tWsHUtMz42maok
8
+ hNQOjLBRfQzXQJGM1rJfp+ZiKb1O7ejK3zbYgXVK5E9lYHiZRi5z9Dj0mOk6bOkM
9
+ X9ddaf7jKW8sf4wkh7w1TBozmbtGg4LgDn6ki4R8TUHSrznaSbldpujHsoOKVVg=
10
+ =8w9u
11
+ -----END PGP SIGNATURE-----
@@ -0,0 +1,11 @@
1
+ -----BEGIN PGP SIGNATURE-----
2
+ Version: BCPG v1.64
3
+
4
+ iQEcBAABCgAGBQJhmTWPAAoJEJxRmnfYMAu7M1AH/3Q3+5XQayn7ZGtqT5N65JSr
5
+ qFPkMK0P5ZSEwJ3Nq6BgmNSKp9UcqXzNihsP5VgDV6ESPNz4ujFZWnoCFUn+nbJj
6
+ vGAU82UbR6QYiAmvNLUCFwMYd+ysBjusCIOxLTVuzokQOMJcsDNzduI5Z2mZed0k
7
+ jVIt+74ZmR1ttMCurB8BoMXiOQ3/uVp+fck8PpHUxEaEU7poSEufo4WCAG+GPOUb
8
+ CsuluTCNIXHkFEJLySNyGhPZYkCj4XCT0Y0BJGE20RaskxVtF6xdR77sboqAiWEh
9
+ +dwNT+OY8LFe2JQ8z4AabM3HVuZR2mXauOPWKDeCXqx2+rAePXYSKkbzDbpoPJk=
10
+ =PWyY
11
+ -----END PGP SIGNATURE-----
@@ -0,0 +1,11 @@
1
+ -----BEGIN PGP SIGNATURE-----
2
+ Version: BCPG v1.64
3
+
4
+ iQEcBAABCgAGBQJhmTWQAAoJEJxRmnfYMAu7S3UH/jJTZq5GReKQBvZ3lsZC/s81
5
+ /VX65AjPQKgcI/ewWAGFhcDVpGbZB4i2cmdW1IZ1SfrRUNAqHJLHRduaV1c8kLgn
6
+ wV6flPdBQG7FZsKkfQvfFyi0xKBud6Im+gfWUFOsJxQ/t/RMAu0q293DDcVqt+jo
7
+ KctIe8jqUW93OUuXNslihjD6/AXZH1VQNHlcnlzcLEFq5hxFi629cmqZQXEaAI2d
8
+ i6MWGIfTvP32bgduP1gLUStTJYbGyuZDhST+9715B3HDhSsYlWoDKLne7jidPNGP
9
+ pVA0P7Tf2SPEjnZffx9BypngoYonEBvvWr285BuUwAZzHugnj/ABt/+DcBLiBls=
10
+ =pRmM
11
+ -----END PGP SIGNATURE-----
@@ -0,0 +1,11 @@
1
+ -----BEGIN PGP SIGNATURE-----
2
+ Version: BCPG v1.64
3
+
4
+ iQEcBAABCgAGBQJhmTWQAAoJEJxRmnfYMAu7+LoH/3JPpVM0gw+FPHzeBnKURY6B
5
+ +CFvnE/Xy03Gxl/iOwhhKv5lG3D5+g2PZ8qQpr5zvsg/HpX2wX2bgDPxj779JbuJ
6
+ K6yrc4TUC7/vyf9EtZ8R8dUl5c2wHVvbKzYzbhVO4I1U15dqPZCENiPqnCZrMarn
7
+ opqlPe0cVprK2B1OB/VOVYdzg81N8KvQ6/MmmhMEhlW06WmW6hePIc0VZo1VF6dP
8
+ zIsp6P+n/p5/JwhRczLJ9j6M7MOEq2QbVh+1owUYWsTX0q9hAaw/TQgabd1i0IIM
9
+ nHm/z+FjrRl4Dudk+JY6odiIPTashn+bik535192ycY8TymeEUIS166w/i0DYtk=
10
+ =eFIE
11
+ -----END PGP SIGNATURE-----
package/index.js ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ require('npm-java-runner/lib/index').run(__dirname);
package/package.json CHANGED
@@ -1,30 +1,17 @@
1
1
  {
2
- "bin": {
3
- "git-changelog-command-line": "jdeploy-bundle/jdeploy.js"
4
- },
5
- "author": "Tomas Bjerre",
6
- "description": "Command line tool for generating a changelog, or releasenotes, from a GIT repository.",
7
- "keywords": [
8
- "changelog",
9
- "releasenotes"
10
- ],
11
- "homepage": "https://github.com/tomasbjerre/git-changelog-command-line",
12
- "repository": "git@github.com:tomasbjerre/git-changelog-command-line.git",
13
- "main": "index.js",
14
- "preferGlobal": true,
15
- "version": "1.93.0",
16
- "jdeploy": {
17
- "jar": "build/libs/git-changelog-command-line-1.93.0.jar"
18
- },
19
- "dependencies": {
20
- "shelljs": "^0.7.5"
21
- },
22
- "license": "Apache 2",
23
- "name": "git-changelog-command-line",
24
- "files": [
25
- "jdeploy-bundle"
26
- ],
27
- "scripts": {
28
- "test": "echo \"Error: no test specified\" && exit 1"
29
- }
30
- }
2
+ "version": "1.96.5",
3
+ "name": "git-changelog-command-line",
4
+ "homepage": "https://github.com/tomasbjerre/git-changelog-command-line",
5
+ "repository": "https://github.com/tomasbjerre/git-changelog-command-line",
6
+ "author": "Tomas Bjerre",
7
+ "description": "Command line tool that generates changelog from a GIT repository.",
8
+ "runnable-jar-regexp": ".*build/libs/.*\\d+\\.\\d+\\.\\d+\\.jar$",
9
+ "files": [
10
+ "build/libs"
11
+ ],
12
+ "bin": "./index.js",
13
+ "license": "Apache 2",
14
+ "dependencies": {
15
+ "npm-java-runner": "0.0.14"
16
+ }
17
+ }
@@ -1,165 +0,0 @@
1
- #! /usr/bin/env node
2
- var fail = reason => {
3
- console.error(reason);
4
- process.exit(1);
5
- };
6
- function getJavaVersion() {
7
- try {
8
- var javaVersionProc = exec('java -version', {silent:true});
9
- if (javaVersionProc.code !== 0) {
10
- return false;
11
- }
12
- var stdout = javaVersionProc.stderr;
13
- //console.log(javaVersionProc);
14
- //console.log("stdout is "+stdout);
15
- var regexp = /version "(.*?)"/;
16
- var match = regexp.exec(stdout);
17
- var parts = match[1].split('.');
18
- var join = '.';
19
- var versionStr = '';
20
- parts.forEach(function(v) {
21
- versionStr += v;
22
- if (join !== null) {
23
- versionStr += join;
24
- join = null;
25
- }
26
- });
27
- versionStr = versionStr.replace('_', '');
28
- //console.log("Java version string "+versionStr)
29
- return parseFloat(versionStr);
30
- } catch (e) {
31
- return false;
32
- }
33
- }
34
-
35
- var getDirectories = dirPath => fs.readdirSync(dirPath).filter(
36
- file => fs.statSync(path.join(dirPath, file)).isDirectory()
37
- );
38
-
39
- function getEmbeddedJavaDir() {
40
- var _platform = os.platform();
41
- var _driver;
42
- switch (_platform) {
43
- case 'darwin': _platform = 'macosx'; _driver = 'Contents' + path.sep + 'Home' + path.sep + 'bin'; break;
44
- case 'win32': _platform = 'windows'; _driver = 'bin'; break;
45
- case 'linux': _driver = 'bin'; break;
46
- default:
47
- fail('unsupported platform: ' + _platform);
48
- }
49
-
50
- var jreDir = getJdeploySupportDir() + path.sep + 'node_modules' + path.sep + 'node-jre' + path.sep + 'jre';
51
-
52
- try {
53
- return jreDir + path.sep + getDirectories(jreDir)[0] + path.sep + _driver;
54
- } catch (e) {
55
- //console.log(e);
56
- return jreDir;
57
- }
58
- }
59
-
60
-
61
-
62
- function getJdeploySupportDir() {
63
- return os.homedir() + path.sep + ".jdeploy";
64
- }
65
- var fs = require('fs');
66
- var os = require('os');
67
- var path = require('path');
68
- var jarName = "git-changelog-command-line-1.93.0.jar";
69
- var mainClass = "{{MAIN_CLASS}}";
70
- var classPath = "{{CLASSPATH}}";
71
- var port = "0";
72
- var warPath = "";
73
- classPath = classPath.split(':');
74
- var classPathStr = '';
75
- var first = true;
76
- classPath.forEach(function(part) {
77
- if (!first) classPathStr += path.delimiter;
78
- first = false;
79
- classPathStr += __dirname + '/' + part;
80
- });
81
- classPath = classPathStr;
82
- var shell = require("shelljs/global");
83
- var userArgs = process.argv.slice(2);
84
- var javaArgs = [];
85
- javaArgs.push('-Djdeploy.base='+__dirname);
86
- javaArgs.push('-Djdeploy.port='+port);
87
- javaArgs.push('-Djdeploy.war.path='+warPath);
88
- var programArgs = [];
89
- userArgs.forEach(function(arg) {
90
- if (arg.startsWith('-D') || arg.startsWith('-X')) {
91
- javaArgs.push(arg);
92
- } else {
93
- programArgs.push(arg);
94
- }
95
- });
96
- var cmd = 'java';
97
-
98
- env['PATH'] = getEmbeddedJavaDir() + path.delimiter + env['PATH'];
99
- if (env['JAVA_HOME']) {
100
- env['PATH'] = env['JAVA_HOME'] + path.sep + 'bin' + path.delimiter + env['PATH'];
101
- }
102
-
103
- var javaVersion = getJavaVersion();
104
- if (javaVersion === false || javaVersion < 1.8 || env['JDEPLOY_USE_NODE_JRE']) {
105
- if (!test('-e', getJdeploySupportDir())) {
106
- mkdir(getJdeploySupportDir());
107
- }
108
- var packageJson = getJdeploySupportDir() + path.sep + 'package.json';
109
- if (!test('-e', packageJson)) {
110
- fs.writeFileSync(packageJson, JSON.stringify({'name' : 'jdeploy-support', 'version': '1.0.0'}), 'utf8');
111
- }
112
- if (!test('-e', getEmbeddedJavaDir())) {
113
- var currDir = pwd();
114
- cd(getJdeploySupportDir());
115
- console.log("Installing/Updating JRE in "+getJdeploySupportDir()+"...");
116
- exec('npm install node-jre --save');
117
- cd(currDir);
118
- }
119
- env['PATH'] = getEmbeddedJavaDir() + path.delimiter + env['PATH'];
120
- /*
121
- // System java either not on path or too old
122
- if (!test('-e', getEmbeddedJavaDir())) {
123
- // Could not find embedded java dir
124
- // We need to install it.
125
- fail("Could not find embedded java at "+getEmbeddedJavaDir());
126
-
127
- } else {
128
- // Found the embedded version. Add it to the PATH
129
- env['PATH'] = getEmbeddedJavaDir() + path.delimiter + env['PATH']
130
- console.log("Now java version is "+getJavaVersion());
131
- fail("Path is now "+env['PATH']);
132
- }
133
- */
134
-
135
- }
136
- //console.log("Java version is "+getJavaVersion());
137
-
138
- javaArgs.forEach(function(arg) {
139
- cmd += ' "'+arg+'"';
140
- });
141
- if (jarName !== '{'+'{JAR_NAME}}') {
142
- cmd += ' -jar "'+__dirname+'/'+jarName+'" ';
143
- } else {
144
- cmd += ' -cp "'+classPath+'" '+mainClass+' ';
145
- }
146
-
147
- programArgs.forEach(function(arg) {
148
- cmd += ' "'+arg+'"';
149
- });
150
- var child = exec(cmd, {async: true});
151
- process.stdin.setEncoding('utf8');
152
-
153
- process.stdin.on('readable', () => {
154
- var chunk = process.stdin.read();
155
- if (chunk === null) {
156
-
157
- return;
158
- }
159
- try {
160
- child.stdin.write(chunk);
161
- } catch(e){}
162
- });
163
- child.on('close', function(code) {
164
- process.exit(code);
165
- });