@semantic-release/github 7.0.4 → 7.0.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/lib/definitions/errors.js +4 -3
- package/lib/get-fail-comment.js +1 -1
- package/lib/success.js +1 -1
- package/package.json +4 -4
|
@@ -3,7 +3,8 @@ const {isString} = require('lodash');
|
|
|
3
3
|
const pkg = require('../../package.json');
|
|
4
4
|
|
|
5
5
|
const [homepage] = pkg.homepage.split('#');
|
|
6
|
-
const stringify =
|
|
6
|
+
const stringify = object =>
|
|
7
|
+
isString(object) ? object : inspect(object, {breakLength: Infinity, depth: 2, maxArrayLength: 5});
|
|
7
8
|
const linkify = file => `${homepage}/blob/master/${file}`;
|
|
8
9
|
|
|
9
10
|
module.exports = {
|
|
@@ -72,7 +73,7 @@ By default the \`repositoryUrl\` option is retrieved from the \`repository\` pro
|
|
|
72
73
|
Your configuration for the \`proxy\` option is \`${stringify(proxy)}\`.`,
|
|
73
74
|
}),
|
|
74
75
|
EMISSINGREPO: ({owner, repo}) => ({
|
|
75
|
-
message: `The repository ${owner}/${repo} doesn
|
|
76
|
+
message: `The repository ${owner}/${repo} doesn’t exist.`,
|
|
76
77
|
details: `The **semantic-release** \`repositoryUrl\` option must refer to your GitHub repository. The repository must be accessible with the [GitHub API](https://developer.github.com/v3).
|
|
77
78
|
|
|
78
79
|
By default the \`repositoryUrl\` option is retrieved from the \`repository\` property of your \`package.json\` or the [git origin url](https://git-scm.com/book/en/v2/Git-Basics-Working-with-Remotes) of the repository cloned by your CI environment.
|
|
@@ -82,7 +83,7 @@ If you are using [GitHub Enterprise](https://enterprise.github.com) please make
|
|
|
82
83
|
)}).`,
|
|
83
84
|
}),
|
|
84
85
|
EGHNOPERMISSION: ({owner, repo}) => ({
|
|
85
|
-
message: `The GitHub token doesn
|
|
86
|
+
message: `The GitHub token doesn’t allow to push on the repository ${owner}/${repo}.`,
|
|
86
87
|
details: `The user associated with the [GitHub token](${linkify(
|
|
87
88
|
'README.md#github-authentication'
|
|
88
89
|
)}) configured in the \`GH_TOKEN\` or \`GITHUB_TOKEN\` environment variable must allows to push to the repository ${owner}/${repo}.
|
package/lib/get-fail-comment.js
CHANGED
|
@@ -7,7 +7,7 @@ const NEW_ISSUE_URL = `${HOME_URL}/issues/new`;
|
|
|
7
7
|
const formatError = error => `### ${error.message}
|
|
8
8
|
|
|
9
9
|
${error.details ||
|
|
10
|
-
`Unfortunately this error doesn
|
|
10
|
+
`Unfortunately this error doesn’t have any additional information.${
|
|
11
11
|
error.pluginName
|
|
12
12
|
? ` Feel free to kindly ask the author of the \`${error.pluginName}\` plugin to add more helpful information.`
|
|
13
13
|
: ''
|
package/lib/success.js
CHANGED
|
@@ -100,7 +100,7 @@ module.exports = async (pluginConfig, context) => {
|
|
|
100
100
|
if (error.status === 403) {
|
|
101
101
|
logger.error('Not allowed to add a comment to the issue #%d.', issue.number);
|
|
102
102
|
} else if (error.status === 404) {
|
|
103
|
-
logger.error(
|
|
103
|
+
logger.error('Failed to add a comment to the issue #%d as it doesn’t exist.', issue.number);
|
|
104
104
|
} else {
|
|
105
105
|
errors.push(error);
|
|
106
106
|
logger.error('Failed to add a comment to the issue #%d.', issue.number);
|
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": "7.0.
|
|
4
|
+
"version": "7.0.5",
|
|
5
5
|
"author": "Pierre Vanduynslager (https://twitter.com/@pvdlg_)",
|
|
6
6
|
"ava": {
|
|
7
7
|
"files": [
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"bottleneck": "^2.18.1",
|
|
23
23
|
"debug": "^4.0.0",
|
|
24
24
|
"dir-glob": "^3.0.0",
|
|
25
|
-
"fs-extra": "^
|
|
25
|
+
"fs-extra": "^9.0.0",
|
|
26
26
|
"globby": "^11.0.0",
|
|
27
27
|
"http-proxy-agent": "^4.0.0",
|
|
28
28
|
"https-proxy-agent": "^5.0.0",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"semantic-release": "^17.0.0",
|
|
45
45
|
"server-destroy": "^1.0.1",
|
|
46
46
|
"sinon": "^9.0.0",
|
|
47
|
-
"tempy": "^0.
|
|
48
|
-
"xo": "^0.
|
|
47
|
+
"tempy": "^0.5.0",
|
|
48
|
+
"xo": "^0.28.0"
|
|
49
49
|
},
|
|
50
50
|
"engines": {
|
|
51
51
|
"node": ">=10.18"
|