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
@@ -0,0 +1,38 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.extractRulesFromCodeOwnersLines = extractRulesFromCodeOwnersLines;
|
4
|
+
const tslib_1 = require("tslib");
|
5
|
+
const ignore_1 = tslib_1.__importDefault(require("ignore"));
|
6
|
+
const regex_1 = require("../../../util/regex");
|
7
|
+
function extractRulesFromCodeOwnersLines(cleanedLines) {
|
8
|
+
let currentSection = { name: '', defaultUsers: [] };
|
9
|
+
const internalRules = [];
|
10
|
+
for (const line of cleanedLines) {
|
11
|
+
if (isSectionHeader(line)) {
|
12
|
+
currentSection = changeCurrentSection(line);
|
13
|
+
}
|
14
|
+
else {
|
15
|
+
const rule = extractOwnersFromLine(line, currentSection.defaultUsers);
|
16
|
+
internalRules.push(rule);
|
17
|
+
}
|
18
|
+
}
|
19
|
+
return internalRules;
|
20
|
+
}
|
21
|
+
function changeCurrentSection(line) {
|
22
|
+
const [name, ...usernames] = line.split((0, regex_1.regEx)(/\s+/));
|
23
|
+
return { name, defaultUsers: usernames };
|
24
|
+
}
|
25
|
+
function extractOwnersFromLine(line, defaultUsernames) {
|
26
|
+
const [pattern, ...usernames] = line.split((0, regex_1.regEx)(/\s+/));
|
27
|
+
const matchPattern = (0, ignore_1.default)().add(pattern);
|
28
|
+
return {
|
29
|
+
usernames: usernames.length > 0 ? usernames : defaultUsernames,
|
30
|
+
pattern,
|
31
|
+
score: pattern.length,
|
32
|
+
match: (path) => matchPattern.ignores(path),
|
33
|
+
};
|
34
|
+
}
|
35
|
+
function isSectionHeader(line) {
|
36
|
+
return line.startsWith('[') || line.startsWith('^[');
|
37
|
+
}
|
38
|
+
//# sourceMappingURL=code-owners.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"code-owners.js","sourceRoot":"","sources":["../../../../lib/modules/platform/gitlab/code-owners.ts"],"names":[],"mappings":";;AASA,0EAgBC;;AAzBD,4DAA4B;AAC5B,+CAA4C;AAQ5C,SAAgB,+BAA+B,CAC7C,YAAsB;IAEtB,IAAI,cAAc,GAAsB,EAAE,IAAI,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC;IACvE,MAAM,aAAa,GAAG,EAAE,CAAC;IAEzB,KAAK,MAAM,IAAI,IAAI,YAAY,EAAE,CAAC;QAChC,IAAI,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC;YAC1B,cAAc,GAAG,oBAAoB,CAAC,IAAI,CAAC,CAAC;QAC9C,CAAC;aAAM,CAAC;YACN,MAAM,IAAI,GAAG,qBAAqB,CAAC,IAAI,EAAE,cAAc,CAAC,YAAY,CAAC,CAAC;YACtE,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC3B,CAAC;IACH,CAAC;IAED,OAAO,aAAa,CAAC;AACvB,CAAC;AAED,SAAS,oBAAoB,CAAC,IAAY;IACxC,MAAM,CAAC,IAAI,EAAE,GAAG,SAAS,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAA,aAAK,EAAC,KAAK,CAAC,CAAC,CAAC;IACtD,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,SAAS,EAAE,CAAC;AAC3C,CAAC;AAED,SAAS,qBAAqB,CAC5B,IAAY,EACZ,gBAA0B;IAE1B,MAAM,CAAC,OAAO,EAAE,GAAG,SAAS,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAA,aAAK,EAAC,KAAK,CAAC,CAAC,CAAC;IACzD,MAAM,YAAY,GAAG,IAAA,gBAAM,GAAE,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAC3C,OAAO;QACL,SAAS,EAAE,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,gBAAgB;QAC9D,OAAO;QACP,KAAK,EAAE,OAAO,CAAC,MAAM;QACrB,KAAK,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC;KACpD,CAAC;AACJ,CAAC;AAED,SAAS,eAAe,CAAC,IAAY;IACnC,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;AACvD,CAAC","sourcesContent":["import ignore from 'ignore';\nimport { regEx } from '../../../util/regex';\nimport type { FileOwnerRule } from '../types';\n\ninterface CodeOwnersSection {\n name: string;\n defaultUsers: string[];\n}\n\nexport function extractRulesFromCodeOwnersLines(\n cleanedLines: string[],\n): FileOwnerRule[] {\n let currentSection: CodeOwnersSection = { name: '', defaultUsers: [] };\n const internalRules = [];\n\n for (const line of cleanedLines) {\n if (isSectionHeader(line)) {\n currentSection = changeCurrentSection(line);\n } else {\n const rule = extractOwnersFromLine(line, currentSection.defaultUsers);\n internalRules.push(rule);\n }\n }\n\n return internalRules;\n}\n\nfunction changeCurrentSection(line: string): CodeOwnersSection {\n const [name, ...usernames] = line.split(regEx(/\\s+/));\n return { name, defaultUsers: usernames };\n}\n\nfunction extractOwnersFromLine(\n line: string,\n defaultUsernames: string[],\n): FileOwnerRule {\n const [pattern, ...usernames] = line.split(regEx(/\\s+/));\n const matchPattern = ignore().add(pattern);\n return {\n usernames: usernames.length > 0 ? usernames : defaultUsernames,\n pattern,\n score: pattern.length,\n match: (path: string) => matchPattern.ignores(path),\n };\n}\n\nfunction isSectionHeader(line: string): boolean {\n return line.startsWith('[') || line.startsWith('^[');\n}\n"]}
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import type { BranchStatus } from '../../../types';
|
2
2
|
import type { AutodiscoverConfig, BranchStatusConfig, CreatePRConfig, EnsureCommentConfig, EnsureCommentRemovalConfig, EnsureIssueConfig, FindPRConfig, Issue, MergePRConfig, PlatformParams, PlatformResult, Pr, ReattemptPlatformAutomergeConfig, RepoParams, RepoResult, UpdatePrConfig } from '../types';
|
3
3
|
import type { GitlabIssue, GitlabPr } from './types';
|
4
|
+
export { extractRulesFromCodeOwnersLines } from './code-owners';
|
4
5
|
export declare function resetPlatform(): void;
|
5
6
|
export declare const id = "gitlab";
|
6
|
-
export declare function initPlatform({ endpoint, token, gitAuthor, }: PlatformParams): Promise<PlatformResult>;
|
7
|
+
export declare function initPlatform({ endpoint, username, token, gitAuthor, }: PlatformParams): Promise<PlatformResult>;
|
7
8
|
export declare function getRepos(config?: AutodiscoverConfig): Promise<string[]>;
|
8
9
|
export declare function getRawFile(fileName: string, repoName?: string, branchOrTag?: string): Promise<string | null>;
|
9
10
|
export declare function getJsonFile(fileName: string, repoName?: string, branchOrTag?: string): Promise<any>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.id = void 0;
|
3
|
+
exports.id = exports.extractRulesFromCodeOwnersLines = void 0;
|
4
4
|
exports.resetPlatform = resetPlatform;
|
5
5
|
exports.initPlatform = initPlatform;
|
6
6
|
exports.getRepos = getRepos;
|
@@ -44,6 +44,7 @@ const error_messages_1 = require("../../../constants/error-messages");
|
|
44
44
|
const logger_1 = require("../../../logger");
|
45
45
|
const array_1 = require("../../../util/array");
|
46
46
|
const common_1 = require("../../../util/common");
|
47
|
+
const env_1 = require("../../../util/env");
|
47
48
|
const git = tslib_1.__importStar(require("../../../util/git"));
|
48
49
|
const hostRules = tslib_1.__importStar(require("../../../util/host-rules"));
|
49
50
|
const memory_http_cache_provider_1 = require("../../../util/http/cache/memory-http-cache-provider");
|
@@ -57,8 +58,11 @@ const util_1 = require("../util");
|
|
57
58
|
const pr_body_1 = require("../utils/pr-body");
|
58
59
|
const http_1 = require("./http");
|
59
60
|
const merge_request_1 = require("./merge-request");
|
61
|
+
const pr_cache_1 = require("./pr-cache");
|
60
62
|
const schema_1 = require("./schema");
|
61
63
|
const utils_1 = require("./utils");
|
64
|
+
var code_owners_1 = require("./code-owners");
|
65
|
+
Object.defineProperty(exports, "extractRulesFromCodeOwnersLines", { enumerable: true, get: function () { return code_owners_1.extractRulesFromCodeOwnersLines; } });
|
62
66
|
let config = {};
|
63
67
|
function resetPlatform() {
|
64
68
|
config = {};
|
@@ -75,7 +79,8 @@ const defaults = {
|
|
75
79
|
};
|
76
80
|
exports.id = 'gitlab';
|
77
81
|
let draftPrefix = utils_1.DRAFT_PREFIX;
|
78
|
-
|
82
|
+
let botUserName;
|
83
|
+
async function initPlatform({ endpoint, username, token, gitAuthor, }) {
|
79
84
|
if (!token) {
|
80
85
|
throw new Error('Init: You must configure a GitLab personal access token');
|
81
86
|
}
|
@@ -94,10 +99,12 @@ async function initPlatform({ endpoint, token, gitAuthor, }) {
|
|
94
99
|
if (!gitAuthor) {
|
95
100
|
const user = (await http_1.gitlabApi.getJsonUnchecked(`user`, { token })).body;
|
96
101
|
platformConfig.gitAuthor = `${user.name} <${user.commit_email ?? user.email}>`;
|
102
|
+
botUserName = user.name;
|
97
103
|
}
|
104
|
+
const env = (0, env_1.getEnv)();
|
98
105
|
/* v8 ignore start: experimental feature */
|
99
|
-
if (
|
100
|
-
gitlabVersion =
|
106
|
+
if (env.RENOVATE_X_PLATFORM_VERSION) {
|
107
|
+
gitlabVersion = env.RENOVATE_X_PLATFORM_VERSION;
|
101
108
|
} /* v8 ignore stop */
|
102
109
|
else {
|
103
110
|
const version = (await http_1.gitlabApi.getJsonUnchecked('version', {
|
@@ -117,6 +124,7 @@ async function initPlatform({ endpoint, token, gitAuthor, }) {
|
|
117
124
|
draftPrefix = semver_1.default.lt(defaults.version, '13.2.0')
|
118
125
|
? utils_1.DRAFT_PREFIX_DEPRECATED
|
119
126
|
: utils_1.DRAFT_PREFIX;
|
127
|
+
botUserName ??= username;
|
120
128
|
return platformConfig;
|
121
129
|
}
|
122
130
|
// Get all repositories that the user has access to
|
@@ -188,13 +196,14 @@ function getRepoUrl(repository, gitUrl, res) {
|
|
188
196
|
hostType: defaults.hostType,
|
189
197
|
url: defaults.endpoint,
|
190
198
|
});
|
199
|
+
const env = (0, env_1.getEnv)();
|
191
200
|
if (gitUrl === 'endpoint' ||
|
192
|
-
is_1.default.nonEmptyString(
|
201
|
+
is_1.default.nonEmptyString(env.GITLAB_IGNORE_REPO_URL) ||
|
193
202
|
res.body.http_url_to_repo === null) {
|
194
203
|
if (res.body.http_url_to_repo === null) {
|
195
204
|
logger_1.logger.debug('no http_url_to_repo found. Falling back to old behavior.');
|
196
205
|
}
|
197
|
-
if (
|
206
|
+
if (env.GITLAB_IGNORE_REPO_URL) {
|
198
207
|
logger_1.logger.warn('GITLAB_IGNORE_REPO_URL environment variable is deprecated. Please use "gitUrl" option.');
|
199
208
|
}
|
200
209
|
// TODO: null check (#22198)
|
@@ -260,7 +269,6 @@ async function initRepo({ repository, cloneSubmodules, cloneSubmodulesFilter, ig
|
|
260
269
|
res.body.squash_option === 'default_on';
|
261
270
|
}
|
262
271
|
logger_1.logger.debug(`${repository} default branch = ${config.defaultBranch}`);
|
263
|
-
delete config.prList;
|
264
272
|
logger_1.logger.debug('Enabling Git FS');
|
265
273
|
const url = getRepoUrl(repository, gitUrl, res);
|
266
274
|
await git.initRepo({
|
@@ -390,33 +398,8 @@ async function getBranchStatus(branchName, internalChecksAsSuccess) {
|
|
390
398
|
return status;
|
391
399
|
}
|
392
400
|
// Pull Request
|
393
|
-
async function fetchPrList() {
|
394
|
-
const searchParams = {
|
395
|
-
per_page: '100',
|
396
|
-
};
|
397
|
-
/* v8 ignore start */
|
398
|
-
if (!config.ignorePrAuthor) {
|
399
|
-
searchParams.scope = 'created_by_me';
|
400
|
-
} /* v8 ignore stop */
|
401
|
-
const query = (0, url_1.getQueryString)(searchParams);
|
402
|
-
const urlString = `projects/${config.repository}/merge_requests?${query}`;
|
403
|
-
try {
|
404
|
-
const res = await http_1.gitlabApi.getJsonUnchecked(urlString, {
|
405
|
-
paginate: true,
|
406
|
-
});
|
407
|
-
return res.body.map((pr) => (0, utils_1.prInfo)(pr));
|
408
|
-
}
|
409
|
-
catch (err) /* v8 ignore start */ {
|
410
|
-
logger_1.logger.debug({ err }, 'Error fetching PR list');
|
411
|
-
if (err.statusCode === 403) {
|
412
|
-
throw new Error(error_messages_1.PLATFORM_AUTHENTICATION_ERROR);
|
413
|
-
}
|
414
|
-
throw err;
|
415
|
-
} /* v8 ignore stop */
|
416
|
-
}
|
417
401
|
async function getPrList() {
|
418
|
-
config.
|
419
|
-
return config.prList;
|
402
|
+
return await pr_cache_1.GitlabPrCache.getPrs(http_1.gitlabApi, config.repository, botUserName, !!config.ignorePrAuthor);
|
420
403
|
}
|
421
404
|
async function ignoreApprovals(pr) {
|
422
405
|
try {
|
@@ -470,9 +453,10 @@ async function tryPrAutomerge(pr, platformPrOptions) {
|
|
470
453
|
'running', // pipeline is running, no need to wait for it
|
471
454
|
];
|
472
455
|
const desiredStatus = 'can_be_merged';
|
456
|
+
const env = (0, env_1.getEnv)();
|
473
457
|
// The default value of 5 attempts results in max. 13.75 seconds timeout if no pipeline created.
|
474
|
-
const retryTimes = (0, number_1.parseInteger)(
|
475
|
-
const mergeDelay = (0, number_1.parseInteger)(
|
458
|
+
const retryTimes = (0, number_1.parseInteger)(env.RENOVATE_X_GITLAB_AUTO_MERGEABLE_CHECK_ATTEMPS, 5);
|
459
|
+
const mergeDelay = (0, number_1.parseInteger)(env.RENOVATE_X_GITLAB_MERGE_REQUEST_DELAY, 250);
|
476
460
|
// Check for correct merge request status before setting `merge_when_pipeline_succeeds` to `true`.
|
477
461
|
for (let attempt = 1; attempt <= retryTimes; attempt += 1) {
|
478
462
|
const { body } = await http_1.gitlabApi.getJsonUnchecked(`projects/${config.repository}/merge_requests/${pr}`, {
|
@@ -516,9 +500,10 @@ async function tryPrAutomerge(pr, platformPrOptions) {
|
|
516
500
|
logger_1.logger.debug({ err }, 'Automerge on PR creation failed');
|
517
501
|
} /* v8 ignore stop */
|
518
502
|
}
|
519
|
-
async function
|
503
|
+
async function approveMr(mrNumber) {
|
504
|
+
logger_1.logger.debug(`approveMr(${mrNumber})`);
|
520
505
|
try {
|
521
|
-
await http_1.gitlabApi.postJson(`projects/${config.repository}/merge_requests/${
|
506
|
+
await http_1.gitlabApi.postJson(`projects/${config.repository}/merge_requests/${mrNumber}/approve`);
|
522
507
|
}
|
523
508
|
catch (err) {
|
524
509
|
logger_1.logger.warn({ err }, 'GitLab: Error approving merge request');
|
@@ -543,12 +528,9 @@ async function createPr({ sourceBranch, targetBranch, prTitle, prBody: rawDescri
|
|
543
528
|
},
|
544
529
|
});
|
545
530
|
const pr = (0, utils_1.prInfo)(res.body);
|
546
|
-
|
547
|
-
if (config.prList) {
|
548
|
-
config.prList.push(pr);
|
549
|
-
} /* v8 ignore stop */
|
531
|
+
await pr_cache_1.GitlabPrCache.setPr(http_1.gitlabApi, config.repository, botUserName, pr, !!config.ignorePrAuthor);
|
550
532
|
if (platformPrOptions?.autoApprove) {
|
551
|
-
await
|
533
|
+
await approveMr(pr.number);
|
552
534
|
}
|
553
535
|
await tryPrAutomerge(pr.number, platformPrOptions);
|
554
536
|
return pr;
|
@@ -585,19 +567,9 @@ async function updatePr({ number: iid, prTitle, prBody: description, addLabels,
|
|
585
567
|
}
|
586
568
|
const updatedPrInfo = (await http_1.gitlabApi.putJson(`projects/${config.repository}/merge_requests/${iid}`, { body })).body;
|
587
569
|
const updatedPr = (0, utils_1.prInfo)(updatedPrInfo);
|
588
|
-
|
589
|
-
const existingIndex = config.prList.findIndex((pr) => pr.number === updatedPr.number);
|
590
|
-
/* v8 ignore start: should not happen */
|
591
|
-
if (existingIndex === -1) {
|
592
|
-
logger_1.logger.warn({ pr: updatedPr }, 'Possible error: Updated PR was not found in the PRs that were returned from getPrList().');
|
593
|
-
config.prList.push(updatedPr);
|
594
|
-
} /* v8 ignore stop */
|
595
|
-
else {
|
596
|
-
config.prList[existingIndex] = updatedPr;
|
597
|
-
}
|
598
|
-
}
|
570
|
+
await pr_cache_1.GitlabPrCache.setPr(http_1.gitlabApi, config.repository, botUserName, updatedPr, !!config.ignorePrAuthor);
|
599
571
|
if (platformPrOptions?.autoApprove) {
|
600
|
-
await
|
572
|
+
await approveMr(iid);
|
601
573
|
}
|
602
574
|
}
|
603
575
|
async function reattemptPlatformAutomerge({ number: iid, platformPrOptions, }) {
|
@@ -722,7 +694,8 @@ async function setBranchStatus({ branchName, context, description, state: renova
|
|
722
694
|
if (targetUrl) {
|
723
695
|
options.target_url = targetUrl;
|
724
696
|
}
|
725
|
-
const
|
697
|
+
const env = (0, env_1.getEnv)();
|
698
|
+
const retryTimes = (0, number_1.parseInteger)(env.RENOVATE_X_GITLAB_BRANCH_STATUS_CHECK_ATTEMPTS, 2);
|
726
699
|
try {
|
727
700
|
for (let attempt = 1; attempt <= retryTimes + 1; attempt += 1) {
|
728
701
|
const commitUrl = `projects/${config.repository}/repository/commits/${branchSha}`;
|
@@ -741,7 +714,7 @@ async function setBranchStatus({ branchName, context, description, state: renova
|
|
741
714
|
logger_1.logger.debug(`Pipeline not yet created. Retrying ${attempt}`);
|
742
715
|
}
|
743
716
|
// give gitlab some time to create pipelines for the sha
|
744
|
-
await (0, promises_1.setTimeout)((0, number_1.parseInteger)(
|
717
|
+
await (0, promises_1.setTimeout)((0, number_1.parseInteger)(env.RENOVATE_X_GITLAB_BRANCH_STATUS_DELAY, 1000));
|
745
718
|
}
|
746
719
|
}
|
747
720
|
catch (err) {
|