renovate 41.0.0-next.21 → 41.0.0-next.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/decrypt.js +5 -3
- package/dist/config/decrypt.js.map +1 -1
- package/dist/config/options/index.js +45 -3
- package/dist/config/options/index.js.map +1 -1
- package/dist/config/presets/github/index.js +2 -2
- package/dist/config/presets/github/index.js.map +1 -1
- package/dist/config/presets/internal/group.js +21 -0
- package/dist/config/presets/internal/group.js.map +1 -1
- package/dist/config/presets/internal/workarounds.js +11 -0
- package/dist/config/presets/internal/workarounds.js.map +1 -1
- package/dist/config/secrets.d.ts +2 -0
- package/dist/config/secrets.js +10 -77
- package/dist/config/secrets.js.map +1 -1
- package/dist/config/types.d.ts +9 -1
- package/dist/config/types.js.map +1 -1
- package/dist/config-validator.js +4 -2
- package/dist/config-validator.js.map +1 -1
- package/dist/data/monorepo.json +10 -1
- package/dist/data-files.generated.d.ts +1 -1
- package/dist/data-files.generated.js +2 -1
- package/dist/data-files.generated.js.map +1 -1
- package/dist/instrumentation/index.js +5 -3
- package/dist/instrumentation/index.js.map +1 -1
- package/dist/instrumentation/reporting.d.ts +2 -2
- package/dist/instrumentation/reporting.js +3 -7
- package/dist/instrumentation/reporting.js.map +1 -1
- package/dist/instrumentation/types.d.ts +11 -5
- package/dist/instrumentation/types.js.map +1 -1
- package/dist/instrumentation/utils.js +3 -2
- package/dist/instrumentation/utils.js.map +1 -1
- package/dist/logger/once.js +2 -0
- package/dist/logger/once.js.map +1 -1
- package/dist/modules/datasource/aws-eks-addon/schema.d.ts +14 -38
- package/dist/modules/datasource/aws-eks-addon/schema.js +11 -22
- package/dist/modules/datasource/aws-eks-addon/schema.js.map +1 -1
- package/dist/modules/datasource/cdnjs/index.js +2 -1
- package/dist/modules/datasource/cdnjs/index.js.map +1 -1
- package/dist/modules/datasource/crate/index.js +7 -2
- package/dist/modules/datasource/crate/index.js.map +1 -1
- package/dist/modules/datasource/docker/ecr.js +2 -2
- package/dist/modules/datasource/docker/ecr.js.map +1 -1
- package/dist/modules/datasource/docker/index.js +26 -9
- package/dist/modules/datasource/docker/index.js.map +1 -1
- package/dist/modules/datasource/docker/schema.d.ts +9 -87
- package/dist/modules/datasource/docker/schema.js +1 -1
- package/dist/modules/datasource/docker/schema.js.map +1 -1
- package/dist/modules/datasource/git-refs/base.js +2 -6
- package/dist/modules/datasource/git-refs/base.js.map +1 -1
- package/dist/modules/datasource/go/goproxy-parser.js +6 -2
- package/dist/modules/datasource/go/goproxy-parser.js.map +1 -1
- package/dist/modules/datasource/go/index.js +4 -2
- package/dist/modules/datasource/go/index.js.map +1 -1
- package/dist/modules/datasource/go/releases-goproxy.js +3 -2
- package/dist/modules/datasource/go/releases-goproxy.js.map +1 -1
- package/dist/modules/datasource/index.js +1 -1
- package/dist/modules/datasource/index.js.map +1 -1
- package/dist/modules/datasource/maven/index.js +5 -19
- package/dist/modules/datasource/maven/index.js.map +1 -1
- package/dist/modules/datasource/maven/util.js +8 -1
- package/dist/modules/datasource/maven/util.js.map +1 -1
- package/dist/modules/datasource/npm/get.js +2 -1
- package/dist/modules/datasource/npm/get.js.map +1 -1
- package/dist/modules/datasource/npm/npmrc.js +2 -1
- package/dist/modules/datasource/npm/npmrc.js.map +1 -1
- package/dist/modules/datasource/nuget/v3.js +3 -2
- package/dist/modules/datasource/nuget/v3.js.map +1 -1
- package/dist/modules/datasource/pod/index.js +3 -1
- package/dist/modules/datasource/pod/index.js.map +1 -1
- package/dist/modules/datasource/pypi/index.js +2 -1
- package/dist/modules/datasource/pypi/index.js.map +1 -1
- package/dist/modules/datasource/types.d.ts +2 -1
- package/dist/modules/datasource/types.js.map +1 -1
- package/dist/modules/manager/asdf/upgradeable-tooling.js +8 -0
- package/dist/modules/manager/asdf/upgradeable-tooling.js.map +1 -1
- package/dist/modules/manager/bazel/rules/git.d.ts +7 -7
- package/dist/modules/manager/bazel/rules/git.js +6 -1
- package/dist/modules/manager/bazel/rules/git.js.map +1 -1
- package/dist/modules/manager/bazel-module/bazelrc.d.ts +2 -0
- package/dist/modules/manager/bazel-module/bazelrc.js +30 -1
- package/dist/modules/manager/bazel-module/bazelrc.js.map +1 -1
- package/dist/modules/manager/bazel-module/parser/rules.js +1 -0
- package/dist/modules/manager/bazel-module/parser/rules.js.map +1 -1
- package/dist/modules/manager/bazel-module/rules.d.ts +62 -24
- package/dist/modules/manager/bazel-module/rules.js +10 -4
- package/dist/modules/manager/bazel-module/rules.js.map +1 -1
- package/dist/modules/manager/cargo/extract.js +2 -1
- package/dist/modules/manager/cargo/extract.js.map +1 -1
- package/dist/modules/manager/composer/schema.js +1 -1
- package/dist/modules/manager/composer/schema.js.map +1 -1
- package/dist/modules/manager/docker-compose/extract.js +2 -0
- package/dist/modules/manager/docker-compose/extract.js.map +1 -1
- package/dist/modules/manager/docker-compose/schema.d.ts +120 -9
- package/dist/modules/manager/docker-compose/schema.js +35 -4
- package/dist/modules/manager/docker-compose/schema.js.map +1 -1
- package/dist/modules/manager/fingerprint.generated.js +19 -19
- package/dist/modules/manager/fingerprint.generated.js.map +1 -1
- package/dist/modules/manager/fleet/extract.js +2 -2
- package/dist/modules/manager/fleet/extract.js.map +1 -1
- package/dist/modules/manager/fleet/schema.d.ts +5 -5
- package/dist/modules/manager/fleet/schema.js +1 -1
- package/dist/modules/manager/fleet/schema.js.map +1 -1
- package/dist/modules/manager/flux/extract.js +1 -1
- package/dist/modules/manager/flux/extract.js.map +1 -1
- package/dist/modules/manager/git-submodules/extract.js +2 -6
- package/dist/modules/manager/git-submodules/extract.js.map +1 -1
- package/dist/modules/manager/git-submodules/update.js +3 -7
- package/dist/modules/manager/git-submodules/update.js.map +1 -1
- package/dist/modules/manager/github-actions/extract.js +1 -1
- package/dist/modules/manager/github-actions/extract.js.map +1 -1
- package/dist/modules/manager/gleam/artifacts.js +5 -1
- package/dist/modules/manager/gleam/artifacts.js.map +1 -1
- package/dist/modules/manager/gomod/artifacts.js +8 -6
- package/dist/modules/manager/gomod/artifacts.js.map +1 -1
- package/dist/modules/manager/gradle/extract.js +4 -1
- package/dist/modules/manager/gradle/extract.js.map +1 -1
- package/dist/modules/manager/gradle/utils.js +8 -14
- package/dist/modules/manager/gradle/utils.js.map +1 -1
- package/dist/modules/manager/helmfile/utils.js +1 -1
- package/dist/modules/manager/helmfile/utils.js.map +1 -1
- package/dist/modules/manager/helmv3/artifacts.js +8 -2
- package/dist/modules/manager/helmv3/artifacts.js.map +1 -1
- package/dist/modules/manager/helmv3/common.d.ts +1 -1
- package/dist/modules/manager/helmv3/common.js +9 -3
- package/dist/modules/manager/helmv3/common.js.map +1 -1
- package/dist/modules/manager/hermit/artifacts.js +2 -2
- package/dist/modules/manager/hermit/artifacts.js.map +1 -1
- package/dist/modules/manager/kubernetes/extract.js +2 -2
- package/dist/modules/manager/kubernetes/extract.js.map +1 -1
- package/dist/modules/manager/kustomize/artifacts.js +1 -1
- package/dist/modules/manager/kustomize/artifacts.js.map +1 -1
- package/dist/modules/manager/maven/extract.d.ts +1 -1
- package/dist/modules/manager/maven/extract.js +82 -24
- package/dist/modules/manager/maven/extract.js.map +1 -1
- package/dist/modules/manager/maven/index.d.ts +0 -1
- package/dist/modules/manager/maven/index.js +2 -4
- package/dist/modules/manager/maven/index.js.map +1 -1
- package/dist/modules/manager/maven/update.js +15 -0
- package/dist/modules/manager/maven/update.js.map +1 -1
- package/dist/modules/manager/mise/backends.d.ts +48 -0
- package/dist/modules/manager/mise/backends.js +219 -0
- package/dist/modules/manager/mise/backends.js.map +1 -0
- package/dist/modules/manager/mise/extract.js +77 -10
- package/dist/modules/manager/mise/extract.js.map +1 -1
- package/dist/modules/manager/mise/index.js +37 -2
- package/dist/modules/manager/mise/index.js.map +1 -1
- package/dist/modules/manager/mise/schema.d.ts +24 -0
- package/dist/modules/manager/mise/schema.js +7 -1
- package/dist/modules/manager/mise/schema.js.map +1 -1
- package/dist/modules/manager/mise/upgradeable-tooling.js +210 -1
- package/dist/modules/manager/mise/upgradeable-tooling.js.map +1 -1
- package/dist/modules/manager/mix/artifacts.js +5 -0
- package/dist/modules/manager/mix/artifacts.js.map +1 -1
- package/dist/modules/manager/npm/extract/index.js +27 -24
- package/dist/modules/manager/npm/extract/index.js.map +1 -1
- package/dist/modules/manager/npm/post-update/index.js +9 -3
- package/dist/modules/manager/npm/post-update/index.js.map +1 -1
- package/dist/modules/manager/npm/post-update/npm.js +8 -5
- package/dist/modules/manager/npm/post-update/npm.js.map +1 -1
- package/dist/modules/manager/npm/post-update/pnpm.js +4 -0
- package/dist/modules/manager/npm/post-update/pnpm.js.map +1 -1
- package/dist/modules/manager/npm/post-update/utils.js +17 -0
- package/dist/modules/manager/npm/post-update/utils.js.map +1 -1
- package/dist/modules/manager/npm/post-update/yarn.js +7 -5
- package/dist/modules/manager/npm/post-update/yarn.js.map +1 -1
- package/dist/modules/manager/npm/schema.d.ts +116 -0
- package/dist/modules/manager/npm/schema.js +9 -0
- package/dist/modules/manager/npm/schema.js.map +1 -1
- package/dist/modules/manager/npm/utils.js +1 -1
- package/dist/modules/manager/npm/utils.js.map +1 -1
- package/dist/modules/manager/nuget/util.js +9 -0
- package/dist/modules/manager/nuget/util.js.map +1 -1
- package/dist/modules/manager/pep621/processors/uv.js +1 -1
- package/dist/modules/manager/pep621/processors/uv.js.map +1 -1
- package/dist/modules/manager/pip-compile/artifacts.js +6 -4
- package/dist/modules/manager/pip-compile/artifacts.js.map +1 -1
- package/dist/modules/manager/pip_requirements/common.js +2 -1
- package/dist/modules/manager/pip_requirements/common.js.map +1 -1
- package/dist/modules/manager/poetry/schema.js +2 -1
- package/dist/modules/manager/poetry/schema.js.map +1 -1
- package/dist/modules/manager/pre-commit/index.js +2 -1
- package/dist/modules/manager/pre-commit/index.js.map +1 -1
- package/dist/modules/manager/renovate-config-presets/index.d.ts +1 -1
- package/dist/modules/manager/renovate-config-presets/index.js +1 -3
- package/dist/modules/manager/renovate-config-presets/index.js.map +1 -1
- package/dist/modules/manager/terraform/extractors/others/modules.js +4 -9
- package/dist/modules/manager/terraform/extractors/others/modules.js.map +1 -1
- package/dist/modules/manager/terraform/extractors/resources/generic-docker-image-ref.d.ts +1 -0
- package/dist/modules/manager/terraform/extractors/resources/generic-docker-image-ref.js +9 -4
- package/dist/modules/manager/terraform/extractors/resources/generic-docker-image-ref.js.map +1 -1
- package/dist/modules/manager/terraform/extractors/resources/utils.d.ts +1 -0
- package/dist/modules/manager/terraform/extractors/resources/utils.js +4 -1
- package/dist/modules/manager/terraform/extractors/resources/utils.js.map +1 -1
- package/dist/modules/manager/terraform/hcl/types.d.ts +1 -0
- package/dist/modules/manager/terraform/hcl/types.js.map +1 -1
- package/dist/modules/manager/types.d.ts +3 -0
- package/dist/modules/manager/types.js.map +1 -1
- package/dist/modules/platform/bitbucket-server/index.js +4 -2
- package/dist/modules/platform/bitbucket-server/index.js.map +1 -1
- package/dist/modules/platform/codecommit/codecommit-client.js +7 -5
- package/dist/modules/platform/codecommit/codecommit-client.js.map +1 -1
- package/dist/modules/platform/codecommit/index.js +7 -5
- package/dist/modules/platform/codecommit/index.js.map +1 -1
- package/dist/modules/platform/default-scm.d.ts +1 -0
- package/dist/modules/platform/default-scm.js +3 -0
- package/dist/modules/platform/default-scm.js.map +1 -1
- package/dist/modules/platform/gerrit/client.d.ts +6 -7
- package/dist/modules/platform/gerrit/client.js +58 -38
- package/dist/modules/platform/gerrit/client.js.map +1 -1
- package/dist/modules/platform/gerrit/index.d.ts +4 -3
- package/dist/modules/platform/gerrit/index.js +103 -42
- package/dist/modules/platform/gerrit/index.js.map +1 -1
- package/dist/modules/platform/gerrit/scm.d.ts +1 -1
- package/dist/modules/platform/gerrit/scm.js +56 -34
- package/dist/modules/platform/gerrit/scm.js.map +1 -1
- package/dist/modules/platform/gerrit/types.d.ts +23 -12
- package/dist/modules/platform/gerrit/types.js.map +1 -1
- package/dist/modules/platform/gerrit/utils.d.ts +8 -4
- package/dist/modules/platform/gerrit/utils.js +24 -12
- package/dist/modules/platform/gerrit/utils.js.map +1 -1
- package/dist/modules/platform/gitea/index.js +7 -2
- package/dist/modules/platform/gitea/index.js.map +1 -1
- package/dist/modules/platform/gitea/types.d.ts +2 -1
- package/dist/modules/platform/gitea/types.js.map +1 -1
- package/dist/modules/platform/github/index.js +12 -26
- package/dist/modules/platform/github/index.js.map +1 -1
- package/dist/modules/platform/gitlab/code-owners.d.ts +2 -0
- package/dist/modules/platform/gitlab/code-owners.js +38 -0
- package/dist/modules/platform/gitlab/code-owners.js.map +1 -0
- package/dist/modules/platform/gitlab/index.d.ts +2 -1
- package/dist/modules/platform/gitlab/index.js +29 -56
- package/dist/modules/platform/gitlab/index.js.map +1 -1
- package/dist/modules/platform/gitlab/pr-cache.d.ts +21 -0
- package/dist/modules/platform/gitlab/pr-cache.js +124 -0
- package/dist/modules/platform/gitlab/pr-cache.js.map +1 -0
- package/dist/modules/platform/gitlab/types.d.ts +7 -0
- package/dist/modules/platform/gitlab/types.js.map +1 -1
- package/dist/modules/platform/gitlab/utils.js +1 -0
- package/dist/modules/platform/gitlab/utils.js.map +1 -1
- package/dist/modules/platform/types.d.ts +8 -0
- package/dist/modules/platform/types.js.map +1 -1
- package/dist/modules/versioning/api.js +2 -0
- package/dist/modules/versioning/api.js.map +1 -1
- package/dist/modules/versioning/cargo/index.js +20 -0
- package/dist/modules/versioning/cargo/index.js.map +1 -1
- package/dist/modules/versioning/composer/index.js +4 -0
- package/dist/modules/versioning/composer/index.js.map +1 -1
- package/dist/modules/versioning/lambda-node/index.d.ts +8 -0
- package/dist/modules/versioning/lambda-node/index.js +27 -0
- package/dist/modules/versioning/lambda-node/index.js.map +1 -0
- package/dist/modules/versioning/lambda-node/schedule.d.ts +10 -0
- package/dist/modules/versioning/lambda-node/schedule.js +19 -0
- package/dist/modules/versioning/lambda-node/schedule.js.map +1 -0
- package/dist/modules/versioning/npm/index.js +2 -0
- package/dist/modules/versioning/npm/index.js.map +1 -1
- package/dist/modules/versioning/npm/range.js +4 -0
- package/dist/modules/versioning/npm/range.js.map +1 -1
- package/dist/modules/versioning/pep440/index.js +1 -1
- package/dist/modules/versioning/pep440/index.js.map +1 -1
- package/dist/modules/versioning/python/index.d.ts +1 -0
- package/dist/modules/versioning/python/index.js +9 -0
- package/dist/modules/versioning/python/index.js.map +1 -1
- package/dist/modules/versioning/semver/index.d.ts +1 -0
- package/dist/modules/versioning/semver/index.js +15 -0
- package/dist/modules/versioning/semver/index.js.map +1 -1
- package/dist/modules/versioning/semver-coerced/index.js +9 -0
- package/dist/modules/versioning/semver-coerced/index.js.map +1 -1
- package/dist/modules/versioning/types.d.ts +1 -0
- package/dist/modules/versioning/types.js.map +1 -1
- package/dist/util/cache/memory/index.d.ts +1 -0
- package/dist/util/cache/memory/index.js +17 -6
- package/dist/util/cache/memory/index.js.map +1 -1
- package/dist/util/cache/package/index.js +2 -1
- package/dist/util/cache/package/index.js.map +1 -1
- package/dist/util/cache/package/key.js +1 -1
- package/dist/util/cache/package/key.js.map +1 -1
- package/dist/util/cache/package/types.d.ts +2 -2
- package/dist/util/cache/package/types.js.map +1 -1
- package/dist/util/cache/repository/impl/s3.js +2 -1
- package/dist/util/cache/repository/impl/s3.js.map +1 -1
- package/dist/util/cache/repository/types.d.ts +3 -0
- package/dist/util/cache/repository/types.js.map +1 -1
- package/dist/util/env.d.ts +6 -0
- package/dist/util/env.js +13 -0
- package/dist/util/env.js.map +1 -1
- package/dist/util/exec/common.js +2 -1
- package/dist/util/exec/common.js.map +1 -1
- package/dist/util/exec/containerbase.js +2 -1
- package/dist/util/exec/containerbase.js.map +1 -1
- package/dist/util/exec/env.js +1 -0
- package/dist/util/exec/env.js.map +1 -1
- package/dist/util/exec/utils.d.ts +1 -1
- package/dist/util/exec/utils.js +1 -1
- package/dist/util/exec/utils.js.map +1 -1
- package/dist/util/fs/index.js +2 -2
- package/dist/util/fs/index.js.map +1 -1
- package/dist/util/git/auth.js +4 -2
- package/dist/util/git/auth.js.map +1 -1
- package/dist/util/git/error.js +2 -1
- package/dist/util/git/error.js.map +1 -1
- package/dist/util/git/index.d.ts +20 -0
- package/dist/util/git/index.js +140 -10
- package/dist/util/git/index.js.map +1 -1
- package/dist/util/git/types.d.ts +1 -0
- package/dist/util/git/types.js.map +1 -1
- package/dist/util/github/graphql/datasource-fetcher.js +2 -3
- package/dist/util/github/graphql/datasource-fetcher.js.map +1 -1
- package/dist/util/github/graphql/query-adapters/tags-query-adapter.d.ts +48 -2
- package/dist/util/github/graphql/query-adapters/tags-query-adapter.js +27 -7
- package/dist/util/github/graphql/query-adapters/tags-query-adapter.js.map +1 -1
- package/dist/util/host-rules.js +4 -3
- package/dist/util/host-rules.js.map +1 -1
- package/dist/util/http/cache/package-http-cache-provider.d.ts +4 -4
- package/dist/util/http/cache/package-http-cache-provider.js +4 -4
- package/dist/util/http/cache/package-http-cache-provider.js.map +1 -1
- package/dist/util/http/github.js +20 -12
- package/dist/util/http/github.js.map +1 -1
- package/dist/util/http/gitlab.js +2 -1
- package/dist/util/http/gitlab.js.map +1 -1
- package/dist/util/http/http.js +7 -3
- package/dist/util/http/http.js.map +1 -1
- package/dist/util/interpolator.d.ts +8 -0
- package/dist/util/interpolator.js +85 -0
- package/dist/util/interpolator.js.map +1 -0
- package/dist/util/merge-confidence/index.js +4 -1
- package/dist/util/merge-confidence/index.js.map +1 -1
- package/dist/util/promises.d.ts +4 -4
- package/dist/util/promises.js +3 -4
- package/dist/util/promises.js.map +1 -1
- package/dist/util/regex.js +3 -2
- package/dist/util/regex.js.map +1 -1
- package/dist/util/{schema-utils.d.ts → schema-utils/index.d.ts} +2 -2
- package/dist/util/{schema-utils.js → schema-utils/index.js} +5 -5
- package/dist/util/schema-utils/index.js.map +1 -0
- package/dist/util/schema-utils/v4.d.ts +7 -0
- package/dist/util/schema-utils/v4.js +64 -0
- package/dist/util/schema-utils/v4.js.map +1 -0
- package/dist/util/stats.d.ts +13 -2
- package/dist/util/stats.js +38 -27
- package/dist/util/stats.js.map +1 -1
- package/dist/workers/global/config/parse/codespaces.js +7 -4
- package/dist/workers/global/config/parse/codespaces.js.map +1 -1
- package/dist/workers/global/index.js +7 -5
- package/dist/workers/global/index.js.map +1 -1
- package/dist/workers/repository/config-migration/branch/migrated-data.js +1 -1
- package/dist/workers/repository/config-migration/branch/migrated-data.js.map +1 -1
- package/dist/workers/repository/dependency-dashboard.d.ts +1 -0
- package/dist/workers/repository/dependency-dashboard.js +47 -0
- package/dist/workers/repository/dependency-dashboard.js.map +1 -1
- package/dist/workers/repository/index.js +1 -0
- package/dist/workers/repository/index.js.map +1 -1
- package/dist/workers/repository/init/inherited.js +10 -6
- package/dist/workers/repository/init/inherited.js.map +1 -1
- package/dist/workers/repository/init/merge.d.ts +2 -2
- package/dist/workers/repository/init/merge.js +12 -5
- package/dist/workers/repository/init/merge.js.map +1 -1
- package/dist/workers/repository/package-files.js +11 -1
- package/dist/workers/repository/package-files.js.map +1 -1
- package/dist/workers/repository/process/extract-update.d.ts +1 -1
- package/dist/workers/repository/process/extract-update.js +15 -10
- package/dist/workers/repository/process/extract-update.js.map +1 -1
- package/dist/workers/repository/process/index.d.ts +1 -1
- package/dist/workers/repository/process/index.js +6 -3
- package/dist/workers/repository/process/index.js.map +1 -1
- package/dist/workers/repository/process/libyear.js +15 -7
- package/dist/workers/repository/process/libyear.js.map +1 -1
- package/dist/workers/repository/process/lookup/abandonment.d.ts +3 -0
- package/dist/workers/repository/process/lookup/abandonment.js +50 -0
- package/dist/workers/repository/process/lookup/abandonment.js.map +1 -0
- package/dist/workers/repository/process/lookup/current.js +0 -5
- package/dist/workers/repository/process/lookup/current.js.map +1 -1
- package/dist/workers/repository/process/lookup/generate.js +10 -0
- package/dist/workers/repository/process/lookup/generate.js.map +1 -1
- package/dist/workers/repository/process/lookup/index.js +7 -0
- package/dist/workers/repository/process/lookup/index.js.map +1 -1
- package/dist/workers/repository/process/lookup/timestamps.d.ts +4 -4
- package/dist/workers/repository/process/lookup/timestamps.js +10 -10
- package/dist/workers/repository/process/lookup/timestamps.js.map +1 -1
- package/dist/workers/repository/process/lookup/types.d.ts +4 -0
- package/dist/workers/repository/process/lookup/types.js.map +1 -1
- package/dist/workers/repository/update/branch/auto-replace.js +30 -7
- package/dist/workers/repository/update/branch/auto-replace.js.map +1 -1
- package/dist/workers/repository/update/branch/bump-versions.d.ts +2 -0
- package/dist/workers/repository/update/branch/bump-versions.js +192 -0
- package/dist/workers/repository/update/branch/bump-versions.js.map +1 -0
- package/dist/workers/repository/update/branch/execute-post-upgrade-commands.js +14 -8
- package/dist/workers/repository/update/branch/execute-post-upgrade-commands.js.map +1 -1
- package/dist/workers/repository/update/branch/get-updated.js +3 -4
- package/dist/workers/repository/update/branch/get-updated.js.map +1 -1
- package/dist/workers/repository/update/branch/index.js +3 -0
- package/dist/workers/repository/update/branch/index.js.map +1 -1
- package/dist/workers/repository/update/pr/changelog/release-notes.js +23 -19
- package/dist/workers/repository/update/pr/changelog/release-notes.js.map +1 -1
- package/dist/workers/repository/update/pr/code-owners.js +13 -9
- package/dist/workers/repository/update/pr/code-owners.js.map +1 -1
- package/dist/workers/repository/updates/generate.js +1 -0
- package/dist/workers/repository/updates/generate.js.map +1 -1
- package/package.json +75 -80
- package/renovate-schema.json +78 -14
- package/dist/util/schema-utils.js.map +0 -1
package/dist/util/git/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.GIT_MINIMUM_VERSION = exports.setPrivateKey = exports.setNoVerify = void 0;
|
3
|
+
exports.GIT_MINIMUM_VERSION = exports.RENOVATE_FORK_UPSTREAM = exports.setPrivateKey = exports.setNoVerify = void 0;
|
4
4
|
exports.gitRetry = gitRetry;
|
5
5
|
exports.validateGitVersion = validateGitVersion;
|
6
6
|
exports.fetchRevSpec = fetchRevSpec;
|
@@ -18,6 +18,9 @@ exports.branchExists = branchExists;
|
|
18
18
|
exports.getBranchCommit = getBranchCommit;
|
19
19
|
exports.getCommitMessages = getCommitMessages;
|
20
20
|
exports.checkoutBranch = checkoutBranch;
|
21
|
+
exports.checkoutBranchFromRemote = checkoutBranchFromRemote;
|
22
|
+
exports.resetHardFromRemote = resetHardFromRemote;
|
23
|
+
exports.forcePushToRemote = forcePushToRemote;
|
21
24
|
exports.getFileList = getFileList;
|
22
25
|
exports.getBranchList = getBranchList;
|
23
26
|
exports.isBranchBehindBase = isBranchBehindBase;
|
@@ -39,6 +42,8 @@ exports.getUrl = getUrl;
|
|
39
42
|
exports.pushCommitToRenovateRef = pushCommitToRenovateRef;
|
40
43
|
exports.clearRenovateRefs = clearRenovateRefs;
|
41
44
|
exports.listCommitTree = listCommitTree;
|
45
|
+
exports.syncForkWithUpstream = syncForkWithUpstream;
|
46
|
+
exports.getRemotes = getRemotes;
|
42
47
|
const tslib_1 = require("tslib");
|
43
48
|
const node_url_1 = tslib_1.__importDefault(require("node:url"));
|
44
49
|
const promises_1 = require("timers/promises");
|
@@ -54,6 +59,7 @@ const logger_1 = require("../../logger");
|
|
54
59
|
const external_host_error_1 = require("../../types/errors/external-host-error");
|
55
60
|
const limits_1 = require("../../workers/global/limits");
|
56
61
|
const repository_1 = require("../cache/repository");
|
62
|
+
const env_1 = require("../env");
|
57
63
|
const regex_1 = require("../regex");
|
58
64
|
const string_match_1 = require("../string-match");
|
59
65
|
const author_1 = require("./author");
|
@@ -71,6 +77,7 @@ Object.defineProperty(exports, "setPrivateKey", { enumerable: true, get: functio
|
|
71
77
|
const retryCount = 5;
|
72
78
|
const delaySeconds = 3;
|
73
79
|
const delayFactor = 2;
|
80
|
+
exports.RENOVATE_FORK_UPSTREAM = 'renovate-fork-upstream';
|
74
81
|
// A generic wrapper for simpleGit.* calls to make them more fault-tolerant
|
75
82
|
async function gitRetry(gitFunc) {
|
76
83
|
let round = 0;
|
@@ -116,6 +123,7 @@ async function isDirectory(dir) {
|
|
116
123
|
}
|
117
124
|
}
|
118
125
|
async function getDefaultBranch(git) {
|
126
|
+
logger_1.logger.debug('getDefaultBranch()');
|
119
127
|
// see https://stackoverflow.com/a/62352647/3005034
|
120
128
|
try {
|
121
129
|
let res = await git.raw(['rev-parse', '--abbrev-ref', 'origin/HEAD']);
|
@@ -134,6 +142,7 @@ async function getDefaultBranch(git) {
|
|
134
142
|
/* v8 ignore start -- TODO: add test */
|
135
143
|
}
|
136
144
|
catch (err) {
|
145
|
+
logger_1.logger.debug({ err }, 'Error getting default branch');
|
137
146
|
const errChecked = (0, error_1.checkForPlatformFailure)(err);
|
138
147
|
if (errChecked) {
|
139
148
|
throw errChecked;
|
@@ -142,7 +151,7 @@ async function getDefaultBranch(git) {
|
|
142
151
|
throw new Error(error_messages_1.REPOSITORY_EMPTY);
|
143
152
|
}
|
144
153
|
if (err.message.includes("fatal: ambiguous argument 'origin/HEAD'")) {
|
145
|
-
logger_1.logger.warn(
|
154
|
+
logger_1.logger.warn('Error getting default branch');
|
146
155
|
throw new Error(error_messages_1.TEMPORARY_ERROR);
|
147
156
|
}
|
148
157
|
throw err;
|
@@ -181,9 +190,11 @@ async function validateGitVersion() {
|
|
181
190
|
logger_1.logger.debug(`Found valid git version: ${version}`);
|
182
191
|
return true;
|
183
192
|
}
|
184
|
-
async function fetchBranchCommits() {
|
193
|
+
async function fetchBranchCommits(preferUpstream = true) {
|
185
194
|
config.branchCommits = {};
|
186
|
-
const
|
195
|
+
const url = preferUpstream && config.upstreamUrl ? config.upstreamUrl : config.url;
|
196
|
+
logger_1.logger.debug(`fetchBranchCommits(): url=${url}`);
|
197
|
+
const opts = ['ls-remote', '--heads', url];
|
187
198
|
if (config.extraCloneOpts) {
|
188
199
|
Object.entries(config.extraCloneOpts).forEach((e) =>
|
189
200
|
// TODO: types (#22198)
|
@@ -223,8 +234,9 @@ async function initRepo(args) {
|
|
223
234
|
config.ignoredAuthors = [];
|
224
235
|
config.additionalBranches = [];
|
225
236
|
config.branchIsModified = {};
|
237
|
+
// TODO: safe to pass all env variables? use `getChildEnv` instead?
|
226
238
|
git = (0, simple_git_1.simpleGit)(global_1.GlobalConfig.get('localDir'), (0, config_1.simpleGitConfig)()).env({
|
227
|
-
...
|
239
|
+
...(0, env_1.getEnv)(),
|
228
240
|
LANG: 'C.UTF-8',
|
229
241
|
LC_ALL: 'C.UTF-8',
|
230
242
|
});
|
@@ -346,7 +358,7 @@ function isCloned() {
|
|
346
358
|
async function syncGit() {
|
347
359
|
if (gitInitialized) {
|
348
360
|
/* v8 ignore next 3 -- TODO: add test */
|
349
|
-
if (
|
361
|
+
if ((0, env_1.getEnv)().RENOVATE_X_CLEAR_HOOKS) {
|
350
362
|
await git.raw(['config', 'core.hooksPath', '/dev/null']);
|
351
363
|
}
|
352
364
|
return;
|
@@ -357,10 +369,11 @@ async function syncGit() {
|
|
357
369
|
}
|
358
370
|
gitInitialized = true;
|
359
371
|
const localDir = global_1.GlobalConfig.get('localDir');
|
360
|
-
logger_1.logger.debug(`Initializing git repository into ${localDir}`);
|
372
|
+
logger_1.logger.debug(`syncGit(): Initializing git repository into ${localDir}`);
|
361
373
|
const gitHead = upath_1.default.join(localDir, '.git/HEAD');
|
362
374
|
let clone = true;
|
363
375
|
if (await fs_extra_1.default.pathExists(gitHead)) {
|
376
|
+
logger_1.logger.debug(`syncGit(): Found existing git repository, attempting git fetch`);
|
364
377
|
try {
|
365
378
|
await git.raw(['remote', 'set-url', 'origin', config.url]);
|
366
379
|
const fetchStart = Date.now();
|
@@ -378,7 +391,7 @@ async function syncGit() {
|
|
378
391
|
if (err.message === error_messages_1.REPOSITORY_EMPTY) {
|
379
392
|
throw err;
|
380
393
|
}
|
381
|
-
logger_1.logger.info({ err }, 'git fetch error');
|
394
|
+
logger_1.logger.info({ err }, 'git fetch error, falling back to git clone');
|
382
395
|
}
|
383
396
|
}
|
384
397
|
if (clone) {
|
@@ -453,6 +466,21 @@ async function syncGit() {
|
|
453
466
|
(await getDefaultBranch(git));
|
454
467
|
/* v8 ignore next -- TODO: add test */
|
455
468
|
delete (0, repository_1.getCache)()?.semanticCommits;
|
469
|
+
// If upstreamUrl is set then the bot is running in fork mode
|
470
|
+
// The "upstream" remote is the original repository which was forked from
|
471
|
+
if (config.upstreamUrl) {
|
472
|
+
logger_1.logger.debug(`Bringing default branch up-to-date with ${exports.RENOVATE_FORK_UPSTREAM}, to get latest config`);
|
473
|
+
// Add remote if it does not exist
|
474
|
+
const remotes = await git.getRemotes(true);
|
475
|
+
if (!remotes.some((remote) => remote.name === exports.RENOVATE_FORK_UPSTREAM)) {
|
476
|
+
logger_1.logger.debug(`Adding remote ${exports.RENOVATE_FORK_UPSTREAM}`);
|
477
|
+
await git.addRemote(exports.RENOVATE_FORK_UPSTREAM, config.upstreamUrl);
|
478
|
+
}
|
479
|
+
await syncForkWithUpstream(config.currentBranch);
|
480
|
+
await fetchBranchCommits(false);
|
481
|
+
}
|
482
|
+
config.currentBranchSha = (await git.revparse('HEAD')).trim();
|
483
|
+
logger_1.logger.debug(`Current branch SHA: ${config.currentBranchSha}`);
|
456
484
|
}
|
457
485
|
async function getRepoStatus(path) {
|
458
486
|
if (is_1.default.string(path)) {
|
@@ -501,7 +529,7 @@ async function checkoutBranch(branchName) {
|
|
501
529
|
config.currentBranchSha = (await git.raw(['rev-parse', 'HEAD'])).trim();
|
502
530
|
const latestCommitDate = (await git.log({ n: 1 }))?.latest?.date;
|
503
531
|
if (latestCommitDate) {
|
504
|
-
logger_1.logger.debug({ branchName, latestCommitDate }, 'latest commit');
|
532
|
+
logger_1.logger.debug({ branchName, latestCommitDate, sha: config.currentBranchSha }, 'latest commit');
|
505
533
|
}
|
506
534
|
await git.reset(simple_git_1.ResetMode.HARD);
|
507
535
|
return config.currentBranchSha;
|
@@ -519,12 +547,56 @@ async function checkoutBranch(branchName) {
|
|
519
547
|
throw err;
|
520
548
|
}
|
521
549
|
}
|
550
|
+
async function checkoutBranchFromRemote(branchName, remoteName) {
|
551
|
+
logger_1.logger.debug(`Checking out branch ${branchName} from remote ${remoteName}`);
|
552
|
+
await syncGit();
|
553
|
+
try {
|
554
|
+
await gitRetry(() => git.checkoutBranch(branchName, `${remoteName}/${branchName}`));
|
555
|
+
config.currentBranch = branchName;
|
556
|
+
config.currentBranchSha = (await git.revparse('HEAD')).trim();
|
557
|
+
logger_1.logger.debug(`Checked out branch ${branchName} from remote ${remoteName}`);
|
558
|
+
config.branchCommits[branchName] = config.currentBranchSha;
|
559
|
+
return config.currentBranchSha;
|
560
|
+
}
|
561
|
+
catch (err) {
|
562
|
+
const errChecked = (0, error_1.checkForPlatformFailure)(err);
|
563
|
+
/* v8 ignore next 3 -- hard to test */
|
564
|
+
if (errChecked) {
|
565
|
+
throw errChecked;
|
566
|
+
}
|
567
|
+
if (err.message?.includes('fatal: ambiguous argument')) {
|
568
|
+
logger_1.logger.warn({ err }, 'Failed to checkout branch');
|
569
|
+
throw new Error(error_messages_1.TEMPORARY_ERROR);
|
570
|
+
}
|
571
|
+
throw err;
|
572
|
+
}
|
573
|
+
}
|
574
|
+
async function resetHardFromRemote(remoteAndBranch) {
|
575
|
+
try {
|
576
|
+
const resetLog = await git.reset(['--hard', remoteAndBranch]);
|
577
|
+
logger_1.logger.debug({ resetLog }, 'git reset log');
|
578
|
+
}
|
579
|
+
catch (err) {
|
580
|
+
logger_1.logger.error({ err }, 'Error during git reset --hard');
|
581
|
+
throw err;
|
582
|
+
}
|
583
|
+
}
|
584
|
+
async function forcePushToRemote(branchName, remote) {
|
585
|
+
try {
|
586
|
+
const pushLog = await git.push([remote, branchName, '--force']);
|
587
|
+
logger_1.logger.debug({ pushLog }, 'git push log');
|
588
|
+
}
|
589
|
+
catch (err) {
|
590
|
+
logger_1.logger.error({ err }, 'Error during git push --force');
|
591
|
+
throw err;
|
592
|
+
}
|
593
|
+
}
|
522
594
|
async function getFileList() {
|
523
595
|
await syncGit();
|
524
596
|
const branch = config.currentBranch;
|
525
597
|
let files;
|
526
598
|
try {
|
527
|
-
files = await git.raw(['ls-tree', '-r', branch]);
|
599
|
+
files = await git.raw(['ls-tree', '-r', `refs/heads/${branch}`]);
|
528
600
|
/* v8 ignore next 10 -- TODO: add test */
|
529
601
|
}
|
530
602
|
catch (err) {
|
@@ -1184,4 +1256,62 @@ async function listCommitTree(commitSha) {
|
|
1184
1256
|
}
|
1185
1257
|
return result;
|
1186
1258
|
}
|
1259
|
+
async function localBranchExists(branchName) {
|
1260
|
+
await syncGit();
|
1261
|
+
const localBranches = await git.branchLocal();
|
1262
|
+
return localBranches.all.includes(branchName);
|
1263
|
+
}
|
1264
|
+
/**
|
1265
|
+
* Synchronize a forked branch with its upstream counterpart.
|
1266
|
+
*
|
1267
|
+
* syncForkWithUpstream updates the fork's branch, to match the corresponding branch in the upstream repository.
|
1268
|
+
* The steps are:
|
1269
|
+
* 1. Check if the branch exists locally.
|
1270
|
+
* 2. If the branch exists locally: checkout the local branch.
|
1271
|
+
* 3. If the branch does _not_ exist locally: checkout the upstream branch.
|
1272
|
+
* 4. Reset the local branch to match the upstream branch.
|
1273
|
+
* 5. Force push the (updated) local branch to the origin repository.
|
1274
|
+
*
|
1275
|
+
* @param {string} branchName - The name of the branch to synchronize.
|
1276
|
+
* @returns A promise that resolves to True if the synchronization is successful, or `false` if an error occurs.
|
1277
|
+
*/
|
1278
|
+
async function syncForkWithUpstream(branchName) {
|
1279
|
+
if (!config.upstreamUrl) {
|
1280
|
+
return;
|
1281
|
+
}
|
1282
|
+
logger_1.logger.debug(`Synchronizing fork with "${exports.RENOVATE_FORK_UPSTREAM}" remote for branch ${branchName}`);
|
1283
|
+
const remotes = await getRemotes();
|
1284
|
+
/* v8 ignore next 3 -- this should not be possible if upstreamUrl exists */
|
1285
|
+
if (!remotes.some((r) => r === exports.RENOVATE_FORK_UPSTREAM)) {
|
1286
|
+
throw new Error('No upstream remote exists, cannot sync fork');
|
1287
|
+
}
|
1288
|
+
try {
|
1289
|
+
await git.fetch([exports.RENOVATE_FORK_UPSTREAM]);
|
1290
|
+
if (await localBranchExists(branchName)) {
|
1291
|
+
await checkoutBranch(branchName);
|
1292
|
+
}
|
1293
|
+
else {
|
1294
|
+
await checkoutBranchFromRemote(branchName, exports.RENOVATE_FORK_UPSTREAM);
|
1295
|
+
}
|
1296
|
+
await resetHardFromRemote(`${exports.RENOVATE_FORK_UPSTREAM}/${branchName}`);
|
1297
|
+
await forcePushToRemote(branchName, 'origin');
|
1298
|
+
}
|
1299
|
+
catch (err) /* v8 ignore next 3 -- shouldn't happen */ {
|
1300
|
+
logger_1.logger.error({ err }, 'Error synchronizing fork');
|
1301
|
+
throw new Error(error_messages_1.UNKNOWN_ERROR);
|
1302
|
+
}
|
1303
|
+
}
|
1304
|
+
async function getRemotes() {
|
1305
|
+
logger_1.logger.debug('git.getRemotes()');
|
1306
|
+
try {
|
1307
|
+
await syncGit();
|
1308
|
+
const remotes = await git.getRemotes();
|
1309
|
+
logger_1.logger.debug(`Found remotes: ${remotes.map((r) => r.name).join(', ')}`);
|
1310
|
+
return remotes.map((remote) => remote.name);
|
1311
|
+
}
|
1312
|
+
catch (err) /* v8 ignore start */ {
|
1313
|
+
logger_1.logger.error({ err }, 'Error getting remotes');
|
1314
|
+
throw err;
|
1315
|
+
} /* v8 ignore stop */
|
1316
|
+
}
|
1187
1317
|
//# sourceMappingURL=index.js.map
|