greenkeeper[bot]
20e5d83456
chore(package): update sinon to version 7.2.7
2019-03-04 13:21:34 -05:00
greenkeeper[bot]
3819ca56a9
chore(package): update ava to version 1.0.1
2018-12-27 14:43:11 -05:00
Pierre Vanduynslager
1243f79064
fix: correctly handle skipped releases
2018-12-16 16:28:52 -05:00
Pierre Vanduynslager
70c68ef3ed
feat: allow publish
plugins to return false
in order to signify no release was done
2018-12-14 16:16:27 -05:00
Pierre Vanduynslager
862ec4c087
fix: allow to set ci
option via API and config file
2018-12-11 13:33:06 -05:00
Pierre Vanduynslager
cd69583746
test: delete unused test helper file
2018-11-30 01:24:16 -05:00
Pierre Vanduynslager
ffe1062830
fix: remove unnecessary branch
parameter from push
function
2018-11-29 20:08:25 -05:00
Pierre Vanduynslager
eafbb343dd
fix: correctly resolve plugins installed globally with npx
...
This bug affects only plugins defined with the `plugins` option and wrapped in an Array to add a configuration
2018-11-26 18:39:28 -05:00
Pierre Vanduynslager
2b082acc73
fix: push only tags to remote repo
2018-11-21 12:32:01 -05:00
Pierre Vanduynslager
aa022e0ac2
test: clarify variables name
2018-11-21 12:32:01 -05:00
Pierre Vanduynslager
9742712957
test: verify errors have message and details
2018-11-19 18:34:16 -05:00
Pierre Vanduynslager
5937f13bdf
test: fix typo
2018-11-19 18:34:16 -05:00
Pierre Vanduynslager
9f5645cfa0
refactor: harmonize git utils function names
2018-11-19 18:34:16 -05:00
Pierre Vanduynslager
e594638a96
test: prefer array spread
2018-11-19 18:34:16 -05:00
Pierre Vanduynslager
90da6a0bc1
feat: add logs about prepare
, publish
, success
and fail
plugins skipped in dry-run mode
2018-11-14 11:27:06 -05:00
Pierre Vanduynslager
90b497464e
test: test that dry-run also skips prepare
step
2018-11-14 11:27:06 -05:00
Pierre Vanduynslager
5180001ae6
feat: support multiple plugins for the analyzeCommits
step
...
In case multiple plugins with a `analyzeCommits` step are configured, all of them will be executed and the highest release type (`major` > `minor`, `patch`) will be used.
2018-11-12 15:06:46 -05:00
Pierre Vanduynslager
a99355effa
fix: remove dependency to git-url-parse
2018-10-27 09:35:45 -04:00
Pierre Vanduynslager
cc06d8999a
test: fix errors ordering in assertions
2018-10-27 09:35:45 -04:00
Pierre Vanduynslager
ff275a5cd4
fix: use module name in logs for plugins loaded with plugins
option
2018-10-09 15:29:04 -04:00
Pierre Vanduynslager
aa9d5c6efe
docs: add a Getting started
section and clarify config steps
2018-10-08 13:24:51 -04:00
Pierre Vanduynslager
5ba5010c80
feat: add new plugins
option
2018-10-08 13:24:51 -04:00
Pierre Vanduynslager
4f75cb3376
fix: support multiple generate-notes plugin in CLI arg
2018-09-07 10:46:04 -04:00
greenkeeper[bot]
fa62d427b6
chore(package): update xo to version 0.23.0
2018-09-03 16:54:31 -04:00
Pierre Vanduynslager
dffe148e33
fix: hide sensitive data in relesae notes and fail
/success
plugin params
2018-08-27 16:20:36 -04:00
Pierre Vanduynslager
cfeaf49233
test: use real writable stream
...
This way plugins can pipe a stream to `stdout` and `stderr` in integration tests.
2018-08-15 16:27:55 -04:00
Pierre Vanduynslager
93377eb636
revert: "fix: do not convert ssh repositoryUrl
to https"
...
This reverts commit b89523105cf04298f1f44858a02cc76c6c5dd0a5.
2018-08-10 13:16:29 -04:00
Pierre Vanduynslager
b89523105c
fix: do not convert ssh repositoryUrl
to https
2018-08-08 12:02:02 -04:00
greenkeeper[bot]
06695a1af8
chore(package): update xo to version 0.22.0
2018-08-06 11:48:44 -04:00
Pierre Vanduynslager
63d422ed5c
fix: do not clone stdout
/stderr
passed to pugins
2018-08-04 20:33:26 -04:00
Pierre Vanduynslager
b082a2eb38
fix: do not hide env variable value if shorter than 5
2018-07-31 16:57:29 -04:00
Pierre Vanduynslager
43d0646150
fix: also hide sensitive info when loggin from cli.js
2018-07-30 14:06:51 -04:00
Pierre Vanduynslager
d8c84a0e0b
fix: clarify EPLUGINCONF
error message
...
The message now specify if the step is required and if it allows to configure multiple plugins.
2018-07-29 23:50:17 -04:00
Pierre Vanduynslager
417779e221
feat: return lastRelease
, commits
, nextRelease
, releases
from JS API
2018-07-29 21:56:21 -04:00
Pierre Vanduynslager
0626d57116
feat: log with signale
and allow to customize stdin
and stdout
2018-07-29 21:56:21 -04:00
Pierre Vanduynslager
1d4f67e5e8
test: use semanticrelease/npm-registry-docker
Docker image for tests
2018-07-29 21:48:35 -04:00
Pierre Vanduynslager
a94e08de9a
feat: pass cwd
and env
context to plugins
...
- Allow to run semantic-release (via API) from anywhere passing the current working directory.
- Allows to simplify the tests and to run them in parallel in both the core and plugins.
2018-07-17 00:42:04 -04:00
Pierre Vanduynslager
12e4155cd3
refactor: pass argv
via proxyquire
for cli tests
2018-07-17 00:42:04 -04:00
Pierre Vanduynslager
d8e59cce53
fix: set default path to generateNotes
object config
2018-07-10 15:50:24 -04:00
Pierre Vanduynslager
24ce560065
refactor: build plugin pipeline parameters at initialization
...
In addition, factorize the pipeline config function to avoid code duplication.
2018-07-10 13:18:58 -04:00
Pierre Vanduynslager
50061bb267
refactor: remove unnecessary object destructuring
2018-07-10 13:18:58 -04:00
Pierre Vanduynslager
5989989452
feat: allow to define multiple generateNotes
plugins
...
Each `generateNotes` plugin will be called in the order defined and will receive the concatenation of the previous one in `nextRelease.notes`.
That gives each plugin the ability to test if there is a notes part that will precede it's own.
Each plugin is expected to return it's own part of the release notes only. **semantic-release** will take care of concatenating all the notes parts.
2018-07-10 13:18:58 -04:00
Pierre Vanduynslager
576eb6027f
refactor: simplify plugin validation
2018-07-10 13:18:58 -04:00
Pierre Vanduynslager
ed9c456f5e
refactor: always return an Array
of results/errors from a plugin pipeline
...
Always return an `Array` from a pipeline simplify the function utilization as it's more deterministic. Previously, it would return/throw a single value/error when called with a single input and an `Array` of results/errors when called with an `Array` of input.
2018-07-10 13:18:58 -04:00
Pierre Vanduynslager
f93eeb799b
fix: do not set path
to plugin config defined as a Function or an Array
...
If a plugin hook was defined as a `Function` or an `Array` the `path` property would be set to the default value.
Even if this bug had no actual negative impact, it should be fixed so the code would perform as intended.
2018-07-10 13:18:58 -04:00
Pierre Vanduynslager
071dccea4b
fix: use unauthenticated URL to check if branch is up to date
...
In case the authentication token provided is unauthorized the call to `isBranchUpToDate` will fail due to lack of read permission if that URL is used. As a result the error about outdated local branch will be reported instead of the one about missing permission.
By using the original (unauthenticated) URL `isBranchUpToDate` shouldn't fail due to permission as it requires only read permissions, that are necessarly present as the CI wass able to clone the repo.
2018-07-10 13:07:00 -04:00
Pierre Vanduynslager
5847514fcc
fix: allow empty release notes in dry-run mode
2018-07-10 11:42:22 -04:00
Pierre Vanduynslager
45eee4acdd
fix: fetch all tags even if the repo is not shallow
2018-07-02 18:38:24 -04:00
Pierre Vanduynslager
2d3a5e53e9
test: harmonize git-utils
functions name
2018-07-02 18:38:24 -04:00
Pierre Vanduynslager
4454d57e02
feat: allow to disable the publish plugin hook
2018-06-19 15:03:43 -04:00