Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit 355aefc
Author: Rhys Arkins <rhys@arkins.net>
Date:   Sat Mar 20 07:52:03 2021 +0100

    refactor: npm managerData

commit 905067a
Author: Rhys Arkins <rhys@arkins.net>
Date:   Sat Mar 20 07:26:00 2021 +0100

    refactor: maven managerData

commit 3751467
Author: Rhys Arkins <rhys@arkins.net>
Date:   Sat Mar 20 07:23:18 2021 +0100

    refactor: composer managerData

commit eb1f645
Author: Rhys Arkins <rhys@arkins.net>
Date:   Fri Mar 19 22:31:01 2021 +0100

    fix(npm): allow npm constraint install to fail

commit 38331a7
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Fri Mar 19 18:06:53 2021 +0000

    chore(deps): update codecov/codecov-action action to v1.3.1 (#9223)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>

commit 7a9d93a
Author: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Date:   Fri Mar 19 16:54:13 2021 +0100

    chore: bump operations-per-run for stale action (#9222)

commit 1185a46
Author: Rhys Arkins <rhys@arkins.net>
Date:   Fri Mar 19 16:18:45 2021 +0100

    refactor: CACHE_REVISION

commit b63e035
Author: Rhys Arkins <rhys@arkins.net>
Date:   Fri Mar 19 16:10:58 2021 +0100

    refactor: better lock dir renaming

commit adc2f24
Author: Rhys Arkins <rhys@arkins.net>
Date:   Fri Mar 19 15:58:24 2021 +0100

    refactor: lernaJsonFile into managerData

commit 3d3cc74
Author: Rhys Arkins <rhys@arkins.net>
Date:   Fri Mar 19 15:33:23 2021 +0100

    refactor: lernaDir -> lernaJsonFile

commit 19e16ff
Author: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Date:   Fri Mar 19 12:20:31 2021 +0100

    chore: redirect docs problems to discussion (#9210)

commit b67c54e
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Fri Mar 19 00:27:36 2021 +0000

    build(deps): update dependency semantic-release to v17.4.2 (#9217)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>

commit 238b52a
Author: Rhys Arkins <rhys@arkins.net>
Date:   Thu Mar 18 16:34:53 2021 +0100

    refactor(npm): don’t write npmrc/yarnrc to root always (#9211)

commit e035722
Author: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Date:   Thu Mar 18 15:24:51 2021 +0100

    docs: improve requiredStatusChecks documentation (#9208)

commit cf98e65
Author: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Date:   Thu Mar 18 14:06:56 2021 +0100

    docs: capitalize proper noun Docker (#9197)

commit 669b9a6
Author: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Date:   Thu Mar 18 13:46:10 2021 +0100

    docs: capitalize proper noun Renovate (#9199)

commit 93a36f7
Author: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Date:   Thu Mar 18 13:45:50 2021 +0100

    docs: capitalize proper noun GitHub (#9198)

commit dc5f198
Author: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Date:   Thu Mar 18 13:45:21 2021 +0100

    docs: capitalize proper noun Git (#9196)

commit 587f50e
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Thu Mar 18 00:22:26 2021 +0000

    chore(deps): update dependency type-fest to v0.21.3 (#9181)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>

commit 213d39f
Author: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Date:   Wed Mar 17 23:12:52 2021 +0100

    docs: capitalize proper noun Unicode, fix punctuation (#9186)

commit 3dfac42
Author: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Date:   Wed Mar 17 22:51:46 2021 +0100

    docs: set unicodeEmoji to false if using MySQL/MariaDB on BitBucket Server (#9185)

commit fc82122
Author: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Date:   Wed Mar 17 22:34:54 2021 +0100

    chore: improve reproduction:needed message (#9183)

commit 2819d4f
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Wed Mar 17 18:26:27 2021 +0000

    chore(deps): update dependency jest-silent-reporter to v0.5.0 (#9180)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>

commit bca8931
Author: Rhys Arkins <rhys@arkins.net>
Date:   Wed Mar 17 14:40:50 2021 +0100

    fix(npm): datasource improvements (#9178)

commit 58daaab
Author: Rhys Arkins <rhys@arkins.net>
Date:   Wed Mar 17 13:34:47 2021 +0100

    feat(internal): return registryUrl from datasources (#9177)

    Co-authored-by: Michael Kriese <michael.kriese@visualon.de>

commit 3be8402
Author: Rhys Arkins <rhys@arkins.net>
Date:   Wed Mar 17 12:16:04 2021 +0100

    test: more maven snapshots

commit f0dede3
Author: Rhys Arkins <rhys@arkins.net>
Date:   Wed Mar 17 12:10:18 2021 +0100

    test: maven snapshots

commit 898cbd5
Author: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Date:   Wed Mar 17 09:55:53 2021 +0100

    chore: create stale action to close reproduction:needed bugs (#9165)

    Co-authored-by: Rhys Arkins <rhys@arkins.net>

commit bcc3f0e
Author: Shayne Holmes <github.snth@xoxy.net>
Date:   Tue Mar 16 22:01:34 2021 -0700

    feat(go): Pass GONOPROXY when updating artifacts (#9169)

    GONOPROXY [defaults](https://golang.org/ref/mod#environment-variables)
    to GOPRIVATE, but some callers want to set it explicitly to something
    different. Pass it when caling `go get`.

    Co-authored-by: Jamie Magee <JamieMagee@users.noreply.github.com>

commit 910e44a
Author: Rhys Arkins <rhys@arkins.net>
Date:   Tue Mar 16 21:40:07 2021 +0100

    chore: fix docs lint

commit 95ce900
Author: Rhys Arkins <rhys@arkins.net>
Date:   Tue Mar 16 19:25:03 2021 +0100

    refactor: npmId

commit 668c879
Author: Michael Kriese <michael.kriese@visualon.de>
Date:   Tue Mar 16 19:14:52 2021 +0100

    fix(gitlabci): gracefully handle errors (#9163)

    * fix(gitlabci): gracefully handle errors

    * fix: remove debugging

    * Update lib/manager/gitlabci/utils.ts

    Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>

    * Apply suggestions from code review

    Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>

    Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>

commit 295d5ab
Author: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Date:   Tue Mar 16 16:23:06 2021 +0100

    docs: improve self-hosted experimental environment variables documentation (#9160)

commit fc2e48d
Author: Rhys Arkins <rhys@arkins.net>
Date:   Tue Mar 16 13:34:43 2021 +0100

    feat: RENOVATE_X_HARD_EXIT (#9152)

    Co-authored-by: Michael Kriese <michael.kriese@visualon.de>

commit f8580a1
Author: Michael Kriese <michael.kriese@visualon.de>
Date:   Tue Mar 16 11:10:18 2021 +0100

    feat(gitea): filter archived autodiscover repos (#9153)

commit ace4227
Author: Rhys Arkins <rhys@arkins.net>
Date:   Tue Mar 16 10:16:59 2021 +0100

    docs: Self-hosted experimental (#9156)

commit 6a2345d
Author: Michael Kriese <michael.kriese@visualon.de>
Date:   Tue Mar 16 08:59:00 2021 +0100

    fix: add additional source url overrides (#9151)

commit 0747c9a
Author: Rhys Arkins <rhys@arkins.net>
Date:   Mon Mar 15 18:13:58 2021 +0100

    fix: CACHE_REVISION=4

    Git submodules extraction has changed.

commit 40a59cc
Author: Michael Kriese <michael.kriese@visualon.de>
Date:   Mon Mar 15 14:23:38 2021 +0100

    feat: use short renovate image names (#9133)

    Co-authored-by: Rhys Arkins <rhys@arkins.net>

commit f1a4102
Author: Rhys Arkins <rhys@arkins.net>
Date:   Mon Mar 15 13:56:23 2021 +0100

    refactor: customRegistrySupport (#9142)

commit 6ebe8ba
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Mon Mar 15 11:49:07 2021 +0100

    build(deps): update dependency @renovatebot/ruby-semver to v1 (#9140)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>

commit 9c48616
Author: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Date:   Mon Mar 15 09:39:52 2021 +0100

    chore: capitalize noun Git in comment (#9137)

commit 0149e76
Author: Michael Kriese <michael.kriese@visualon.de>
Date:   Mon Mar 15 08:49:56 2021 +0100

    feat(mix): migrate to modern docker handling (#9132)

commit e0dfc81
Author: Henrik Karlsson <hk.henrik@gmail.com>
Date:   Mon Mar 15 07:29:52 2021 +0100

    chore: Install a newer version of git in the vscode devcontainer to fix failing tests (#9131)

commit a45c5f3
Author: Rhys Arkins <rhys@arkins.net>
Date:   Mon Mar 15 07:11:46 2021 +0100

    refactor: remove git-submodules datasource (#9128)

commit 0f7875e
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Mon Mar 15 02:52:31 2021 +0000

    chore(deps): update dependency nock to v13.0.11 (#9129)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>

commit 06c246e
Author: Rhys Arkins <rhys@arkins.net>
Date:   Sun Mar 14 20:58:47 2021 +0100

    feat(internal): fixedRegistries (#9124)

commit 084f9dc
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Sun Mar 14 14:42:54 2021 +0000

    chore(deps): update dependency @types/eslint to v7.2.7 (#9125)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>

commit ea0bcdd
Author: renovate-testing <77205328+renovate-testing@users.noreply.github.com>
Date:   Sun Mar 14 11:27:40 2021 +0300

    feat(git): Specify additional git authors to ignore (#9082)

commit 717e4e6
Author: Rhys Arkins <rhys@arkins.net>
Date:   Sun Mar 14 07:33:53 2021 +0100

    fix: stabilityStatus non-null check

commit 926f23f
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Sat Mar 13 23:32:55 2021 +0000

    chore(deps): update dependency @types/luxon to v1.26.2 (#9121)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
  • Loading branch information
rarkins committed Mar 20, 2021
1 parent 4d31d68 commit 17de931
Show file tree
Hide file tree
Showing 158 changed files with 1,123 additions and 713 deletions.
7 changes: 6 additions & 1 deletion .devcontainer/Dockerfile
Expand Up @@ -2,6 +2,11 @@ FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:0.157.0-14@sha256:98

# see https://mcr.microsoft.com/v2/vscode/devcontainers/typescript-node/tags/list for tags
# Add missing Renovate dev tools
RUN DEBIAN_FRONTEND=noninteractive apt-get update \

# Renovate requires Git version 2.22+, while Debian Buster only ships version 2.20.
# The backports repository contains newer versions of Git, which we'll use instead.
RUN echo 'deb http://deb.debian.org/debian buster-backports main' > /etc/apt/sources.list.d/backports.list \
&& DEBIAN_FRONTEND=noninteractive apt-get update \
&& apt-get -y install --no-install-recommends build-essential git/buster-backports \
&& apt-get -y install --no-install-recommends --no-upgrade build-essential \
&& rm -rf /var/lib/apt/lists/*
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/config.yml
@@ -1,5 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Start a discussion
- name: Start a discussion (config, doubts, docs)
url: https://github.com/renovatebot/renovate/discussions/new
about: If you have any questions about bot configuration or doubts about whether you should create a feature request or bug report, please click here to create a Discussion instead of an Issue.
about: If you have any questions about bot configuration or doubts about whether you should create a feature request or bug report, or have problems with the documentation please click here to create a Discussion instead of an Issue.
4 changes: 2 additions & 2 deletions .github/label-actions.yml
Expand Up @@ -4,8 +4,8 @@
The Renovate team needs your help!
To fix the problem, we first need to know exactly what's causing the bug.
A minimal reproduction help us to pinpoint the exact cause of the bug.
Before we can start work on your issue we first need to know exactly what's causing the current behavior.
A minimal reproduction helps us with this.
To get started, please read our guide on [minimal reproductions](https://github.com/renovatebot/renovate/blob/master/docs/development/minimal-reproductions.md) to understand what is needed.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-pr.yml
Expand Up @@ -66,7 +66,7 @@ jobs:
run: yarn jest --logHeapUsage --maxWorkers=2 --ci

- name: Codecov
uses: codecov/codecov-action@v1.2.2
uses: codecov/codecov-action@v1.3.1
if: always()

# build after tests to exclude files
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Expand Up @@ -91,7 +91,7 @@ jobs:
run: yarn jest --logHeapUsage --maxWorkers=2 --ci --coverage ${{ env.coverage }}

- name: Codecov
uses: codecov/codecov-action@v1.2.2
uses: codecov/codecov-action@v1.3.1
if: always() && env.coverage == 'true'

# build after tests to exclude files
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/stale-action.yml
@@ -0,0 +1,33 @@
# Go to https://github.com/actions/stale for the full documentation of these options.

name: 'Close stale bug reports that lack reproduction'
on:
schedule:
- cron: '30 1 * * *'

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v3.0.18
with:
# Rate limit per run, (defaults to 30, but we've increased it to 40 for now).
operations-per-run: 40

# Only issues with both `reproduction:needed` and `type:bug` will be touched by the stale bot.
only-issue-labels: 'reproduction:needed,type:bug'

# A issue that has any assignee is getting worked on, so is exempt from stale bot.
exempt-all-issue-assignees: true

# Remove stale label from issue/PR on updates or comments, defaults to true.
remove-stale-when-updated: true

# Wait 14 days until making issue stale and posting a message.
days-before-issue-stale: 14
stale-issue-message: 'When a bug has been marked as needing a reproduction, it means nobody can work on it until one is provided. In cases where no reproduction is possible, or the issue creator does not have the time to reproduce, we unfortunately need to close such issues as they are non-actionable and serve no benefit by remaining open. This issue will be closed after 7 days of inactivity.'
stale-issue-label: 'stale'

# Close out issue after 7 stale days.
days-before-issue-close: 7
close-issue-message: 'This bug report has been closed as we need a reproduction to work on this. If the original poster or anybody else with the same problem discovers that they can reproduce it, please create a new issue, and reference this issue.'
4 changes: 2 additions & 2 deletions docs/usage/config-presets.md
Expand Up @@ -139,7 +139,7 @@ For example:
}
```

Then in each of your repositories you can add your renovate config like:
Then in each of your repositories you can add your Renovate config like:

```json
"extends": ["fastcore"]
Expand Down Expand Up @@ -168,7 +168,7 @@ To host your preset config on GitHub:
"extends": ["github>rarkins/renovate-config"]
```

From then on Renovate will use the renovate config from the preset repo's default branch.
From then on Renovate will use the Renovate config from the preset repo's default branch.
You do not need to add it as a devDependency or add any other files to the preset repo.

## GitLab-hosted Presets
Expand Down
29 changes: 23 additions & 6 deletions docs/usage/configuration-options.md
Expand Up @@ -635,6 +635,22 @@ If configured, Renovate bypasses its normal major/minor/patch upgrade logic and
Beware that Renovate follows tags strictly.
For example, if you are following a tag like `next` and then that stream is released as `stable` and `next` is no longer being updated then that means your dependencies also won't be getting updated.

## gitIgnoredAuthors

Specify commit authors ignored by Renovate.

By default, Renovate will treat any PR as modified if another git author has added to the branch.
When a PR is considered modified, Renovate won't perform any further commits such as if it's conflicted or needs a version update.
If you have other bots which commit on top of Renovate PRs, and don't want Renovate to treat these PRs as modified, then add the other git author(s) to `gitIgnoredAuthors`.

Example:

```json
{
"gitIgnoredAuthors": ["some-bot@example.org"]
}
```

## gitLabAutomerge

Caution (fixed in GitLab >= 12.7): when this option is enabled it is possible due to a bug in GitLab that MRs with failing pipelines might still get merged.
Expand Down Expand Up @@ -1145,7 +1161,7 @@ For example, if you have an `examples` directory and you want all updates to tho
}
```

If you wish to limit renovate to apply configuration rules to certain files in the root repository directory, you have to use `matchPaths` with either a partial string match or a minimatch pattern.
If you wish to limit Renovate to apply configuration rules to certain files in the root repository directory, you have to use `matchPaths` with either a partial string match or a minimatch pattern.
For example you have multiple `package.json` and want to use `dependencyDashboardApproval` only on the root `package.json`:

```json
Expand Down Expand Up @@ -1425,7 +1441,7 @@ Here's an example of where you use this to group together all packages from the
}
```

Here's an example of where you use this to group together all packages from the `renovatebot` github org:
Here's an example of where you use this to group together all packages from the `renovatebot` GitHub org:

```json
{
Expand Down Expand Up @@ -1953,11 +1969,12 @@ The field supports multiple URLs however it is datasource-dependent on whether o

Currently Renovate's default behavior is to only automerge if every status check has succeeded.

Setting this option to `null` means that Renovate will ignore all status checks.
You need to set this if you don't have any status checks but still want Renovate to automerge PRs.
Setting this option to `null` means that Renovate will ignore _all_ status checks.
You can set this if you don't have any status checks but still want Renovate to automerge PRs.
Beware: configuring Renovate to automerge without any tests can lead to broken builds on your default branch, please think again before enabling this!

In future, this might be configurable to allow certain status checks to be ignored/required.
See [issue 1853 at the renovate repository](https://github.com/renovatebot/renovate/issues/1853) for more details.
See [issue 1853 at the Renovate repository](https://github.com/renovatebot/renovate/issues/1853) for more details.

## respectLatest

Expand Down Expand Up @@ -2138,7 +2155,7 @@ This is considered a feature flag with the aim to remove it and default to this

## unicodeEmoji

If enabled emoji shortcodes (`:warning:`) are replaced with their unicode equivalents (`⚠️`)
If enabled emoji shortcodes (`:warning:`) are replaced with their Unicode equivalents (`⚠️`).

## updateInternalDeps

Expand Down
2 changes: 1 addition & 1 deletion docs/usage/faq.md
Expand Up @@ -208,7 +208,7 @@ To learn more read the section below.

You can see in the example above that Renovate won't normally open a PR for the `snorgleborf` patch release.

There are 2 ways to tell renovate to open a separate PR for the patch release:
There are 2 ways to tell Renovate to open a separate PR for the patch release:

- Set `separateMinorPatch` to `true`
- Set `automerge` to the value: `"patch"`
Expand Down
4 changes: 2 additions & 2 deletions docs/usage/rust.md
Expand Up @@ -19,9 +19,9 @@ Renovate supports upgrading dependencies in `Cargo.toml` files and their accompa

Renovate updates Rust crates by default.

## Private crate registries and private git dependencies
## Private crate registries and private Git dependencies

If any dependencies are hosted in private git repositories, [Git Authentication for cargo](https://doc.rust-lang.org/cargo/appendix/git-authentication.html) must be set up.
If any dependencies are hosted in private Git repositories, [Git Authentication for cargo](https://doc.rust-lang.org/cargo/appendix/git-authentication.html) must be set up.

If any dependencies are hosted on private crate registries (ie., not on `crates.io`), then credentials should be set up in such a way that the Git command-line is able to clone the registry index.
Third-party crate registries usually provide instructions to achieve this.
Expand Down
4 changes: 3 additions & 1 deletion docs/usage/self-hosted-configuration.md
Expand Up @@ -7,6 +7,8 @@ description: Self-Hosted Configuration usable in renovate.json or package.json

The below configuration options are applicable only if you are running your own instance ("bot") of Renovate.

Please also see [Self-Hosted Experimental Options](./self-hosted-experimental.md).

## allowPostUpgradeCommandTemplating

If true allow templating for post-upgrade commands.
Expand Down Expand Up @@ -100,7 +102,7 @@ This configuration will be applied after all other environment variables so that

## dockerImagePrefix

Override the default renovate sidecar Docker containers image prefix from `docker.io/renovate` to a custom value, so renovate will pull images from a custom Docker registry.
Override the default Renovate sidecar Docker containers image prefix from `docker.io/renovate` to a custom value, so Renovate will pull images from a custom Docker registry.

If this is set to `ghcr.io/renovatebot` the final image for `node` would become `ghcr.io/renovatebot/node` instead of currently used `docker.io/renovate/node`.

Expand Down
50 changes: 50 additions & 0 deletions docs/usage/self-hosted-experimental.md
@@ -0,0 +1,50 @@
# Self-hosted experimental environment variables

The following environment variables are "experimental" because:

- They are not commonly needed
- They are typically an effort to work around some other service's or platform's problem
- They can be removed at any time
- They are variables for Renovate's internal use to validate they work as intended

Experimental variables which are commonly used and for which there is no external solution in sight can be converted to a official configuration option by the Renovate bot developers.

Use these experimental variables at your own risk.
We do not follow Semantic Versioning for any experimental variables.
These variables may be removed or have their behavior changed in **any** version.
We will try to keep breakage to a minimum, but make no guarantees that a experimental variable will keep working.

## GITLAB_IGNORE_REPO_URL

If set to any value, Renovate will ignore the Project's `http_url_to_repo` value and instead construct the Git URL manually.

## RENOVATE_CACHE_NPM_MINUTES

If set to any integer, Renovate will use this integer instead of the default npm cache time (15 minutes) for the npm datasource.

## RENOVATE_EXPERIMENTAL_NO_MAVEN_POM_CHECK

If set to any value, Renovate will skip its default artifacts filter check in the Maven datasource.
Skiping the check will speed things up, but may result in versions being returned which don't properly exist on the server.

## RENOVATE_LEGACY_GIT_AUTHOR_EMAIL

An additional `gitAuthor` email to ignore.
This variable is deprecated: use `ignoredAuthors` instead.

## RENOVATE_PAGINATE_ALL

If set to any value, Renovate will always paginate requests to GitHub fully, instead of stopping after 10 pages.

## RENOVATE_REUSE_PACKAGE_LOCK

If set to "false" (string), Renovate will remove any existing `package-lock.json` before attempting to update it.

## RENOVATE_USER_AGENT

If set to any string, Renovate will use this as the `user-agent` it sends with HTTP requests.

## RENOVATE_X_HARD_EXIT

If set to any value, Renovate will use a "hard" `process.exit()` once all work is done, even if a sub-process is otherwise delaying Node.js from exiting.
See <https://github.com/renovatebot/renovate/issues/8660> for background on why this was created.
2 changes: 2 additions & 0 deletions docs/usage/self-hosting.md
Expand Up @@ -232,6 +232,8 @@ Configure it as `password` in your `config.js` file, or in environment variable
Also configure the `username` for your bot account too, if you decided not to name it `@renovate-bot`.
Don't forget to configure `platform=bitbucket-server` somewhere in config.

If you use MySQL or MariaDB you must set `unicodeEmoji` to `false` in the bot config (`RENOVATE_CONFIG_FILE`) to prevent issues with emojis.

### Azure DevOps

First, [create a personal access token](https://docs.microsoft.com/en-us/azure/devops/integrate/get-started/authentication/pats) for the bot account.
Expand Down
2 changes: 1 addition & 1 deletion lib/config/decrypt.ts
Expand Up @@ -48,7 +48,7 @@ export function decryptConfig(config: RenovateConfig): RenovateConfig {
{ decryptedToken: maskToken(token) },
'Migrating npmToken to npmrc'
);
if (decryptedConfig.npmrc) {
if (is.string(decryptedConfig.npmrc)) {
/* eslint-disable no-template-curly-in-string */
if (decryptedConfig.npmrc.includes('${NPM_TOKEN}')) {
logger.debug('Replacing ${NPM_TOKEN} with decrypted token');
Expand Down
8 changes: 8 additions & 0 deletions lib/config/definitions.ts
Expand Up @@ -589,6 +589,14 @@ const options: RenovateOptions[] = [
admin: true,
stage: 'global',
},
{
name: 'gitIgnoredAuthors',
description:
'Additional git authors which are ignored by Renovate. Must conform to RFC5322.',
type: 'array',
subType: 'string',
stage: 'repository',
},
{
name: 'enabledManagers',
description:
Expand Down
1 change: 1 addition & 0 deletions lib/config/types.ts
Expand Up @@ -61,6 +61,7 @@ export interface RenovateSharedConfig {
suppressNotifications?: string[];
timezone?: string;
unicodeEmoji?: boolean;
gitIgnoredAuthors?: string[];
}

// Config options used only within the global worker
Expand Down
2 changes: 2 additions & 0 deletions lib/datasource/__snapshots__/index.spec.ts.snap
Expand Up @@ -27,9 +27,11 @@ exports[`datasource/index merges registries and returns success 1`] = `
Object {
"releases": Array [
Object {
"registryUrl": "https://reg1.com",
"version": "1.0.0",
},
Object {
"registryUrl": "https://reg1.com",
"version": "1.1.0",
},
],
Expand Down
2 changes: 0 additions & 2 deletions lib/datasource/api.ts
Expand Up @@ -6,7 +6,6 @@ import * as dart from './dart';
import * as docker from './docker';
import * as galaxy from './galaxy';
import * as gitRefs from './git-refs';
import * as gitSubmodules from './git-submodules';
import * as gitTags from './git-tags';
import * as githubReleases from './github-releases';
import * as githubTags from './github-tags';
Expand Down Expand Up @@ -43,7 +42,6 @@ api.set('dart', dart);
api.set('docker', docker);
api.set('galaxy', galaxy);
api.set('git-refs', gitRefs);
api.set('git-submodules', gitSubmodules);
api.set('git-tags', gitTags);
api.set('github-releases', githubReleases);
api.set('github-tags', githubTags);
Expand Down
Expand Up @@ -56,6 +56,7 @@ Array [

exports[`datasource/bitbucket-tags/index getReleases returns tags from bitbucket cloud 1`] = `
Object {
"registryUrl": "https://bitbucket.org",
"releases": Array [
Object {
"gitRef": "v1.0.0",
Expand Down
1 change: 1 addition & 0 deletions lib/datasource/bitbucket-tags/index.ts
Expand Up @@ -8,6 +8,7 @@ import { BitbucketCommit, BitbucketTag } from './types';
const bitbucketHttp = new BitbucketHttp();

export const id = 'bitbucket-tags';
export const customRegistrySupport = true;
export const registryStrategy = 'first';
export const defaultRegistryUrls = ['https://bitbucket.org'];

Expand Down
2 changes: 2 additions & 0 deletions lib/datasource/cdnjs/__snapshots__/index.spec.ts.snap
Expand Up @@ -3,6 +3,7 @@
exports[`datasource/cdnjs getReleases filters releases by asset presence 1`] = `
Object {
"homepage": "http://bulma.io",
"registryUrl": "https://api.cdnjs.com/",
"releases": Array [
Object {
"version": "0.7.5",
Expand Down Expand Up @@ -30,6 +31,7 @@ Array [
exports[`datasource/cdnjs getReleases processes real data 1`] = `
Object {
"homepage": "https://d3js.org/d3-force/",
"registryUrl": "https://api.cdnjs.com/",
"releases": Array [
Object {
"newDigest": "sha256-DNKhvPNPQByxMloPGL2GfmxYsbWDcrznYp+/r4eXs+o=",
Expand Down
5 changes: 4 additions & 1 deletion lib/datasource/cdnjs/index.ts
Expand Up @@ -3,6 +3,8 @@ import { Http } from '../../util/http';
import type { GetReleasesConfig, ReleaseResult } from '../types';

export const id = 'cdnjs';
export const customRegistrySupport = false;
export const defaultRegistryUrls = ['https://api.cdnjs.com/'];
export const caching = true;

const http = new Http(id);
Expand All @@ -24,10 +26,11 @@ interface CdnjsResponse {

export async function getReleases({
lookupName,
registryUrl,
}: GetReleasesConfig): Promise<ReleaseResult | null> {
// Each library contains multiple assets, so we cache at the library level instead of per-asset
const library = lookupName.split('/')[0];
const url = `https://api.cdnjs.com/libraries/${library}?fields=homepage,repository,assets`;
const url = `${registryUrl}libraries/${library}?fields=homepage,repository,assets`;
try {
const { assets, homepage, repository } = (
await http.getJson<CdnjsResponse>(url)
Expand Down
2 changes: 1 addition & 1 deletion lib/datasource/clojure/index.ts
@@ -1,7 +1,7 @@
import { MAVEN_REPO } from '../maven/common';

export const id = 'clojure';

export const customRegistrySupport = true;
export const defaultRegistryUrls = ['https://clojars.org/repo', MAVEN_REPO];
export const registryStrategy = 'merge';

Expand Down

0 comments on commit 17de931

Please sign in to comment.