@semantic-release/github 10.0.7 → 10.1.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.
@@ -1,3 +1,11 @@
1
- export default function isPrerelease({ type, main }) {
2
- return type === "prerelease" || (type === "release" && !main);
1
+ export default function isPrerelease({ type, main, prerelease }) {
2
+ if (prerelease === false) {
3
+ return false;
4
+ }
5
+ return (
6
+ type === "prerelease" ||
7
+ (type === "release" && !main) ||
8
+ typeof prerelease == "string" ||
9
+ prerelease === true
10
+ );
3
11
  }
package/lib/success.js CHANGED
@@ -54,7 +54,10 @@ export default async function success(pluginConfig, context, { Octokit }) {
54
54
 
55
55
  const errors = [];
56
56
 
57
- if (successComment === false) {
57
+ if (successComment === false || isEmpty(commits)) {
58
+ if (isEmpty(commits)) {
59
+ logger.log("No commits found in release");
60
+ }
58
61
  logger.log("Skip commenting on issues and pull requests.");
59
62
  } else {
60
63
  const parser = issueParser(
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semantic-release/github",
3
3
  "description": "semantic-release plugin to publish a GitHub release and comment on released Pull Requests/Issues",
4
- "version": "10.0.7",
4
+ "version": "10.1.1",
5
5
  "type": "module",
6
6
  "author": "Pierre Vanduynslager (https://twitter.com/@pvdlg_)",
7
7
  "ava": {
@@ -47,9 +47,9 @@
47
47
  "fetch-mock": "npm:@gr2m/fetch-mock@9.11.0-pull-request-644.1",
48
48
  "lockfile-lint": "4.14.0",
49
49
  "ls-engines": "0.9.2",
50
- "npm-run-all2": "6.2.0",
51
- "prettier": "3.3.2",
52
- "publint": "0.2.8",
50
+ "npm-run-all2": "6.2.2",
51
+ "prettier": "3.3.3",
52
+ "publint": "0.2.9",
53
53
  "semantic-release": "24.0.0",
54
54
  "sinon": "18.0.0",
55
55
  "tempy": "3.1.0"
@@ -127,5 +127,5 @@
127
127
  "github>semantic-release/.github:renovate-config"
128
128
  ]
129
129
  },
130
- "packageManager": "npm@10.8.1"
130
+ "packageManager": "npm@10.8.2"
131
131
  }