Commit graph

131 commits

Author SHA1 Message Date
Rhys Arkins
af1e4ee1a7
feat: secrets (#8070) 2021-03-22 15:51:38 +01:00
Michael Kriese
74d7691bef
refactor: optimize type usage (#8947) 2021-03-02 21:44:55 +01:00
Rhys Arkins
116693be64
fix: Revert "feat: secrets" (#8069)
This reverts commit ec1b3c386b.
2020-12-18 15:33:21 +01:00
Rhys Arkins
ec1b3c386b
feat: secrets (#6664) 2020-12-18 13:38:28 +01:00
Rhys Arkins
00a08225b9
refactor: use ls-lint (#7956) 2020-12-11 13:29:43 +01:00
renovate[bot]
6c414e7736
chore(deps): update dependency eslint-config-prettier to v7 (#7940)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-12-11 09:35:56 +01:00
Michael Kriese
739a561c63
fix(logger): fix logging (#7585) 2020-10-28 11:38:28 +01:00
Michael Kriese
e4c1e042b8
fix(logger): handle errors (#7554)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-10-26 13:58:28 +01:00
Michael Kriese
fcdb226ab8
feat(logger): dump http version (#7390) 2020-10-01 10:21:17 +02:00
Florian Greinacher
71cf56eaf9
feat(dependency-dashboard): display logged repository problems (#6952)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-09-21 22:04:11 +02:00
Rhys Arkins
bc90949c44 feat(logger): clearErrors 2020-09-18 09:26:38 +02:00
renovate[bot]
907b2b054e
chore(deps): update linters (major) (#7185)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Jamie Magee <JamieMagee@users.noreply.github.com>
2020-09-07 09:54:07 +02:00
Rhys Arkins
462351f9b1
feat(logger): serialize got request error (#7181)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-09-07 08:34:17 +02:00
Sergio Zharinov
f411dde51a
refactor(logger): Fix lint warnings (#7109) 2020-08-27 09:12:37 +02:00
Jamie Magee
b45502cd28
chore: fix more eslint warnings (#7001) 2020-08-17 12:32:23 +02:00
renovate[bot]
ccf286240e
chore(deps): update linters (major) (#6769)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Jamie Magee <JamieMagee@users.noreply.github.com>
2020-08-10 16:18:08 +02:00
Jamie Magee
456245aabe
chore(eslint): enable typescript 3.7 rules (#6765) 2020-07-18 08:42:32 +02:00
Jamie Magee
53ce3cf4d6
chore(jest): add eslint jest checks (#5986) 2020-05-18 14:33:44 +02:00
Michael Kriese
2515a89dab
fix(logging): sanitize known token (#5917) 2020-05-16 12:35:41 +02:00
Rhys Arkins
53ca91301f
chore: import linting (#6105) 2020-05-01 18:03:48 +02:00
renovate[bot]
4f59b62da4
chore(deps): update dependency prettier to v2 (#5952)
* chore(deps): update dependency prettier to v2

* Run prettier-fix

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
2020-04-12 18:09:36 +02:00
Jamie Magee
5ce5ef39c1
chore(internal): disallow implicit braces (#5730) 2020-03-17 12:15:22 +01:00
Rhys Arkins
364163e7a0
fix: move tests into lib (#5635) 2020-03-05 21:57:24 +01:00
Rhys Arkins
d06a8ef811 fix(logs): treat old/new config as config 2020-02-24 13:19:35 +01:00
Rhys Arkins
f1d0b7b5fe refactor: lower some levels from info to debug
Ref #5555
2020-02-24 09:26:42 +01:00
Rhys Arkins
adde436df0
feat(logger): logContext (#5553)
Adds a new concept `logContext`, to be added to each log entry when in JSON format.

Closes #5551
2020-02-23 07:31:13 +01:00
Rhys Arkins
e1bb02a098 fix(logs): stackTraceLimit=20 2020-02-12 14:16:20 +01:00
Rhys Arkins
394c789e0c fix(logs): adapt command serializer 2020-01-15 11:58:28 +01:00
Rhys Arkins
0dab3f4067 refactor: logs meta 2020-01-11 09:16:22 +01:00
Jamie Magee
4c287bc655 refactor(logger): convert more loggers to typescript (#4887)
Co-Authored-By: Michael Kriese <michael.kriese@visualon.de>
2019-11-29 13:52:46 +01:00
Michael Kriese
f0d4995fda fix(eslint): '@typescript-eslint/explicit-function-return-… (#4872) 2019-11-26 16:13:07 +01:00
Rhys Arkins
8d0aa39920 refactor(eslint): '@typescript-eslint/explicit-function-return-type' improvements 2019-11-24 08:43:24 +01:00
Carlin St Pierre
a20ca3c8a5 fix: Allow Date objects to pass through sanitizeValue without all of the fields being removed (#4809)
This fixes an issue where timestamps were not being logged because `Object.entries<any>(value)` for a Date object would return `{}`.
2019-11-15 07:04:58 -08:00
Sergio Zharinov
c95ae29179 feat(logger): Integrate logger with sanitizing (#4474) 2019-09-27 11:28:09 +02:00
Rhys Arkins
1819608ce0
refactor(changelog): fetch release list independently (#4398) 2019-08-29 08:21:17 +02:00
Michael Kriese
f650b851c5 feat(logger): store and print errors on exit (#4257) 2019-08-15 12:43:13 +02:00
Michael Kriese
5cb02acf2b fix/logger): meta should be logged as meta (#4258) 2019-08-07 09:04:45 +03:00
Michael Kriese
4a43ebce39 fix(logging): replace password in auth gotOptions (#4108) 2019-07-17 13:49:35 +02:00
Michael Kriese
d97737914e refactor: add js type check (#4098) 2019-07-17 10:14:56 +02:00
Rhys Arkins
27505b38b3 fix(logger): migrate last refs to ts
Closes #4094, Closes #4095
2019-07-15 15:04:03 +02:00
Jamie Magee
f334c568a5 feat(typescript): convert logger to typescript (#3671) 2019-07-15 11:04:05 +02:00
Rhys Arkins
a7e1115237 fix: redact private header 2019-06-06 17:01:26 +02:00
Rhys Arkins
4a854e6c2c fix(logs): serialize migratedConfig, originalConfig, presetConfig 2019-05-27 10:53:40 +02:00
mohd hassaan
315f036e38 fix: Return non-zero exit code in any fatal error (#3621) 2019-05-02 12:20:00 +02:00
Rhys Arkins
7bc2f157ee refactor: logger cmdSerializer 2019-04-09 12:23:56 +02:00
Rhys Arkins
107051e7cd tests: lint 2019-04-08 08:55:28 +02:00
Rhys Arkins
3da629247e fix(logs): err serializer strip secrets 2019-04-08 08:22:40 +02:00
Rhys Arkins
7be889e315 fix(logs): serialize cmd to strip tokens 2019-04-08 08:16:04 +02:00
Rhys Arkins
c9f175daaa refactor: redact gotOptions 2019-01-22 19:58:30 +01:00
Rhys Arkins
8c27d6fb23 tests: drop fatal test and ignore 2018-09-25 12:30:44 +02:00
Rhys Arkins
56245cf872 refactor: fatal err 2018-09-23 06:44:18 +02:00
Rhys Arkins
80463651ca feat: logger err serializer
Include body, message and stack with every error if present
2018-09-05 10:32:53 +02:00
Vladimir Starkov
608d8c5be0 feat: Bitbucket Cloud support
Adds platform support for Bitbucket cloud.

Closes #136, Closes #2238
2018-08-29 07:30:23 +02:00
Rhys Arkins
994284d2cb refactor(logs): special handling for module 2018-08-28 12:40:50 +02:00
Rhys Arkins
d8b50d7b09 logs: simplify releases 2018-06-27 07:21:17 +02:00
Rhys Arkins
98e9198c8e refactor: replace indexOfs 2018-06-04 20:44:32 +02:00
Connor Brathwaite
398303235b (refactor): delegate generic predicate checking to @sindresorhus/is (#2021)
Closes #1764
2018-06-04 20:07:22 +02:00
Rhys Arkins
80ebeadf83 logs: serialize array fields 2018-05-03 14:21:24 +02:00
Rhys Arkins
f408d582e8 fix: serialize body in logs 2018-04-18 06:32:06 +02:00
Rhys Arkins
c7b00f4a8f refactor: don’t mask commitMessage and prTitle 2018-04-17 10:34:30 +02:00
Rhys Arkins
9ff363251f
fix: return non-zero exit code if any errors (#1625)
fix: return non-zero exit code if any errors
2018-03-09 12:00:57 +01:00
Rhys Arkins
47bf45019d fix: better serialize content fields 2018-03-08 07:22:06 +01:00
Rhys Arkins
dc49ac42da fix: add authorization to redacted logger fields 2018-02-19 09:11:24 +01:00
Rhys Arkins
b5b714d4b5
fix: writeToken -> forkToken (#1295)
Rename writeToken to forkToken to make it clearer. This enables GitHub API to use one token for all reads, and another token just for writing to the forked repository.
2017-12-14 11:47:00 +01:00
Rhys Arkins
bbb700c54d feat: add github writeToken capability in github wrapper 2017-12-12 14:54:09 +01:00
Rhys Arkins
5036360658
feat: gitPrivateKey for signed git commits (#1282)
This feature enables signing of git commits on GitHub. To achieve this, Renovate must be configured with a gitPrivateKey in format supported by openpgp. There must also be a gitAuthor configured to enable this feature.

Closes #897
2017-12-09 17:56:23 +01:00
Rhys Arkins
fca3a1fbd1
feat: json logging (#1146) 2017-11-11 07:51:36 +01:00
Rhys Arkins
0c882ce135
refactor: add logger master (#1124) 2017-11-08 15:43:09 +01:00
Rhys Arkins
89e13d05fe
fix: refactor logger addStream and depType logging (#1117)
* fix: refactor logger addstream

* remove depTyp setMeta
2017-11-08 09:59:32 +01:00
Rhys Arkins
8c479071fd
refactor: use global logger (#1116) 2017-11-08 06:44:03 +01:00
Rhys Arkins
f8be45055a
refactor: remove config.api and use platform dispatcher (#1114) 2017-11-07 11:46:10 +01:00
renovate[bot]
cfc6c5ccdf fix: update dependency eslint-config-airbnb-base to v12 (#771)
* chore(deps): update dependency eslint-config-airbnb-base to v12.0.0

* fix lint
2017-09-15 19:46:25 +02:00
Rhys Arkins
6c0d50703f feat: encrypted configuration strings (#759)
A new config object `encrypted` can be defined at any level and contain encrypted configuration strings. Initial use is for encrypting an npm token for use with the hosted renovate app.

Closes #650
2017-09-01 06:45:51 +02:00
Rhys Arkins
16d36a15e2 feat: add npmToken, npmrc and yarnrc configuration support (#753)
Renovate config can now support the fields `npmToken`, `npmrc` and `yarnrc`. `npmrc` and `yarnrc` (note no `.` prefix) can be used as an alternative to checking the respective files into the repo and have the same effect. `npmToken` is a shorter alternative and allows for just the npm token to be added, defaulting to the public npm registry.
2017-08-29 09:25:44 +02:00
Rhys Arkins
ea9ace2a76 feat: branch worker updates (#736)
This is a major refactor of branch code to prepare for Yarn workspaces plus creating PRs for branches with failing lockfiles. Marked as "feature" to cause a minor version bump due to the moderate chance of accidentally breaking something.
2017-08-26 16:10:18 +02:00
Rhys Arkins
ccb66310b1 feat: Pre-fetch all package.json files (#642)
Repository initialisation is refactored so that all package files and their content is retrieved up-front before an renovating begins. This allows us to know both how many package files as well as determine if there is renovate json in a package.json before triggering the onboarding PR.

Closes #634
2017-08-08 06:25:44 +02:00
Rhys Arkins
db2e6dd1b9 refactor: Convert Object.assign to spread (#585)
Closes #226
2017-08-03 08:01:20 +02:00
Rhys Arkins
30155782f5 chore(logs): Ignore start_time log field 2017-07-19 08:41:09 +02:00
Rhys Arkins
8e48d97392 feat(logs): Support custom log detail fields
This removes the need to JSON.stringify() objects in logs. Default bunyan fields plus our custom meta fields are stripped out, and everything else is stringified in the details field.

Closes #498
2017-07-19 08:05:26 +02:00
Rhys Arkins
c4dcad7de8 chore: squash template fields in config log serializer 2017-07-02 06:32:52 +02:00
Rhys Arkins
552b5e68c5 Refactor helpers (#382)
* Move yarn and npm helpers into branch worker

* Fix name

* Move package-json helper

* Update name

* Move changelog

* Move github-app

* Remove unused platform

* Move logger

* Fix lint
2017-06-29 07:29:41 +02:00