release-it 17.0.1 → 17.0.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/lib/plugin/github/GitHub.js +7 -2
- package/package.json +13 -13
|
@@ -371,12 +371,12 @@ class GitHub extends Release {
|
|
|
371
371
|
async commentOnResolvedItems() {
|
|
372
372
|
const { isDryRun } = this.config;
|
|
373
373
|
const { owner, project: repo } = this.getContext('repo');
|
|
374
|
-
const
|
|
374
|
+
const changelog = await this.getChangelog();
|
|
375
375
|
const { comments } = this.options;
|
|
376
376
|
const { submit, issue, pr } = comments;
|
|
377
377
|
const context = this.getContext();
|
|
378
378
|
|
|
379
|
-
if (!submit || !changelog
|
|
379
|
+
if (!submit || !changelog) return;
|
|
380
380
|
|
|
381
381
|
const shas = getCommitsFromChangelog(changelog);
|
|
382
382
|
const searchResults = await Promise.all(searchQueries(this.client, owner, repo, shas));
|
|
@@ -390,6 +390,11 @@ class GitHub extends Release {
|
|
|
390
390
|
const comment = format(format(type === 'pr' ? pr : issue, context), context);
|
|
391
391
|
const url = `${host}/${owner}/${repo}/${type === 'pr' ? 'pull' : 'issues'}/${number}`;
|
|
392
392
|
|
|
393
|
+
if (isDryRun) {
|
|
394
|
+
this.log.exec(`octokit issues.createComment (${url})`, { isDryRun });
|
|
395
|
+
return;
|
|
396
|
+
}
|
|
397
|
+
|
|
393
398
|
try {
|
|
394
399
|
await this.client.issues.createComment({ owner, repo, issue_number: number, body: comment });
|
|
395
400
|
this.log.log(`● Commented on ${url}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "release-it",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.2",
|
|
4
4
|
"description": "Generic CLI tool to automate versioning and package publishing-related tasks.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"build",
|
|
@@ -75,9 +75,9 @@
|
|
|
75
75
|
"@octokit/rest": "20.0.2",
|
|
76
76
|
"async-retry": "1.3.3",
|
|
77
77
|
"chalk": "5.3.0",
|
|
78
|
-
"cosmiconfig": "
|
|
78
|
+
"cosmiconfig": "9.0.0",
|
|
79
79
|
"execa": "8.0.1",
|
|
80
|
-
"git-url-parse": "
|
|
80
|
+
"git-url-parse": "14.0.0",
|
|
81
81
|
"globby": "14.0.0",
|
|
82
82
|
"got": "13.0.0",
|
|
83
83
|
"inquirer": "9.2.12",
|
|
@@ -87,9 +87,9 @@
|
|
|
87
87
|
"mime-types": "2.1.35",
|
|
88
88
|
"new-github-release-url": "2.0.0",
|
|
89
89
|
"node-fetch": "3.3.2",
|
|
90
|
-
"open": "
|
|
91
|
-
"ora": "
|
|
92
|
-
"os-name": "
|
|
90
|
+
"open": "10.0.3",
|
|
91
|
+
"ora": "8.0.1",
|
|
92
|
+
"os-name": "6.0.0",
|
|
93
93
|
"promise.allsettled": "1.0.7",
|
|
94
94
|
"proxy-agent": "6.3.1",
|
|
95
95
|
"semver": "7.5.4",
|
|
@@ -102,17 +102,17 @@
|
|
|
102
102
|
"devDependencies": {
|
|
103
103
|
"@octokit/request-error": "5.0.1",
|
|
104
104
|
"ava": "5.3.1",
|
|
105
|
-
"eslint": "8.
|
|
106
|
-
"eslint-config-prettier": "9.
|
|
105
|
+
"eslint": "8.56.0",
|
|
106
|
+
"eslint-config-prettier": "9.1.0",
|
|
107
107
|
"eslint-plugin-ava": "14.0.0",
|
|
108
|
-
"eslint-plugin-import": "2.29.
|
|
109
|
-
"eslint-plugin-prettier": "5.
|
|
108
|
+
"eslint-plugin-import": "2.29.1",
|
|
109
|
+
"eslint-plugin-prettier": "5.1.3",
|
|
110
110
|
"fs-monkey": "1.0.5",
|
|
111
|
-
"knip": "2.
|
|
111
|
+
"knip": "4.2.1",
|
|
112
112
|
"memfs": "4.6.0",
|
|
113
113
|
"mock-stdio": "1.0.3",
|
|
114
|
-
"nock": "13.
|
|
115
|
-
"prettier": "3.
|
|
114
|
+
"nock": "13.5.0",
|
|
115
|
+
"prettier": "3.2.4",
|
|
116
116
|
"remark-cli": "12.0.0",
|
|
117
117
|
"remark-preset-webpro": "1.0.0",
|
|
118
118
|
"sinon": "17.0.1",
|