@semantic-release/github 7.2.0 → 7.2.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/README.md CHANGED
@@ -74,7 +74,7 @@ If you have actions that trigger on newly created releases, please use a generat
74
74
  |-----------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------|
75
75
  | `githubUrl` | The GitHub Enterprise endpoint. | `GH_URL` or `GITHUB_URL` environment variable. |
76
76
  | `githubApiPathPrefix` | The GitHub Enterprise API prefix. | `GH_PREFIX` or `GITHUB_PREFIX` environment variable. |
77
- | `proxy` | The proxy to use to access the GitHub API. See [proxy](#proxy). | `HTTP_PROXY` environment variable. |
77
+ | `proxy` | The proxy to use to access the GitHub API. Set to `false` to disable usage of proxy. See [proxy](#proxy). | `HTTP_PROXY` environment variable. |
78
78
  | `assets` | An array of files to upload to the release. See [assets](#assets). | - |
79
79
  | `successComment` | The comment to add to each issue and pull request resolved by the release. Set to `false` to disable commenting on issues and pull requests. See [successComment](#successcomment). | `:tada: This issue has been resolved in version ${nextRelease.version} :tada:\n\nThe release is available on [GitHub release](<github_release_url>)` |
80
80
  | `failComment` | The content of the issue created when a release fails. Set to `false` to disable opening an issue when a release fails. See [failComment](#failcomment). | Friendly message with links to **semantic-release** documentation and support, with the list of errors that caused the release to fail. |
@@ -86,7 +86,7 @@ If you have actions that trigger on newly created releases, please use a generat
86
86
 
87
87
  #### proxy
88
88
 
89
- Can be a the proxy URL or and `Object` with the following properties:
89
+ Can be `false`, a proxy URL or an `Object` with the following properties:
90
90
 
91
91
  | Property | Description | Default |
92
92
  |---------------|----------------------------------------------------------------|--------------------------------------|
@@ -19,7 +19,7 @@ module.exports = (
19
19
  githubToken: env.GH_TOKEN || env.GITHUB_TOKEN,
20
20
  githubUrl: githubUrl || env.GITHUB_API_URL || env.GH_URL || env.GITHUB_URL,
21
21
  githubApiPathPrefix: githubApiPathPrefix || env.GH_PREFIX || env.GITHUB_PREFIX || '',
22
- proxy: proxy || env.HTTP_PROXY,
22
+ proxy: isNil(proxy) ? env.http_proxy || env.HTTP_PROXY || false : proxy,
23
23
  assets: assets ? castArray(assets) : assets,
24
24
  successComment,
25
25
  failTitle: isNil(failTitle) ? 'The automated release is failing 🚨' : failTitle,
package/lib/verify.js CHANGED
@@ -14,8 +14,9 @@ const isArrayOf = (validator) => (array) => isArray(array) && array.every((value
14
14
  const canBeDisabled = (validator) => (value) => value === false || validator(value);
15
15
 
16
16
  const VALIDATORS = {
17
- proxy: (proxy) =>
18
- isNonEmptyString(proxy) || (isPlainObject(proxy) && isNonEmptyString(proxy.host) && isNumber(proxy.port)),
17
+ proxy: canBeDisabled(
18
+ (proxy) => isNonEmptyString(proxy) || (isPlainObject(proxy) && isNonEmptyString(proxy.host) && isNumber(proxy.port))
19
+ ),
19
20
  assets: isArrayOf(
20
21
  (asset) => isStringOrStringArray(asset) || (isPlainObject(asset) && isStringOrStringArray(asset.path))
21
22
  ),
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.2.0",
4
+ "version": "7.2.1",
5
5
  "author": "Pierre Vanduynslager (https://twitter.com/@pvdlg_)",
6
6
  "ava": {
7
7
  "files": [
@@ -34,18 +34,18 @@
34
34
  "url-join": "^4.0.0"
35
35
  },
36
36
  "devDependencies": {
37
- "ava": "3.13.0",
37
+ "ava": "3.15.0",
38
38
  "clear-module": "4.1.1",
39
39
  "codecov": "3.8.1",
40
- "nock": "13.0.5",
40
+ "nock": "13.0.9",
41
41
  "nyc": "15.1.0",
42
42
  "proxy": "1.0.2",
43
43
  "proxyquire": "2.1.3",
44
- "semantic-release": "17.2.3",
44
+ "semantic-release": "17.3.9",
45
45
  "server-destroy": "1.0.1",
46
- "sinon": "9.2.1",
46
+ "sinon": "9.2.4",
47
47
  "tempy": "1.0.0",
48
- "xo": "0.34.2"
48
+ "xo": "0.36.1"
49
49
  },
50
50
  "engines": {
51
51
  "node": ">=10.18"