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
728ea34dda
fix: remove redundant log
2018-11-12 15:06:46 -05:00
Pierre Vanduynslager
83af7acf69
docs: mention default analyzeCommits plugin
2018-11-12 15:06:46 -05:00
Pierre Vanduynslager
8e564ebc9d
docs: update FAQ to reflect new plugins option
2018-11-09 17:08:49 -05:00
Pierre Vanduynslager
dff1f1056f
docs: mention postversion npm script hook to run build scripts
2018-11-09 17:08:49 -05:00
Pierre Vanduynslager
ae4995c867
style: fix prettier errors
2018-11-07 12:19:19 -05:00
Pierre Vanduynslager
3c8177aed8
fix: add debug logs for config file path
2018-11-02 15:00:12 -04:00
Pierre Vanduynslager
6d0bd8c9b1
fix: add debug logs for plugins resolved options
2018-11-02 15:00:12 -04: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
3d5db1f8b0
fix: remove debugging console.error
2018-10-20 04:24:21 -04:00
Pierre Vanduynslager
0578c8b91c
fix: do not log outated branch error for missing permission cases
2018-10-17 15:33:16 -04:00
Pierre Vanduynslager
e29110103b
docs: add section existing tags in configuration docs
2018-10-09 22:02:34 -04:00
Pierre Vanduynslager
88539222f4
docs: add troubleshooting section for reference already exists Git error
2018-10-09 22:02:34 -04:00
Pierre Vanduynslager
d45861b989
docs: clarify the "npm missing permission" troubleshooting section
2018-10-09 22:02:34 -04:00
Pierre Vanduynslager
2ba0b81f39
docs: remove troubleshooting section related to legacy error messages
2018-10-09 22:02:34 -04:00
Pierre Vanduynslager
e93a663490
docs: fix markdown link in configuration docs
2018-10-09 22:02:34 -04:00
Pierre Vanduynslager
58c25beeb6
fix: fix logs for plugins loaded with plugins option
2018-10-09 16:33:37 -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
9930dac69e
fix: add cwd to ENOGITREPO error message
2018-10-04 01:49:44 -04:00
Pierre Vanduynslager
bc8551c025
fix: typo in EPLUGINCONF error message
2018-10-04 01:49:44 -04:00
Pierre Vanduynslager
234a9105f6
docs: add Waffle.io README badge
2018-10-04 01:41:37 -04:00
Pierre Vanduynslager
540d4fa764
fix: pass custom env and cwd to env-ci
2018-09-07 17:21:21 -04:00
Pierre Vanduynslager
4f75cb3376
fix: support multiple generate-notes plugin in CLI arg
2018-09-07 10:46:04 -04:00
Pierre Vanduynslager
dfbb9f2429
docs: clarify the URL encoding of GIT_CREDENTIALS
2018-09-05 14:05:08 -04:00
Pierre Vanduynslager
468f8a8bda
docs: clarify the --ci / --no-ci CLI option
2018-09-03 14:21:55 -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 b89523105c .
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
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
b2d82c2ccb
docs: specify for each step if one or more plugins are required/allowed
2018-07-29 23:50:17 -04:00
Pierre Vanduynslager
31ec1eb5de
docs: fix configuration doc syntax
2018-07-29 23:50:17 -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
3cc62f0318
docs: add JS API documentation
2018-07-29 21:56:21 -04:00
Pierre Vanduynslager
417779e221
feat: return lastRelease, commits, nextRelease, releases from JS API
2018-07-29 21:56:21 -04:00
Pierre Vanduynslager
c57443500f
refactor: pass complete context to lib/plugins/normalize.js
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
f64046f1d9
docs: fix link to resources page
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
3fb3fa8378
fix: do not override env variable with default if defined
2018-07-18 19:37:11 -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
89e584713d
docs: migration to new GitBook version
2018-07-14 18:00:06 -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
eb26254b00
refactor: use Object.entries rather than Object.keys
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
f7f4aabe9e
refactor: use the lastInput arg to compute the prepare pipeline next input
...
Use the `getNextInput`'s provided argument rather than relying on the closure.
2018-07-10 13:18:58 -04:00
Pierre Vanduynslager
12de6282dd
refactor: fix incorrect comments in lib/plugins/pipeline.js
2018-07-10 13:18:58 -04:00
Pierre Vanduynslager
d3032868d8
docs: fix default value for analyzeCommits plugin
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
cac48823f1
docs: clarify verifyRelease plugin description
2018-07-10 13:18:58 -04:00
Pierre Vanduynslager
09348f1b8a
style: disable max-params warning for lib/plugins/normalize.js
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
eb22f9998d
docs: FAQ for reverting a release
2018-07-10 11:52:39 -04:00
Pierre Vanduynslager
5847514fcc
fix: allow empty release notes in dry-run mode
2018-07-10 11:42:22 -04:00
Pierre Vanduynslager
a39ccb8f6c
docs: add missing link in GitBook summary
2018-07-08 01:16:21 -04:00
Pierre Vanduynslager and GitHub
0862480cf0
fix(package): update hosted-git-info to version 2.7.1
2018-07-06 21:47:50 -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
4abda31f83
fix: add debug log for git fetch command
2018-07-02 16:50:41 -04:00
Pierre Vanduynslager
3602716c0b
docs: update semantic-release and travis-deploy-once versions in examples
2018-07-02 11:23:37 -04:00
Pierre Vanduynslager
d4f68a5680
fix(package): update yargs to version 12.0.0
2018-06-26 15:46:19 -04:00
Pierre Vanduynslager
4454d57e02
feat: allow to disable the publish plugin hook
2018-06-19 15:03:43 -04:00
Pierre Vanduynslager
2b6378f26f
fix: use git ls-remote to verify if the remote branch is ahead
2018-06-15 16:16:55 -04:00
Pierre Vanduynslager
24a8052038
refactor: simply EGITNOPERMISSION error parameters
2018-06-15 16:16:55 -04:00
Pierre Vanduynslager
f9d9144e3d
docs: Add a troubleshooting section about squashed commits
2018-06-11 11:52:23 -04:00
Pierre Vanduynslager
4d47b20831
docs: clarify config file format
2018-06-04 15:12:46 -04:00
Pierre Vanduynslager
db1cc60c41
feat: verify minimum required git version is installed
2018-05-21 17:52:52 -04:00
Pierre Vanduynslager
47c73eb672
feat: add support for git version 2.0.0
2018-05-21 17:52:52 -04:00
Pierre Vanduynslager and Gregor Martynus
228451b7c9
docs: fix typo
2018-05-20 15:16:55 -07:00
Pierre Vanduynslager
3503407bf4
docs: clarify which commit types trigger a release
2018-05-20 23:55:47 +03:00
Pierre Vanduynslager
5025fcab55
docs: fix FAQ heading level
2018-05-20 23:55:47 +03:00
Pierre Vanduynslager
6693080b51
style: fix table indentation
2018-05-20 23:55:47 +03:00
Pierre Vanduynslager
a72d8f52af
fix: add clarification in EGITNOPERMISSION error message
...
Clarify that the error might be due to an invalid `repositoryUrl` configuration.
2018-05-20 23:14:44 +03:00
Pierre Vanduynslager and Gregor Martynus
d7081fadb1
fix: use git rev-parse origin/${branch} to verify origin head
2018-05-09 13:27:33 -07:00
Pierre Vanduynslager
61d7d38ec2
feat: set tag author and committer name/email
...
Use [Git Environment Variables](https://git-scm.com/book/en/v2/Git-Internals-Environment-Variables#Committing ). Set default values if environement variables are not set.
2018-05-08 14:25:23 -04:00
pvdlg
1ed466e337
ci: run test on Node.js 10
2018-05-04 21:55:30 -04:00
pvdlg and Gregor Martynus
cd9f2bdd44
feat: log git error message when authentication verification fails
2018-05-04 12:19:24 -07:00
pvdlg and Gregor Martynus
c93775cc38
feat: add support for Bitbucket token in environment variables
2018-05-01 12:02:29 -07:00
pvdlg
e88ac6300c
fix: fix Bitbucket authenticated URL
2018-05-01 10:44:02 -04:00
pvdlg
a52f258fa4
refactor: rename origin parameters to repositoryUrl
2018-05-01 09:59:57 -04:00
pvdlg
3f614530a0
test: prevent username/password prompt in get-git-auth-url tests
2018-05-01 09:59:57 -04:00
pvdlg
d15905c0d5
fix: verify the local branch is up to date with the remote one
2018-05-01 09:59:57 -04:00
pvdlg
a11da0d5e3
docs: fix jsdoc typos
2018-05-01 09:59:57 -04:00
pvdlg
65aaa77e95
refactor: remove unused test util function
2018-05-01 09:59:57 -04:00
Pierre Vanduynslager
cb1f80cb56
fix: add trailing .git to repositoryUrl only if it's present in the configured URL
2018-04-12 17:42:53 -04:00
Pierre Vanduynslager
31ad23125a
fix: match tag to tagFormat from the begining of the string
2018-04-11 17:11:33 -04:00
Pierre Vanduynslager
a8a07b7d51
docs: clarify FAQ to publish non-JavaScript packages
2018-04-10 12:11:24 -04:00
Pierre Vanduynslager
51e340f44e
fix: handle case with no last release in history
2018-03-21 21:41:50 -04:00
Pierre Vanduynslager
30ee231116
fix: prevent git prompt before permissions verification
2018-03-20 11:24:08 -04:00
Pierre Vanduynslager
3c46455929
fix: remove execa timeout
2018-03-20 11:24:08 -04:00