release-it 17.8.0 → 17.8.1
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/lib/plugin/github/GitHub.js +1 -1
- package/package.json +1 -1
- package/schema/github.json +1 -1
- package/test/stub/github.js +2 -2
- package/test/tasks.js +3 -3
|
@@ -236,7 +236,7 @@ class GitHub extends Release {
|
|
|
236
236
|
draft,
|
|
237
237
|
prerelease: isPreRelease || preRelease,
|
|
238
238
|
generate_release_notes: autoGenerate,
|
|
239
|
-
discussion_category_name: discussionCategoryName
|
|
239
|
+
discussion_category_name: discussionCategoryName.toString()
|
|
240
240
|
};
|
|
241
241
|
return Object.assign(options, contextOptions);
|
|
242
242
|
}
|
package/package.json
CHANGED
package/schema/github.json
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"default": false
|
|
34
34
|
},
|
|
35
35
|
"discussionCategoryName": {
|
|
36
|
-
"$comment": "
|
|
36
|
+
"$comment": "Create discussion of the specified category and link to the GitHub Release",
|
|
37
37
|
"type": "string"
|
|
38
38
|
},
|
|
39
39
|
"tokenRef": {
|
package/test/stub/github.js
CHANGED
|
@@ -52,7 +52,7 @@ const interceptCreate = ({
|
|
|
52
52
|
draft = false,
|
|
53
53
|
generate_release_notes = false,
|
|
54
54
|
make_latest = 'true',
|
|
55
|
-
discussion_category_name = false
|
|
55
|
+
discussion_category_name = 'false'
|
|
56
56
|
}
|
|
57
57
|
} = {}) => {
|
|
58
58
|
nock(api)
|
|
@@ -97,7 +97,7 @@ const interceptUpdate = ({
|
|
|
97
97
|
draft = false,
|
|
98
98
|
generate_release_notes = false,
|
|
99
99
|
make_latest = 'true',
|
|
100
|
-
discussion_category_name = false
|
|
100
|
+
discussion_category_name = 'false'
|
|
101
101
|
}
|
|
102
102
|
} = {}) => {
|
|
103
103
|
nock(api)
|
package/test/tasks.js
CHANGED
|
@@ -333,7 +333,7 @@ test.serial('should release all the things (pre-release, github, gitlab)', async
|
|
|
333
333
|
t.true(log.obtrusive.firstCall.args[0].endsWith(`release ${pkgName} (1.0.0...1.1.0-alpha.0)`));
|
|
334
334
|
t.true(log.log.firstCall.args[0].endsWith(`https://www.npmjs.com/package/${pkgName}`));
|
|
335
335
|
t.true(log.log.secondCall.args[0].endsWith(`https://github.com/${owner}/${project}/releases/tag/v1.1.0-alpha.0`));
|
|
336
|
-
t.true(log.log.
|
|
336
|
+
t.true(log.log.args[3][0].endsWith(`${project}/-/releases`));
|
|
337
337
|
t.regex(log.log.lastCall.args[0], /Done \(in [0-9]+s\.\)/);
|
|
338
338
|
|
|
339
339
|
exec.restore();
|
|
@@ -365,7 +365,7 @@ test.serial('should publish pre-release without pre-id with different npm.tag',
|
|
|
365
365
|
t.is(stdout.trim(), 'v2.0.0-0');
|
|
366
366
|
t.true(log.obtrusive.firstCall.args[0].endsWith(`release ${pkgName} (1.0.0...2.0.0-0)`));
|
|
367
367
|
t.true(log.log.firstCall.args[0].endsWith(`https://www.npmjs.com/package/${pkgName}`));
|
|
368
|
-
t.regex(log.log.
|
|
368
|
+
t.regex(log.log.args[1][0], /Done \(in [0-9]+s\.\)/);
|
|
369
369
|
|
|
370
370
|
exec.restore();
|
|
371
371
|
});
|
|
@@ -385,7 +385,7 @@ test.serial('should handle private package correctly, bump lockfile', async t =>
|
|
|
385
385
|
t.deepEqual(npmArgs, ['npm version 1.0.1 --no-git-tag-version']);
|
|
386
386
|
t.true(log.obtrusive.firstCall.args[0].endsWith(`release ${pkgName} (1.0.0...1.0.1)`));
|
|
387
387
|
t.is(log.warn.length, 0);
|
|
388
|
-
t.regex(log.log.
|
|
388
|
+
t.regex(log.log.args[0][0], /Done \(in [0-9]+s\.\)/);
|
|
389
389
|
|
|
390
390
|
exec.restore();
|
|
391
391
|
});
|