Skip to content

Commit

Permalink
fix: remove the github plugin from default success and fail hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdlg committed Feb 13, 2018
1 parent 1b3c51d commit 04f3061
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/definitions/plugins.js
Expand Up @@ -47,13 +47,13 @@ module.exports = {
},
},
success: {
default: ['@semantic-release/github'],
default: false,
config: {
validator: conf => !conf || (isArray(conf) ? conf : [conf]).every(conf => validatePluginConfig(conf)),
},
},
fail: {
default: ['@semantic-release/github'],
default: false,
config: {
validator: conf => !conf || (isArray(conf) ? conf : [conf]).every(conf => validatePluginConfig(conf)),
},
Expand Down
6 changes: 3 additions & 3 deletions test/index.test.js
Expand Up @@ -596,7 +596,7 @@ test.serial('Returns falsy value if triggered by a PR', async t => {

t.falsy(await semanticRelease({repositoryUrl}));
t.is(
t.context.log.args[9][0],
t.context.log.args[t.context.log.args.length - 1][0],
"This run was triggered by a pull request and therefore a new version won't be published."
);
});
Expand Down Expand Up @@ -723,8 +723,8 @@ test.serial('Hide sensitive environment variable values from the logs', async t

await t.throws(semanticRelease(options));

t.regex(t.context.stdout.args[9][0], /Console: The token \[secure\] is invalid/);
t.regex(t.context.stdout.args[10][0], /Log: The token \[secure\] is invalid/);
t.regex(t.context.stdout.args[t.context.stdout.args.length - 2][0], /Console: The token \[secure\] is invalid/);
t.regex(t.context.stdout.args[t.context.stdout.args.length - 1][0], /Log: The token \[secure\] is invalid/);
t.regex(t.context.stderr.args[0][0], /Error: The token \[secure\] is invalid/);
t.regex(t.context.stderr.args[1][0], /Invalid token \[secure\]/);
});
Expand Down

0 comments on commit 04f3061

Please sign in to comment.