renovate 40.0.0-next.26 → 40.0.0-next.27
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 +1 -1
- package/dist/config/decrypt.js.map +1 -1
- package/dist/config/migrate-validate.js +2 -2
- package/dist/config/migrate-validate.js.map +1 -1
- package/dist/config/migration.js +1 -1
- package/dist/config/migration.js.map +1 -1
- package/dist/config/options/index.js +2 -1
- package/dist/config/options/index.js.map +1 -1
- package/dist/config/presets/internal/group.js +30 -1
- package/dist/config/presets/internal/group.js.map +1 -1
- package/dist/config/presets/internal/workarounds.js +1 -0
- package/dist/config/presets/internal/workarounds.js.map +1 -1
- package/dist/config/presets/parse.js +2 -1
- package/dist/config/presets/parse.js.map +1 -1
- package/dist/config/types.d.ts +4 -1
- package/dist/config/types.js.map +1 -1
- package/dist/config/validation.js +2 -2
- package/dist/config/validation.js.map +1 -1
- package/dist/data/monorepo.json +3 -0
- package/dist/data/source-urls.json +1 -0
- package/dist/instrumentation/index.js +14 -12
- package/dist/instrumentation/index.js.map +1 -1
- package/dist/logger/index.js +1 -1
- package/dist/logger/index.js.map +1 -1
- package/dist/logger/once.js +2 -2
- package/dist/logger/once.js.map +1 -1
- package/dist/logger/renovate-logger.js +1 -1
- package/dist/logger/renovate-logger.js.map +1 -1
- package/dist/logger/utils.js +1 -1
- package/dist/logger/utils.js.map +1 -1
- package/dist/modules/datasource/api.js +2 -0
- package/dist/modules/datasource/api.js.map +1 -1
- package/dist/modules/datasource/artifactory/index.js +0 -1
- package/dist/modules/datasource/artifactory/index.js.map +1 -1
- package/dist/modules/datasource/aws-eks-addon/index.d.ts +11 -0
- package/dist/modules/datasource/aws-eks-addon/index.js +75 -0
- package/dist/modules/datasource/aws-eks-addon/index.js.map +1 -0
- package/dist/modules/datasource/aws-eks-addon/schema.d.ts +40 -0
- package/dist/modules/datasource/aws-eks-addon/schema.js +31 -0
- package/dist/modules/datasource/aws-eks-addon/schema.js.map +1 -0
- package/dist/modules/datasource/aws-machine-image/index.js +6 -5
- package/dist/modules/datasource/aws-machine-image/index.js.map +1 -1
- package/dist/modules/datasource/bazel/index.js +0 -1
- package/dist/modules/datasource/bazel/index.js.map +1 -1
- package/dist/modules/datasource/bitrise/index.js +1 -1
- package/dist/modules/datasource/bitrise/index.js.map +1 -1
- package/dist/modules/datasource/cdnjs/schema.d.ts +2 -2
- package/dist/modules/datasource/conda/index.js +18 -1
- package/dist/modules/datasource/conda/index.js.map +1 -1
- package/dist/modules/datasource/conda/prefix-dev.d.ts +3 -0
- package/dist/modules/datasource/conda/prefix-dev.js +83 -0
- package/dist/modules/datasource/conda/prefix-dev.js.map +1 -0
- package/dist/modules/datasource/conda/schema/prefix-dev.d.ts +189 -0
- package/dist/modules/datasource/conda/schema/prefix-dev.js +31 -0
- package/dist/modules/datasource/conda/schema/prefix-dev.js.map +1 -0
- package/dist/modules/datasource/conda/types.d.ts +1 -20
- package/dist/modules/datasource/conda/types.js.map +1 -1
- package/dist/modules/datasource/cpan/index.js +1 -1
- package/dist/modules/datasource/cpan/index.js.map +1 -1
- package/dist/modules/datasource/crate/index.js +2 -2
- package/dist/modules/datasource/crate/index.js.map +1 -1
- package/dist/modules/datasource/custom/index.js +4 -2
- package/dist/modules/datasource/custom/index.js.map +1 -1
- package/dist/modules/datasource/custom/schema.d.ts +27 -27
- package/dist/modules/datasource/custom/utils.js +1 -0
- package/dist/modules/datasource/custom/utils.js.map +1 -1
- package/dist/modules/datasource/dart/index.js +1 -1
- package/dist/modules/datasource/dart/index.js.map +1 -1
- package/dist/modules/datasource/dart-version/index.js +1 -1
- package/dist/modules/datasource/dart-version/index.js.map +1 -1
- package/dist/modules/datasource/datasource.js +0 -1
- package/dist/modules/datasource/datasource.js.map +1 -1
- package/dist/modules/datasource/deb/index.js +1 -1
- package/dist/modules/datasource/deb/index.js.map +1 -1
- package/dist/modules/datasource/deno/index.js +1 -1
- package/dist/modules/datasource/deno/index.js.map +1 -1
- package/dist/modules/datasource/deno/schema.d.ts +7 -7
- package/dist/modules/datasource/devbox/index.js +0 -1
- package/dist/modules/datasource/devbox/index.js.map +1 -1
- package/dist/modules/datasource/docker/common.js +4 -1
- package/dist/modules/datasource/docker/common.js.map +1 -1
- package/dist/modules/datasource/docker/index.js +5 -5
- package/dist/modules/datasource/docker/index.js.map +1 -1
- package/dist/modules/datasource/docker/schema.d.ts +27 -27
- package/dist/modules/datasource/docker/schema.js +2 -1
- package/dist/modules/datasource/docker/schema.js.map +1 -1
- package/dist/modules/datasource/flutter-version/index.js +1 -1
- package/dist/modules/datasource/flutter-version/index.js.map +1 -1
- package/dist/modules/datasource/galaxy-collection/schema.d.ts +5 -5
- package/dist/modules/datasource/git-refs/index.js +1 -1
- package/dist/modules/datasource/git-refs/index.js.map +1 -1
- package/dist/modules/datasource/gitea-releases/schema.d.ts +6 -6
- package/dist/modules/datasource/gitlab-packages/index.js +1 -1
- package/dist/modules/datasource/gitlab-packages/index.js.map +1 -1
- package/dist/modules/datasource/gitlab-releases/index.js +1 -3
- package/dist/modules/datasource/gitlab-releases/index.js.map +1 -1
- package/dist/modules/datasource/go/index.js +1 -1
- package/dist/modules/datasource/go/index.js.map +1 -1
- package/dist/modules/datasource/go/releases-direct.js +7 -4
- package/dist/modules/datasource/go/releases-direct.js.map +1 -1
- package/dist/modules/datasource/golang-version/index.js +1 -1
- package/dist/modules/datasource/golang-version/index.js.map +1 -1
- package/dist/modules/datasource/gradle-version/index.js +1 -1
- package/dist/modules/datasource/gradle-version/index.js.map +1 -1
- package/dist/modules/datasource/helm/index.js +1 -1
- package/dist/modules/datasource/helm/index.js.map +1 -1
- package/dist/modules/datasource/hex/index.js +1 -1
- package/dist/modules/datasource/hex/index.js.map +1 -1
- package/dist/modules/datasource/index.js +2 -2
- package/dist/modules/datasource/index.js.map +1 -1
- package/dist/modules/datasource/java-version/index.js +0 -1
- package/dist/modules/datasource/java-version/index.js.map +1 -1
- package/dist/modules/datasource/jenkins-plugins/index.js +1 -1
- package/dist/modules/datasource/jenkins-plugins/index.js.map +1 -1
- package/dist/modules/datasource/maven/index.js +35 -27
- package/dist/modules/datasource/maven/index.js.map +1 -1
- package/dist/modules/datasource/maven/types.d.ts +3 -6
- package/dist/modules/datasource/maven/types.js.map +1 -1
- package/dist/modules/datasource/maven/util.d.ts +4 -5
- package/dist/modules/datasource/maven/util.js +93 -156
- package/dist/modules/datasource/maven/util.js.map +1 -1
- package/dist/modules/datasource/node-version/index.js +1 -1
- package/dist/modules/datasource/node-version/index.js.map +1 -1
- package/dist/modules/datasource/npm/index.js +1 -1
- package/dist/modules/datasource/npm/index.js.map +1 -1
- package/dist/modules/datasource/npm/npmrc.js +1 -1
- package/dist/modules/datasource/npm/npmrc.js.map +1 -1
- package/dist/modules/datasource/nuget/index.js +1 -1
- package/dist/modules/datasource/nuget/index.js.map +1 -1
- package/dist/modules/datasource/nuget/v3.js +5 -5
- package/dist/modules/datasource/nuget/v3.js.map +1 -1
- package/dist/modules/datasource/orb/index.js +1 -1
- package/dist/modules/datasource/orb/index.js.map +1 -1
- package/dist/modules/datasource/packagist/index.js +2 -2
- package/dist/modules/datasource/packagist/index.js.map +1 -1
- package/dist/modules/datasource/packagist/schema.d.ts +18 -18
- package/dist/modules/datasource/pod/index.js +1 -1
- package/dist/modules/datasource/pod/index.js.map +1 -1
- package/dist/modules/datasource/postprocess-release.js +1 -1
- package/dist/modules/datasource/postprocess-release.js.map +1 -1
- package/dist/modules/datasource/python-version/index.js +1 -1
- package/dist/modules/datasource/python-version/index.js.map +1 -1
- package/dist/modules/datasource/repology/index.js +1 -1
- package/dist/modules/datasource/repology/index.js.map +1 -1
- package/dist/modules/datasource/rubygems/index.js +1 -1
- package/dist/modules/datasource/rubygems/index.js.map +1 -1
- package/dist/modules/datasource/sbt-package/index.js +1 -1
- package/dist/modules/datasource/sbt-package/index.js.map +1 -1
- package/dist/modules/datasource/sbt-plugin/index.js +1 -1
- package/dist/modules/datasource/sbt-plugin/index.js.map +1 -1
- package/dist/modules/datasource/schema.d.ts +4 -4
- package/dist/modules/datasource/terraform-module/index.js +1 -1
- package/dist/modules/datasource/terraform-module/index.js.map +1 -1
- package/dist/modules/datasource/terraform-provider/index.js +1 -2
- package/dist/modules/datasource/terraform-provider/index.js.map +1 -1
- package/dist/modules/datasource/types.d.ts +1 -0
- package/dist/modules/datasource/types.js.map +1 -1
- package/dist/modules/manager/api.js +2 -0
- package/dist/modules/manager/api.js.map +1 -1
- package/dist/modules/manager/argocd/extract.js +1 -1
- package/dist/modules/manager/argocd/extract.js.map +1 -1
- package/dist/modules/manager/asdf/upgradeable-tooling.js +94 -0
- package/dist/modules/manager/asdf/upgradeable-tooling.js.map +1 -1
- package/dist/modules/manager/azure-pipelines/schema.d.ts +24 -24
- package/dist/modules/manager/batect/schema.d.ts +2 -2
- package/dist/modules/manager/bazel/rules/docker.d.ts +3 -3
- package/dist/modules/manager/bazel/rules/git.js +2 -1
- package/dist/modules/manager/bazel/rules/git.js.map +1 -1
- package/dist/modules/manager/bazel/rules/maven.d.ts +7 -7
- package/dist/modules/manager/bazel/rules/oci.d.ts +3 -3
- package/dist/modules/manager/bazel-module/parser/maven.d.ts +13 -13
- package/dist/modules/manager/bun/artifacts.js +0 -1
- package/dist/modules/manager/bun/artifacts.js.map +1 -1
- package/dist/modules/manager/bundler/artifacts.js +0 -1
- package/dist/modules/manager/bundler/artifacts.js.map +1 -1
- package/dist/modules/manager/bundler/extract.js +2 -1
- package/dist/modules/manager/bundler/extract.js.map +1 -1
- package/dist/modules/manager/cake/index.js +4 -2
- package/dist/modules/manager/cake/index.js.map +1 -1
- package/dist/modules/manager/cargo/artifacts.js +5 -7
- package/dist/modules/manager/cargo/artifacts.js.map +1 -1
- package/dist/modules/manager/cargo/schema.d.ts +164 -164
- package/dist/modules/manager/circleci/schema.d.ts +6 -6
- package/dist/modules/manager/cocoapods/artifacts.js +1 -2
- package/dist/modules/manager/cocoapods/artifacts.js.map +1 -1
- package/dist/modules/manager/composer/artifacts.js +1 -2
- package/dist/modules/manager/composer/artifacts.js.map +1 -1
- package/dist/modules/manager/composer/schema.d.ts +36 -36
- package/dist/modules/manager/composer/schema.js +1 -1
- package/dist/modules/manager/composer/schema.js.map +1 -1
- package/dist/modules/manager/composer/utils.d.ts +1 -0
- package/dist/modules/manager/composer/utils.js +9 -0
- package/dist/modules/manager/composer/utils.js.map +1 -1
- package/dist/modules/manager/copier/artifacts.js +0 -1
- package/dist/modules/manager/copier/artifacts.js.map +1 -1
- package/dist/modules/manager/custom/jsonata/schema.d.ts +28 -28
- package/dist/modules/manager/custom/regex/index.js +2 -0
- package/dist/modules/manager/custom/regex/index.js.map +1 -1
- package/dist/modules/manager/deps-edn/extract.js +2 -1
- package/dist/modules/manager/deps-edn/extract.js.map +1 -1
- package/dist/modules/manager/devbox/artifacts.d.ts +1 -1
- package/dist/modules/manager/devbox/artifacts.js +1 -2
- package/dist/modules/manager/devbox/artifacts.js.map +1 -1
- package/dist/modules/manager/devbox/schema.js +1 -1
- package/dist/modules/manager/devbox/schema.js.map +1 -1
- package/dist/modules/manager/devcontainer/extract.js +43 -1
- package/dist/modules/manager/devcontainer/extract.js.map +1 -1
- package/dist/modules/manager/devcontainer/index.js +11 -1
- package/dist/modules/manager/devcontainer/index.js.map +1 -1
- package/dist/modules/manager/devcontainer/schema.d.ts +7 -3
- package/dist/modules/manager/devcontainer/schema.js +3 -1
- package/dist/modules/manager/devcontainer/schema.js.map +1 -1
- package/dist/modules/manager/docker-compose/schema.d.ts +6 -6
- package/dist/modules/manager/fingerprint.generated.js +83 -82
- package/dist/modules/manager/fingerprint.generated.js.map +1 -1
- package/dist/modules/manager/fleet/schema.d.ts +12 -12
- package/dist/modules/manager/flux/artifacts.js +0 -1
- package/dist/modules/manager/flux/artifacts.js.map +1 -1
- package/dist/modules/manager/flux/extract.js +27 -24
- package/dist/modules/manager/flux/extract.js.map +1 -1
- package/dist/modules/manager/flux/schema.d.ts +44 -44
- package/dist/modules/manager/github-actions/extract.js +60 -39
- package/dist/modules/manager/github-actions/extract.js.map +1 -1
- package/dist/modules/manager/github-actions/schema.d.ts +66 -0
- package/dist/modules/manager/github-actions/schema.js +38 -0
- package/dist/modules/manager/github-actions/schema.js.map +1 -0
- package/dist/modules/manager/gitlabci/extract.d.ts +1 -5
- package/dist/modules/manager/gitlabci/extract.js +27 -126
- package/dist/modules/manager/gitlabci/extract.js.map +1 -1
- package/dist/modules/manager/gitlabci/schema.d.ts +55 -0
- package/dist/modules/manager/gitlabci/schema.js +63 -0
- package/dist/modules/manager/gitlabci/schema.js.map +1 -0
- package/dist/modules/manager/gitlabci-include/extract.js +6 -54
- package/dist/modules/manager/gitlabci-include/extract.js.map +1 -1
- package/dist/modules/manager/gitlabci-include/schema.d.ts +13 -0
- package/dist/modules/manager/gitlabci-include/schema.js +46 -0
- package/dist/modules/manager/gitlabci-include/schema.js.map +1 -0
- package/dist/modules/manager/gomod/artifacts.js +24 -10
- package/dist/modules/manager/gomod/artifacts.js.map +1 -1
- package/dist/modules/manager/gomod/extract.js +23 -0
- package/dist/modules/manager/gomod/extract.js.map +1 -1
- package/dist/modules/manager/gomod/line-parser.js +16 -0
- package/dist/modules/manager/gomod/line-parser.js.map +1 -1
- package/dist/modules/manager/gomod/update.js +2 -2
- package/dist/modules/manager/gomod/update.js.map +1 -1
- package/dist/modules/manager/gradle/artifacts.js +0 -1
- package/dist/modules/manager/gradle/artifacts.js.map +1 -1
- package/dist/modules/manager/gradle/extract/catalog.js +1 -1
- package/dist/modules/manager/gradle/extract/catalog.js.map +1 -1
- package/dist/modules/manager/gradle/parser/assignments.js +2 -2
- package/dist/modules/manager/gradle/parser/assignments.js.map +1 -1
- package/dist/modules/manager/gradle/parser/handlers.d.ts +1 -2
- package/dist/modules/manager/gradle/parser/handlers.js +10 -25
- package/dist/modules/manager/gradle/parser/handlers.js.map +1 -1
- package/dist/modules/manager/gradle/parser/registry-urls.js +11 -3
- package/dist/modules/manager/gradle/parser/registry-urls.js.map +1 -1
- package/dist/modules/manager/gradle-wrapper/artifacts.js +0 -1
- package/dist/modules/manager/gradle-wrapper/artifacts.js.map +1 -1
- package/dist/modules/manager/helmfile/artifacts.js +0 -1
- package/dist/modules/manager/helmfile/artifacts.js.map +1 -1
- package/dist/modules/manager/helmfile/extract.js +4 -0
- package/dist/modules/manager/helmfile/extract.js.map +1 -1
- package/dist/modules/manager/helmfile/schema.d.ts +9 -9
- package/dist/modules/manager/helmv3/artifacts.js +0 -1
- package/dist/modules/manager/helmv3/artifacts.js.map +1 -1
- package/dist/modules/manager/helmv3/utils.js +3 -1
- package/dist/modules/manager/helmv3/utils.js.map +1 -1
- package/dist/modules/manager/hermit/artifacts.js +0 -1
- package/dist/modules/manager/hermit/artifacts.js.map +1 -1
- package/dist/modules/manager/homebrew/extract.js +0 -1
- package/dist/modules/manager/homebrew/extract.js.map +1 -1
- package/dist/modules/manager/jsonnet-bundler/artifacts.js +0 -1
- package/dist/modules/manager/jsonnet-bundler/artifacts.js.map +1 -1
- package/dist/modules/manager/kustomize/artifacts.d.ts +2 -0
- package/dist/modules/manager/kustomize/artifacts.js +154 -0
- package/dist/modules/manager/kustomize/artifacts.js.map +1 -0
- package/dist/modules/manager/kustomize/common.d.ts +3 -0
- package/dist/modules/manager/kustomize/common.js +22 -0
- package/dist/modules/manager/kustomize/common.js.map +1 -0
- package/dist/modules/manager/kustomize/index.d.ts +1 -0
- package/dist/modules/manager/kustomize/index.js +3 -1
- package/dist/modules/manager/kustomize/index.js.map +1 -1
- package/dist/modules/manager/kustomize/types.d.ts +4 -0
- package/dist/modules/manager/kustomize/types.js.map +1 -1
- package/dist/modules/manager/maven-wrapper/artifacts.js +0 -1
- package/dist/modules/manager/maven-wrapper/artifacts.js.map +1 -1
- package/dist/modules/manager/mix/artifacts.js +64 -14
- package/dist/modules/manager/mix/artifacts.js.map +1 -1
- package/dist/modules/manager/mix/index.d.ts +1 -0
- package/dist/modules/manager/mix/index.js +2 -1
- package/dist/modules/manager/mix/index.js.map +1 -1
- package/dist/modules/manager/nix/artifacts.js +0 -1
- package/dist/modules/manager/nix/artifacts.js.map +1 -1
- package/dist/modules/manager/nix/extract.js +1 -1
- package/dist/modules/manager/nix/extract.js.map +1 -1
- package/dist/modules/manager/nix/schema.d.ts +6 -6
- package/dist/modules/manager/npm/artifacts.js +0 -1
- package/dist/modules/manager/npm/artifacts.js.map +1 -1
- package/dist/modules/manager/npm/extract/yarn.js +2 -2
- package/dist/modules/manager/npm/extract/yarn.js.map +1 -1
- package/dist/modules/manager/npm/post-update/npm.js +0 -1
- package/dist/modules/manager/npm/post-update/npm.js.map +1 -1
- package/dist/modules/manager/npm/post-update/pnpm.js +13 -2
- package/dist/modules/manager/npm/post-update/pnpm.js.map +1 -1
- package/dist/modules/manager/npm/post-update/rules.js +11 -1
- package/dist/modules/manager/npm/post-update/rules.js.map +1 -1
- package/dist/modules/manager/npm/post-update/yarn.js +0 -1
- package/dist/modules/manager/npm/post-update/yarn.js.map +1 -1
- package/dist/modules/manager/npm/update/dependency/index.js +1 -1
- package/dist/modules/manager/npm/update/dependency/index.js.map +1 -1
- package/dist/modules/manager/nuget/artifacts.js +1 -2
- package/dist/modules/manager/nuget/artifacts.js.map +1 -1
- package/dist/modules/manager/nuget/package-tree.js +4 -0
- package/dist/modules/manager/nuget/package-tree.js.map +1 -1
- package/dist/modules/manager/nuget/util.js +4 -1
- package/dist/modules/manager/nuget/util.js.map +1 -1
- package/dist/modules/manager/pep621/processors/pdm.js +0 -1
- package/dist/modules/manager/pep621/processors/pdm.js.map +1 -1
- package/dist/modules/manager/pep621/processors/uv.js +0 -1
- package/dist/modules/manager/pep621/processors/uv.js.map +1 -1
- package/dist/modules/manager/pep621/schema.d.ts +35 -30
- package/dist/modules/manager/pep621/schema.js +2 -0
- package/dist/modules/manager/pep621/schema.js.map +1 -1
- package/dist/modules/manager/pip-compile/common.js +0 -1
- package/dist/modules/manager/pip-compile/common.js.map +1 -1
- package/dist/modules/manager/pip_requirements/artifacts.js +0 -1
- package/dist/modules/manager/pip_requirements/artifacts.js.map +1 -1
- package/dist/modules/manager/pipenv/artifacts.js +0 -1
- package/dist/modules/manager/pipenv/artifacts.js.map +1 -1
- package/dist/modules/manager/pixi/artifacts.d.ts +3 -0
- package/dist/modules/manager/pixi/artifacts.js +84 -0
- package/dist/modules/manager/pixi/artifacts.js.map +1 -0
- package/dist/modules/manager/pixi/extract.d.ts +2 -0
- package/dist/modules/manager/pixi/extract.js +53 -0
- package/dist/modules/manager/pixi/extract.js.map +1 -0
- package/dist/modules/manager/pixi/index.d.ts +11 -0
- package/dist/modules/manager/pixi/index.js +22 -0
- package/dist/modules/manager/pixi/index.js.map +1 -0
- package/dist/modules/manager/pixi/lockfile.d.ts +6 -0
- package/dist/modules/manager/pixi/lockfile.js +25 -0
- package/dist/modules/manager/pixi/lockfile.js.map +1 -0
- package/dist/modules/manager/pixi/schema.d.ts +14 -0
- package/dist/modules/manager/pixi/schema.js +14 -0
- package/dist/modules/manager/pixi/schema.js.map +1 -0
- package/dist/modules/manager/poetry/artifacts.js +0 -1
- package/dist/modules/manager/poetry/artifacts.js.map +1 -1
- package/dist/modules/manager/poetry/schema.d.ts +31 -31
- package/dist/modules/manager/pub/artifacts.js +0 -1
- package/dist/modules/manager/pub/artifacts.js.map +1 -1
- package/dist/modules/manager/pub/schema.d.ts +8 -8
- package/dist/modules/manager/scalafmt/extract.js +1 -1
- package/dist/modules/manager/scalafmt/extract.js.map +1 -1
- package/dist/modules/manager/types.d.ts +6 -2
- package/dist/modules/manager/types.js.map +1 -1
- package/dist/modules/manager/vendir/schema.d.ts +23 -23
- package/dist/modules/platform/azure/azure-helper.js +2 -2
- package/dist/modules/platform/azure/azure-helper.js.map +1 -1
- package/dist/modules/platform/azure/index.js +14 -14
- package/dist/modules/platform/azure/index.js.map +1 -1
- package/dist/modules/platform/bitbucket/comments.js +4 -4
- package/dist/modules/platform/bitbucket/comments.js.map +1 -1
- package/dist/modules/platform/bitbucket/index.js +48 -43
- package/dist/modules/platform/bitbucket/index.js.map +1 -1
- package/dist/modules/platform/bitbucket/schema.d.ts +13 -13
- package/dist/modules/platform/bitbucket/utils.js +3 -3
- package/dist/modules/platform/bitbucket/utils.js.map +1 -1
- package/dist/modules/platform/bitbucket-server/index.d.ts +2 -2
- package/dist/modules/platform/bitbucket-server/index.js +70 -72
- package/dist/modules/platform/bitbucket-server/index.js.map +1 -1
- package/dist/modules/platform/bitbucket-server/pr-cache.d.ts +23 -0
- package/dist/modules/platform/bitbucket-server/pr-cache.js +125 -0
- package/dist/modules/platform/bitbucket-server/pr-cache.js.map +1 -0
- package/dist/modules/platform/bitbucket-server/types.d.ts +6 -1
- package/dist/modules/platform/bitbucket-server/types.js.map +1 -1
- package/dist/modules/platform/bitbucket-server/utils.js +5 -1
- package/dist/modules/platform/bitbucket-server/utils.js.map +1 -1
- package/dist/modules/platform/codecommit/codecommit-client.js +6 -6
- package/dist/modules/platform/codecommit/codecommit-client.js.map +1 -1
- package/dist/modules/platform/codecommit/index.js +24 -24
- package/dist/modules/platform/codecommit/index.js.map +1 -1
- package/dist/modules/platform/gerrit/client.js +12 -1
- package/dist/modules/platform/gerrit/client.js.map +1 -1
- package/dist/modules/platform/gerrit/utils.js +1 -1
- package/dist/modules/platform/gerrit/utils.js.map +1 -1
- package/dist/modules/platform/gitea/gitea-helper.d.ts +1 -0
- package/dist/modules/platform/gitea/gitea-helper.js +16 -0
- package/dist/modules/platform/gitea/gitea-helper.js.map +1 -1
- package/dist/modules/platform/gitea/index.js +15 -7
- package/dist/modules/platform/gitea/index.js.map +1 -1
- package/dist/modules/platform/gitea/schema.d.ts +4 -4
- package/dist/modules/platform/gitea/types.d.ts +1 -1
- package/dist/modules/platform/gitea/types.js.map +1 -1
- package/dist/modules/platform/github/index.js +81 -78
- package/dist/modules/platform/github/index.js.map +1 -1
- package/dist/modules/platform/github/issue.d.ts +3 -3
- package/dist/modules/platform/github/massage-markdown-links.js +2 -2
- package/dist/modules/platform/github/massage-markdown-links.js.map +1 -1
- package/dist/modules/platform/github/pr.js +3 -3
- package/dist/modules/platform/github/pr.js.map +1 -1
- package/dist/modules/platform/github/schema.d.ts +11 -11
- package/dist/modules/platform/github/schema.js +3 -1
- package/dist/modules/platform/github/schema.js.map +1 -1
- package/dist/modules/platform/gitlab/index.js +61 -43
- package/dist/modules/platform/gitlab/index.js.map +1 -1
- package/dist/modules/platform/index.js +0 -1
- package/dist/modules/platform/index.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/conda/index.d.ts +41 -0
- package/dist/modules/versioning/conda/index.js +178 -0
- package/dist/modules/versioning/conda/index.js.map +1 -0
- package/dist/modules/versioning/hashicorp/convertor.d.ts +2 -1
- package/dist/modules/versioning/hashicorp/convertor.js +13 -8
- package/dist/modules/versioning/hashicorp/convertor.js.map +1 -1
- package/dist/modules/versioning/hex/index.js +3 -3
- package/dist/modules/versioning/hex/index.js.map +1 -1
- package/dist/proxy.js +1 -1
- package/dist/proxy.js.map +1 -1
- package/dist/renovate.js +2 -2
- package/dist/renovate.js.map +1 -1
- package/dist/util/cache/package/types.d.ts +1 -1
- package/dist/util/cache/package/types.js.map +1 -1
- package/dist/util/cache/repository/schema.d.ts +4 -4
- 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 +4 -0
- package/dist/util/env.js +22 -0
- package/dist/util/env.js.map +1 -0
- package/dist/util/exec/containerbase.js +6 -0
- package/dist/util/exec/containerbase.js.map +1 -1
- package/dist/util/exec/index.js +5 -2
- package/dist/util/exec/index.js.map +1 -1
- package/dist/util/exec/types.d.ts +0 -2
- package/dist/util/exec/types.js.map +1 -1
- package/dist/util/exec/utils.d.ts +1 -1
- package/dist/util/exec/utils.js +6 -5
- package/dist/util/exec/utils.js.map +1 -1
- package/dist/util/git/author.js +1 -1
- package/dist/util/git/author.js.map +1 -1
- package/dist/util/git/config.js +0 -1
- package/dist/util/git/config.js.map +1 -1
- package/dist/util/git/error.js +4 -2
- package/dist/util/git/error.js.map +1 -1
- package/dist/util/git/index.js +73 -46
- package/dist/util/git/index.js.map +1 -1
- package/dist/util/git/private-key.js +1 -1
- package/dist/util/git/private-key.js.map +1 -1
- package/dist/util/github/graphql/query-adapters/releases-query-adapter.d.ts +5 -5
- package/dist/util/github/graphql/query-adapters/tags-query-adapter.d.ts +2 -2
- package/dist/util/http/bitbucket-server.js +4 -0
- package/dist/util/http/bitbucket-server.js.map +1 -1
- package/dist/util/http/bitbucket.js +5 -1
- package/dist/util/http/bitbucket.js.map +1 -1
- package/dist/util/http/cache/abstract-http-cache-provider.js +2 -2
- package/dist/util/http/cache/abstract-http-cache-provider.js.map +1 -1
- package/dist/util/http/cache/memory-http-cache-provider.d.ts +10 -0
- package/dist/util/http/cache/memory-http-cache-provider.js +29 -0
- package/dist/util/http/cache/memory-http-cache-provider.js.map +1 -0
- package/dist/util/http/gitea.js +2 -0
- package/dist/util/http/gitea.js.map +1 -1
- package/dist/util/http/github.js +1 -0
- package/dist/util/http/github.js.map +1 -1
- package/dist/util/http/gitlab.js +2 -0
- package/dist/util/http/gitlab.js.map +1 -1
- package/dist/util/http/host-rules.js +5 -4
- package/dist/util/http/host-rules.js.map +1 -1
- package/dist/util/http/http.js +12 -5
- package/dist/util/http/http.js.map +1 -1
- package/dist/util/stats.d.ts +10 -0
- package/dist/util/stats.js +45 -1
- package/dist/util/stats.js.map +1 -1
- package/dist/workers/global/config/parse/file.js +2 -2
- package/dist/workers/global/config/parse/file.js.map +1 -1
- package/dist/workers/global/config/parse/index.js +5 -0
- package/dist/workers/global/config/parse/index.js.map +1 -1
- package/dist/workers/repository/cache.js +1 -1
- package/dist/workers/repository/cache.js.map +1 -1
- package/dist/workers/repository/config-migration/branch/migrated-data.js +2 -0
- package/dist/workers/repository/config-migration/branch/migrated-data.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/merge.js +6 -3
- package/dist/workers/repository/init/merge.js.map +1 -1
- package/dist/workers/repository/process/extract-update.js +0 -1
- package/dist/workers/repository/process/extract-update.js.map +1 -1
- package/dist/workers/repository/process/fingerprint-fields.js +0 -1
- package/dist/workers/repository/process/fingerprint-fields.js.map +1 -1
- package/dist/workers/repository/process/libyear.js +2 -2
- package/dist/workers/repository/process/libyear.js.map +1 -1
- package/dist/workers/repository/process/lookup/index.js +13 -4
- package/dist/workers/repository/process/lookup/index.js.map +1 -1
- package/dist/workers/repository/process/vulnerabilities.js +1 -1
- package/dist/workers/repository/process/vulnerabilities.js.map +1 -1
- package/dist/workers/repository/process/write.js +1 -8
- package/dist/workers/repository/process/write.js.map +1 -1
- package/dist/workers/repository/reconfigure/validate.js +1 -0
- package/dist/workers/repository/reconfigure/validate.js.map +1 -1
- package/dist/workers/repository/update/branch/execute-post-upgrade-commands.js +10 -1
- package/dist/workers/repository/update/branch/execute-post-upgrade-commands.js.map +1 -1
- package/dist/workers/repository/update/pr/changelog/github/index.js +6 -3
- package/dist/workers/repository/update/pr/changelog/github/index.js.map +1 -1
- package/dist/workers/repository/update/pr/changelog/source.js +1 -0
- package/dist/workers/repository/update/pr/changelog/source.js.map +1 -1
- package/dist/workers/repository/updates/flatten.js +8 -4
- package/dist/workers/repository/updates/flatten.js.map +1 -1
- package/dist/workers/repository/updates/generate.js +1 -2
- package/dist/workers/repository/updates/generate.js.map +1 -1
- package/dist/workers/types.d.ts +1 -4
- package/dist/workers/types.js.map +1 -1
- package/package.json +45 -43
- package/renovate-schema.json +14 -1
- package/dist/modules/manager/github-actions/types.d.ts +0 -30
- package/dist/modules/manager/github-actions/types.js +0 -3
- package/dist/modules/manager/github-actions/types.js.map +0 -1
- package/dist/modules/manager/gitlabci/common.d.ts +0 -6
- package/dist/modules/manager/gitlabci/common.js +0 -30
- package/dist/modules/manager/gitlabci/common.js.map +0 -1
- package/dist/modules/manager/gitlabci/types.d.ts +0 -35
- package/dist/modules/manager/gitlabci/types.js +0 -3
- package/dist/modules/manager/gitlabci/types.js.map +0 -1
@@ -14,16 +14,16 @@ export declare const PubspecSchema: z.ZodObject<{
|
|
14
14
|
path?: string | undefined;
|
15
15
|
version?: string | undefined;
|
16
16
|
hosted?: string | {
|
17
|
-
name?: string | undefined;
|
18
17
|
url?: string | undefined;
|
18
|
+
name?: string | undefined;
|
19
19
|
} | undefined;
|
20
20
|
}>, Record<string, any>>>;
|
21
21
|
dev_dependencies: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodAny>, Record<string, string | {
|
22
22
|
path?: string | undefined;
|
23
23
|
version?: string | undefined;
|
24
24
|
hosted?: string | {
|
25
|
-
name?: string | undefined;
|
26
25
|
url?: string | undefined;
|
26
|
+
name?: string | undefined;
|
27
27
|
} | undefined;
|
28
28
|
}>, Record<string, any>>>;
|
29
29
|
}, "strip", z.ZodTypeAny, {
|
@@ -35,16 +35,16 @@ export declare const PubspecSchema: z.ZodObject<{
|
|
35
35
|
path?: string | undefined;
|
36
36
|
version?: string | undefined;
|
37
37
|
hosted?: string | {
|
38
|
-
name?: string | undefined;
|
39
38
|
url?: string | undefined;
|
39
|
+
name?: string | undefined;
|
40
40
|
} | undefined;
|
41
41
|
}> | undefined;
|
42
42
|
dev_dependencies?: Record<string, string | {
|
43
43
|
path?: string | undefined;
|
44
44
|
version?: string | undefined;
|
45
45
|
hosted?: string | {
|
46
|
-
name?: string | undefined;
|
47
46
|
url?: string | undefined;
|
47
|
+
name?: string | undefined;
|
48
48
|
} | undefined;
|
49
49
|
}> | undefined;
|
50
50
|
}, {
|
@@ -71,16 +71,16 @@ export declare const PubspecYaml: z.ZodPipeline<z.ZodEffects<z.ZodString, string
|
|
71
71
|
path?: string | undefined;
|
72
72
|
version?: string | undefined;
|
73
73
|
hosted?: string | {
|
74
|
-
name?: string | undefined;
|
75
74
|
url?: string | undefined;
|
75
|
+
name?: string | undefined;
|
76
76
|
} | undefined;
|
77
77
|
}>, Record<string, any>>>;
|
78
78
|
dev_dependencies: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodAny>, Record<string, string | {
|
79
79
|
path?: string | undefined;
|
80
80
|
version?: string | undefined;
|
81
81
|
hosted?: string | {
|
82
|
-
name?: string | undefined;
|
83
82
|
url?: string | undefined;
|
83
|
+
name?: string | undefined;
|
84
84
|
} | undefined;
|
85
85
|
}>, Record<string, any>>>;
|
86
86
|
}, "strip", z.ZodTypeAny, {
|
@@ -92,16 +92,16 @@ export declare const PubspecYaml: z.ZodPipeline<z.ZodEffects<z.ZodString, string
|
|
92
92
|
path?: string | undefined;
|
93
93
|
version?: string | undefined;
|
94
94
|
hosted?: string | {
|
95
|
-
name?: string | undefined;
|
96
95
|
url?: string | undefined;
|
96
|
+
name?: string | undefined;
|
97
97
|
} | undefined;
|
98
98
|
}> | undefined;
|
99
99
|
dev_dependencies?: Record<string, string | {
|
100
100
|
path?: string | undefined;
|
101
101
|
version?: string | undefined;
|
102
102
|
hosted?: string | {
|
103
|
-
name?: string | undefined;
|
104
103
|
url?: string | undefined;
|
104
|
+
name?: string | undefined;
|
105
105
|
} | undefined;
|
106
106
|
}> | undefined;
|
107
107
|
}, {
|
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
|
|
5
5
|
const regex_1 = require("../../../util/regex");
|
6
6
|
const github_releases_1 = require("../../datasource/github-releases");
|
7
7
|
const semverVersioning = tslib_1.__importStar(require("../../versioning/semver"));
|
8
|
-
const scalafmtVersionRegex = (0, regex_1.regEx)('version *= *(?<version>\\d+\\.\\d+\\.\\d+)');
|
8
|
+
const scalafmtVersionRegex = (0, regex_1.regEx)('version *= *"?(?<version>\\d+\\.\\d+\\.\\d+)"?');
|
9
9
|
function extractPackageFile(content) {
|
10
10
|
const regexResult = scalafmtVersionRegex.exec(content);
|
11
11
|
const scalafmtVersion = regexResult?.groups?.version;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"extract.js","sourceRoot":"","sources":["../../../../lib/modules/manager/scalafmt/extract.ts"],"names":[],"mappings":";;AASA,gDAoBC;;AA7BD,+CAA4C;AAC5C,sEAA4E;AAC5E,kFAA4D;AAG5D,MAAM,oBAAoB,GAAG,IAAA,aAAK,EAChC,
|
1
|
+
{"version":3,"file":"extract.js","sourceRoot":"","sources":["../../../../lib/modules/manager/scalafmt/extract.ts"],"names":[],"mappings":";;AASA,gDAoBC;;AA7BD,+CAA4C;AAC5C,sEAA4E;AAC5E,kFAA4D;AAG5D,MAAM,oBAAoB,GAAG,IAAA,aAAK,EAChC,gDAAgD,CACjD,CAAC;AAEF,SAAgB,kBAAkB,CAAC,OAAe;IAChD,MAAM,WAAW,GAAG,oBAAoB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACvD,MAAM,eAAe,GAAG,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC;IAErD,IAAI,CAAC,eAAe,EAAE,CAAC;QACrB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,kBAAkB,GAAsB;QAC5C,UAAU,EAAE,0CAAwB,CAAC,EAAE;QACvC,OAAO,EAAE,UAAU;QACnB,WAAW,EAAE,oBAAoB;QACjC,UAAU,EAAE,gBAAgB,CAAC,EAAE;QAC/B,YAAY,EAAE,eAAe;QAC7B,cAAc,EAAE,oBAAoB;KACrC,CAAC;IAEF,OAAO;QACL,IAAI,EAAE,CAAC,kBAAkB,CAAC;KAC3B,CAAC;AACJ,CAAC","sourcesContent":["import { regEx } from '../../../util/regex';\nimport { GithubReleasesDatasource } from '../../datasource/github-releases';\nimport * as semverVersioning from '../../versioning/semver';\nimport type { PackageDependency, PackageFileContent } from '../types';\n\nconst scalafmtVersionRegex = regEx(\n 'version *= *\"?(?<version>\\\\d+\\\\.\\\\d+\\\\.\\\\d+)\"?',\n);\n\nexport function extractPackageFile(content: string): PackageFileContent | null {\n const regexResult = scalafmtVersionRegex.exec(content);\n const scalafmtVersion = regexResult?.groups?.version;\n\n if (!scalafmtVersion) {\n return null;\n }\n\n const scalafmtDependency: PackageDependency = {\n datasource: GithubReleasesDatasource.id,\n depName: 'scalafmt',\n packageName: 'scalameta/scalafmt',\n versioning: semverVersioning.id,\n currentValue: scalafmtVersion,\n extractVersion: '^v(?<version>\\\\S+)',\n };\n\n return {\n deps: [scalafmtDependency],\n };\n}\n"]}
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import type { ReleaseType } from 'semver';
|
2
|
-
import type { MatchStringsStrategy, UpdateType,
|
2
|
+
import type { MatchStringsStrategy, UpdateType, ValidationMessage } from '../../config/types';
|
3
3
|
import type { Category } from '../../constants';
|
4
4
|
import type { ModuleApi, RangeStrategy, SkipReason, StageName } from '../../types';
|
5
5
|
import type { FileChange } from '../../util/git/types';
|
6
6
|
import type { MergeConfidence } from '../../util/merge-confidence/types';
|
7
7
|
import type { Timestamp } from '../../util/timestamp';
|
8
|
+
import type { RegistryStrategy } from '../datasource';
|
8
9
|
import type { CustomExtractConfig } from './custom/types';
|
9
10
|
export type MaybePromise<T> = T | Promise<T>;
|
10
11
|
export interface ManagerData<T> {
|
@@ -32,7 +33,6 @@ export interface UpdateArtifactsConfig {
|
|
32
33
|
newMajor?: number;
|
33
34
|
registryAliases?: Record<string, string>;
|
34
35
|
lockFiles?: string[];
|
35
|
-
env?: UserEnv;
|
36
36
|
}
|
37
37
|
export interface RangeConfig<T = Record<string, any>> extends ManagerData<T> {
|
38
38
|
currentValue?: string;
|
@@ -145,6 +145,10 @@ export interface PackageDependency<T = Record<string, any>> extends ManagerData<
|
|
145
145
|
isInternal?: boolean;
|
146
146
|
variableName?: string;
|
147
147
|
indentation?: string;
|
148
|
+
/**
|
149
|
+
* override data source's default strategy.
|
150
|
+
*/
|
151
|
+
registryStrategy?: RegistryStrategy;
|
148
152
|
}
|
149
153
|
export interface Upgrade<T = Record<string, any>> extends PackageDependency<T> {
|
150
154
|
workspace?: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../lib/modules/manager/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ReleaseType } from 'semver';\nimport type {\n MatchStringsStrategy,\n UpdateType,\n
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../lib/modules/manager/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ReleaseType } from 'semver';\nimport type {\n MatchStringsStrategy,\n UpdateType,\n ValidationMessage,\n} from '../../config/types';\nimport type { Category } from '../../constants';\nimport type {\n ModuleApi,\n RangeStrategy,\n SkipReason,\n StageName,\n} from '../../types';\nimport type { FileChange } from '../../util/git/types';\nimport type { MergeConfidence } from '../../util/merge-confidence/types';\nimport type { Timestamp } from '../../util/timestamp';\nimport type { RegistryStrategy } from '../datasource';\nimport type { CustomExtractConfig } from './custom/types';\n\nexport type MaybePromise<T> = T | Promise<T>;\n\nexport interface ManagerData<T> {\n managerData?: T;\n}\n\nexport interface ExtractConfig extends CustomExtractConfig {\n registryAliases?: Record<string, string>;\n npmrc?: string;\n npmrcMerge?: boolean;\n skipInstalls?: boolean | null;\n repository?: string;\n}\n\nexport interface UpdateArtifactsConfig {\n isLockFileMaintenance?: boolean;\n constraints?: Record<string, string>;\n composerIgnorePlatformReqs?: string[];\n goGetDirs?: string[];\n currentValue?: string;\n postUpdateOptions?: string[];\n ignorePlugins?: boolean;\n ignoreScripts?: boolean;\n updateType?: UpdateType;\n newValue?: string;\n newVersion?: string;\n newMajor?: number;\n registryAliases?: Record<string, string>;\n lockFiles?: string[];\n}\n\nexport interface RangeConfig<T = Record<string, any>> extends ManagerData<T> {\n currentValue?: string;\n depName?: string;\n depType?: string;\n manager?: string;\n rangeStrategy: RangeStrategy;\n}\n\nexport interface PackageFileContent<T = Record<string, any>>\n extends ManagerData<T> {\n autoReplaceStringTemplate?: string;\n extractedConstraints?: Record<string, string>;\n datasource?: string;\n registryUrls?: string[];\n additionalRegistryUrls?: string[];\n deps: PackageDependency[];\n lockFiles?: string[];\n npmrc?: string;\n packageFileVersion?: string;\n skipInstalls?: boolean | null;\n matchStrings?: string[];\n matchStringsStrategy?: MatchStringsStrategy;\n fileFormat?: string;\n}\n\nexport interface PackageFile<T = Record<string, any>>\n extends PackageFileContent<T> {\n packageFile: string;\n}\n\nexport interface LookupUpdate {\n bucket?: string;\n branchName?: string;\n commitMessageAction?: string;\n isBump?: boolean;\n isLockfileUpdate?: boolean;\n isPin?: boolean;\n isPinDigest?: boolean;\n isRange?: boolean;\n isRollback?: boolean;\n isReplacement?: boolean;\n newDigest?: string;\n newMajor?: number;\n newMinor?: number;\n newPatch?: number;\n newName?: string;\n newValue?: string;\n semanticCommitType?: string;\n pendingChecks?: boolean;\n pendingVersions?: string[];\n newVersion?: string;\n updateType?: UpdateType;\n mergeConfidenceLevel?: MergeConfidence | undefined;\n userStrings?: Record<string, string>;\n checksumUrl?: string;\n downloadUrl?: string;\n releaseTimestamp?: Timestamp;\n newVersionAgeInDays?: number;\n registryUrl?: string;\n libYears?: number;\n}\n\n/**\n * @property {string} depName - Display name of the package. See #16012\n * @property {string} packageName - The name of the package, used in comparisons. depName is used as fallback if this is not set. See #16012\n */\nexport interface PackageDependency<T = Record<string, any>>\n extends ManagerData<T> {\n currentValue?: string | null;\n currentDigest?: string;\n depName?: string;\n depType?: string;\n fileReplacePosition?: number;\n sharedVariableName?: string;\n lineNumber?: number;\n packageName?: string;\n target?: string;\n versioning?: string;\n dataType?: string;\n enabled?: boolean;\n bumpVersion?: ReleaseType;\n npmPackageAlias?: boolean;\n packageFileVersion?: string;\n gitRef?: boolean;\n sourceUrl?: string | null;\n pinDigests?: boolean;\n currentRawValue?: string;\n major?: { enabled?: boolean };\n prettyDepType?: string;\n newValue?: string;\n warnings?: ValidationMessage[];\n commitMessageTopic?: string;\n currentDigestShort?: string;\n datasource?: string;\n deprecationMessage?: string;\n digestOneAndOnly?: boolean;\n fixedVersion?: string;\n currentVersion?: string;\n currentVersionTimestamp?: string;\n lockedVersion?: string;\n propSource?: string;\n registryUrls?: string[] | null;\n rangeStrategy?: RangeStrategy;\n skipReason?: SkipReason;\n skipStage?: StageName;\n sourceLine?: number;\n newVersion?: string;\n updates?: LookupUpdate[];\n replaceString?: string;\n autoReplaceStringTemplate?: string;\n editFile?: string;\n separateMinorPatch?: boolean;\n extractVersion?: string;\n isInternal?: boolean;\n variableName?: string;\n indentation?: string;\n\n /**\n * override data source's default strategy.\n */\n registryStrategy?: RegistryStrategy;\n}\n\nexport interface Upgrade<T = Record<string, any>> extends PackageDependency<T> {\n workspace?: string;\n isLockfileUpdate?: boolean;\n currentRawValue?: any;\n depGroup?: string;\n lockFiles?: string[];\n manager?: string;\n name?: string;\n newDigest?: string;\n newFrom?: string;\n newMajor?: number;\n newName?: string;\n newValue?: string;\n packageFile?: string;\n rangeStrategy?: RangeStrategy;\n newVersion?: string;\n updateType?: UpdateType;\n version?: string;\n isLockFileMaintenance?: boolean;\n isRemediation?: boolean;\n isVulnerabilityAlert?: boolean;\n vulnerabilitySeverity?: string;\n registryUrls?: string[] | null;\n currentVersion?: string;\n replaceString?: string;\n replacementApproach?: 'replace' | 'alias';\n}\n\nexport interface ArtifactNotice {\n file: string;\n message: string;\n}\n\nexport interface ArtifactError {\n fileName?: string;\n lockFile?: string;\n stderr?: string;\n}\n\nexport type UpdateArtifactsResult =\n | {\n file?: FileChange;\n notice?: ArtifactNotice;\n artifactError?: undefined;\n }\n | {\n file?: undefined;\n notice?: undefined;\n artifactError?: ArtifactError;\n };\n\nexport interface UpdateArtifact<T = Record<string, unknown>> {\n packageFileName: string;\n updatedDeps: Upgrade<T>[];\n newPackageFileContent: string;\n config: UpdateArtifactsConfig;\n}\n\nexport interface UpdateDependencyConfig<T = Record<string, any>> {\n fileContent: string;\n upgrade: Upgrade<T>;\n}\n\nexport interface BumpPackageVersionResult {\n bumpedContent: string | null;\n}\n\nexport interface UpdateLockedConfig {\n packageFile: string;\n packageFileContent?: string;\n lockFile: string;\n lockFileContent?: string;\n depName: string;\n currentVersion: string;\n newVersion: string;\n allowParentUpdates?: boolean;\n allowHigherOrRemoved?: boolean;\n}\n\nexport interface UpdateLockedResult {\n status: 'unsupported' | 'updated' | 'already-updated' | 'update-failed';\n files?: Record<string, string>;\n}\n\nexport interface GlobalManagerConfig {\n npmrc?: string;\n npmrcMerge?: boolean;\n}\n\nexport interface ManagerApi extends ModuleApi {\n defaultConfig: Record<string, unknown>;\n\n categories?: Category[];\n supportsLockFileMaintenance?: boolean;\n supersedesManagers?: string[];\n supportedDatasources: string[];\n\n bumpPackageVersion?(\n content: string,\n currentValue: string,\n bumpVersion: ReleaseType,\n packageFile: string,\n ): MaybePromise<BumpPackageVersionResult>;\n\n detectGlobalConfig?(): MaybePromise<GlobalManagerConfig>;\n\n extractAllPackageFiles?(\n config: ExtractConfig,\n files: string[],\n ): MaybePromise<PackageFile[] | null>;\n\n extractPackageFile?(\n content: string,\n packageFile?: string,\n config?: ExtractConfig,\n ): MaybePromise<PackageFileContent | null>;\n\n getRangeStrategy?(config: RangeConfig): RangeStrategy;\n\n updateArtifacts?(\n updateArtifact: UpdateArtifact,\n ): MaybePromise<UpdateArtifactsResult[] | null>;\n\n updateDependency?(\n updateDependencyConfig: UpdateDependencyConfig,\n ): MaybePromise<string | null>;\n\n updateLockedDependency?(\n config: UpdateLockedConfig,\n ): MaybePromise<UpdateLockedResult>;\n}\n\n// TODO: name and properties used by npm manager\nexport interface PostUpdateConfig<T = Record<string, any>>\n extends Record<string, any>,\n ManagerData<T> {\n // TODO: remove null\n constraints?: Record<string, string> | null;\n updatedPackageFiles?: FileChange[];\n postUpdateOptions?: string[];\n skipInstalls?: boolean | null;\n ignoreScripts?: boolean;\n\n packageFile?: string;\n\n upgrades: Upgrade[];\n npmLock?: string;\n yarnLock?: string;\n branchName: string;\n reuseExistingBranch?: boolean;\n\n isLockFileMaintenance?: boolean;\n}\n"]}
|
@@ -43,17 +43,17 @@ export declare const HelmChart: z.ZodObject<{
|
|
43
43
|
url: string;
|
44
44
|
}>;
|
45
45
|
}, "strip", z.ZodTypeAny, {
|
46
|
+
name: string;
|
47
|
+
version: string;
|
46
48
|
repository: {
|
47
49
|
url: string;
|
48
50
|
};
|
51
|
+
}, {
|
49
52
|
name: string;
|
50
53
|
version: string;
|
51
|
-
}, {
|
52
54
|
repository: {
|
53
55
|
url: string;
|
54
56
|
};
|
55
|
-
name: string;
|
56
|
-
version: string;
|
57
57
|
}>;
|
58
58
|
export declare const HelmChartContent: z.ZodObject<{
|
59
59
|
path: z.ZodString;
|
@@ -68,35 +68,35 @@ export declare const HelmChartContent: z.ZodObject<{
|
|
68
68
|
url: string;
|
69
69
|
}>;
|
70
70
|
}, "strip", z.ZodTypeAny, {
|
71
|
+
name: string;
|
72
|
+
version: string;
|
71
73
|
repository: {
|
72
74
|
url: string;
|
73
75
|
};
|
76
|
+
}, {
|
74
77
|
name: string;
|
75
78
|
version: string;
|
76
|
-
}, {
|
77
79
|
repository: {
|
78
80
|
url: string;
|
79
81
|
};
|
80
|
-
name: string;
|
81
|
-
version: string;
|
82
82
|
}>;
|
83
83
|
}, "strip", z.ZodTypeAny, {
|
84
84
|
path: string;
|
85
85
|
helmChart: {
|
86
|
+
name: string;
|
87
|
+
version: string;
|
86
88
|
repository: {
|
87
89
|
url: string;
|
88
90
|
};
|
89
|
-
name: string;
|
90
|
-
version: string;
|
91
91
|
};
|
92
92
|
}, {
|
93
93
|
path: string;
|
94
94
|
helmChart: {
|
95
|
+
name: string;
|
96
|
+
version: string;
|
95
97
|
repository: {
|
96
98
|
url: string;
|
97
99
|
};
|
98
|
-
name: string;
|
99
|
-
version: string;
|
100
100
|
};
|
101
101
|
}>;
|
102
102
|
export declare const GitRefContent: z.ZodObject<{
|
@@ -167,35 +167,35 @@ export declare const Contents: z.ZodUnion<[z.ZodObject<{
|
|
167
167
|
url: string;
|
168
168
|
}>;
|
169
169
|
}, "strip", z.ZodTypeAny, {
|
170
|
+
name: string;
|
171
|
+
version: string;
|
170
172
|
repository: {
|
171
173
|
url: string;
|
172
174
|
};
|
175
|
+
}, {
|
173
176
|
name: string;
|
174
177
|
version: string;
|
175
|
-
}, {
|
176
178
|
repository: {
|
177
179
|
url: string;
|
178
180
|
};
|
179
|
-
name: string;
|
180
|
-
version: string;
|
181
181
|
}>;
|
182
182
|
}, "strip", z.ZodTypeAny, {
|
183
183
|
path: string;
|
184
184
|
helmChart: {
|
185
|
+
name: string;
|
186
|
+
version: string;
|
185
187
|
repository: {
|
186
188
|
url: string;
|
187
189
|
};
|
188
|
-
name: string;
|
189
|
-
version: string;
|
190
190
|
};
|
191
191
|
}, {
|
192
192
|
path: string;
|
193
193
|
helmChart: {
|
194
|
+
name: string;
|
195
|
+
version: string;
|
194
196
|
repository: {
|
195
197
|
url: string;
|
196
198
|
};
|
197
|
-
name: string;
|
198
|
-
version: string;
|
199
199
|
};
|
200
200
|
}>, z.ZodObject<{
|
201
201
|
path: z.ZodString;
|
@@ -260,11 +260,11 @@ export declare const Vendir: z.ZodObject<z.objectUtil.extendShape<{
|
|
260
260
|
contents: z.ZodEffects<z.ZodArray<z.ZodAny, "many">, ({
|
261
261
|
path: string;
|
262
262
|
helmChart: {
|
263
|
+
name: string;
|
264
|
+
version: string;
|
263
265
|
repository: {
|
264
266
|
url: string;
|
265
267
|
};
|
266
|
-
name: string;
|
267
|
-
version: string;
|
268
268
|
};
|
269
269
|
} | {
|
270
270
|
path: string;
|
@@ -285,11 +285,11 @@ export declare const Vendir: z.ZodObject<z.objectUtil.extendShape<{
|
|
285
285
|
contents: ({
|
286
286
|
path: string;
|
287
287
|
helmChart: {
|
288
|
+
name: string;
|
289
|
+
version: string;
|
288
290
|
repository: {
|
289
291
|
url: string;
|
290
292
|
};
|
291
|
-
name: string;
|
292
|
-
version: string;
|
293
293
|
};
|
294
294
|
} | {
|
295
295
|
path: string;
|
@@ -317,11 +317,11 @@ export declare const Vendir: z.ZodObject<z.objectUtil.extendShape<{
|
|
317
317
|
contents: ({
|
318
318
|
path: string;
|
319
319
|
helmChart: {
|
320
|
+
name: string;
|
321
|
+
version: string;
|
320
322
|
repository: {
|
321
323
|
url: string;
|
322
324
|
};
|
323
|
-
name: string;
|
324
|
-
version: string;
|
325
325
|
};
|
326
326
|
} | {
|
327
327
|
path: string;
|
@@ -63,9 +63,9 @@ async function getFile(repoId, filePath, branchName) {
|
|
63
63
|
}
|
64
64
|
}
|
65
65
|
}
|
66
|
-
catch {
|
66
|
+
catch /* v8 ignore start */ {
|
67
67
|
// it 's not a JSON, so I send the content directly with the line under
|
68
|
-
}
|
68
|
+
} /* v8 ignore stop */
|
69
69
|
return fileContent;
|
70
70
|
}
|
71
71
|
return null; // no file found
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"azure-helper.js","sourceRoot":"","sources":["../../../../lib/modules/platform/azure/azure-helper.ts"],"names":[],"mappings":";;AAkBA,0BAYC;AAOD,8CAoBC;AAGD,0BA4CC;AAED,4CAQC;AAED,wCAgEC;AAED,gDAiBC;;AAlMD,wFAAgG;AAChG,4CAAyC;AACzC,mDAAuD;AACvD,kCAA2C;AAC3C,sEAAgD;AAChD,qCAAkD;AAClD,iCAGgB;AAEhB,MAAM,eAAe,GAAG,sCAAsC,CAAC,CAAC,sDAAsD;AAE/G,KAAK,UAAU,OAAO,CAC3B,MAAc,EACd,UAAmB;IAEnB,eAAM,CAAC,KAAK,CAAC,WAAW,MAAM,KAAK,UAAW,GAAG,CAAC,CAAC;IACnD,MAAM,WAAW,GAAG,MAAM,QAAQ,CAAC,MAAM,EAAE,CAAC;IAC5C,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC,OAAO,CACpC,MAAM,EACN,SAAS,EACT,IAAA,qCAA8B,EAAC,UAAU,CAAC,CAC3C,CAAC;IACF,OAAO,IAAI,CAAC;AACd,CAAC;AAOM,KAAK,UAAU,iBAAiB,CACrC,MAAc,EACd,UAAkB,EAClB,IAAa;IAEb,MAAM,cAAc,GAAG,IAAA,uBAAgB,EAAC,IAAI,CAAC,CAAC;IAC9C,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC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AE,CAAC;IAC9C,MAAM,GAAG,GAAG,GAAG,CAAC;IAChB,IAAI,IAAI,GAAG,CAAC,CAAC;IACb,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,GAAG,CAAC;QACF,MAAM,KAAK,GAAG,MAAM,YAAY,CAAC,QAAQ,CAAC,SAAS,EAAE,SAAS,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;QAC3E,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QACtB,QAAQ,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;QACxB,IAAI,IAAI,GAAG,CAAC;IACd,CAAC,QAAQ,GAAG,IAAI,MAAM,EAAE;IAExB,OAAO,QAAQ,CAAC;AAClB,CAAC","sourcesContent":["import type { WebApiTeam } from 'azure-devops-node-api/interfaces/CoreInterfaces.js';\nimport type {\n GitCommit,\n GitRef,\n} from 'azure-devops-node-api/interfaces/GitInterfaces.js';\nimport { GitPullRequestMergeStrategy } from 'azure-devops-node-api/interfaces/GitInterfaces.js';\nimport { logger } from '../../../logger';\nimport { streamToString } from '../../../util/streams';\nimport { getNewBranchName } from '../util';\nimport * as azureApi from './azure-got-wrapper';\nimport { WrappedExceptionSchema } from './schema';\nimport {\n getBranchNameWithoutRefsPrefix,\n getBranchNameWithoutRefsheadsPrefix,\n} from './util';\n\nconst mergePolicyGuid = 'fa4e907d-c16b-4a4c-9dfa-4916e5d171ab'; // Magic GUID for merge strategy policy configurations\n\nexport async function getRefs(\n repoId: string,\n branchName?: string,\n): Promise<GitRef[]> {\n logger.debug(`getRefs(${repoId}, ${branchName!})`);\n const azureApiGit = await azureApi.gitApi();\n const refs = await azureApiGit.getRefs(\n repoId,\n undefined,\n getBranchNameWithoutRefsPrefix(branchName),\n );\n return refs;\n}\n\nexport interface AzureBranchObj {\n name: string;\n oldObjectId: string;\n}\n\nexport async function getAzureBranchObj(\n repoId: string,\n branchName: string,\n from?: string,\n): Promise<AzureBranchObj> {\n const fromBranchName = getNewBranchName(from);\n const refs = await getRefs(repoId, fromBranchName);\n if (refs.length === 0) {\n logger.debug(`getAzureBranchObj without a valid from, so initial commit.`);\n // TODO: fix undefined\n return {\n name: getNewBranchName(branchName)!,\n oldObjectId: '0000000000000000000000000000000000000000',\n };\n }\n return {\n // TODO: fix undefined (#22198)\n name: getNewBranchName(branchName)!,\n oldObjectId: refs[0].objectId!,\n };\n}\n\n// if no branchName, look globally\nexport async function getFile(\n repoId: string,\n filePath: string,\n branchName: string,\n): Promise<string | null> {\n logger.trace(`getFile(filePath=${filePath}, branchName=${branchName})`);\n const azureApiGit = await azureApi.gitApi();\n const item = await azureApiGit.getItemText(\n repoId,\n filePath,\n undefined,\n undefined,\n 0, // because we look for 1 file\n false,\n false,\n true,\n {\n versionType: 0, // branch\n versionOptions: 0,\n version: getBranchNameWithoutRefsheadsPrefix(branchName),\n },\n );\n\n if (item?.readable) {\n const fileContent = await streamToString(item);\n try {\n const result = WrappedExceptionSchema.safeParse(fileContent);\n if (result.success) {\n if (result.data.typeKey === 'GitItemNotFoundException') {\n logger.warn({ filePath }, 'Unable to find file');\n return null;\n }\n if (result.data.typeKey === 'GitUnresolvableToCommitException') {\n logger.warn({ branchName }, 'Unable to find branch');\n return null;\n }\n }\n } catch {\n // it 's not a JSON, so I send the content directly with the line under\n }\n\n return fileContent;\n }\n return null; // no file found\n}\n\nexport async function getCommitDetails(\n commit: string,\n repoId: string,\n): Promise<GitCommit> {\n logger.debug(`getCommitDetails(${commit}, ${repoId})`);\n const azureApiGit = await azureApi.gitApi();\n const results = await azureApiGit.getCommit(commit, repoId);\n return results;\n}\n\nexport async function getMergeMethod(\n repoId: string,\n project: string,\n branchRef?: string | null,\n defaultBranch?: string,\n): Promise<GitPullRequestMergeStrategy> {\n logger.debug(\n `getMergeMethod(branchRef=${branchRef}, defaultBranch=${defaultBranch})`,\n );\n interface Scope {\n repositoryId: string;\n refName?: string;\n matchKind: 'Prefix' | 'Exact' | 'DefaultBranch';\n }\n const isRelevantScope = (scope: Scope): boolean => {\n if (\n scope.matchKind === 'DefaultBranch' &&\n // TODO: types (#22198)\n (!branchRef || branchRef === `refs/heads/${defaultBranch!}`)\n ) {\n return true;\n }\n if (scope.repositoryId !== repoId && scope.repositoryId !== null) {\n return false;\n }\n if (!branchRef) {\n return true;\n }\n // TODO #22198\n return scope.matchKind === 'Exact'\n ? scope.refName === branchRef\n : branchRef.startsWith(scope.refName!);\n };\n\n const policyConfigurations = (\n await (\n await azureApi.policyApi()\n ).getPolicyConfigurations(project, undefined, mergePolicyGuid)\n )\n .filter((p) => p.settings.scope.some(isRelevantScope))\n .map((p) => p.settings)[0];\n\n logger.debug(\n // TODO: types (#22198)\n `getMergeMethod(branchRef=${branchRef!}) determining mergeMethod from matched policy:\\n${JSON.stringify(\n policyConfigurations,\n null,\n 4,\n )}`,\n );\n\n try {\n // TODO: fix me, wrong types\n return Object.keys(policyConfigurations)\n .map(\n (p) =>\n GitPullRequestMergeStrategy[\n p.slice(5) as never\n ] as never as GitPullRequestMergeStrategy,\n )\n .find((p) => p)!;\n } catch {\n return GitPullRequestMergeStrategy.NoFastForward;\n }\n}\n\nexport async function getAllProjectTeams(\n projectId: string,\n): Promise<WebApiTeam[]> {\n const allTeams: WebApiTeam[] = [];\n const azureApiCore = await azureApi.coreApi();\n const top = 100;\n let skip = 0;\n let length = 0;\n\n do {\n const teams = await azureApiCore.getTeams(projectId, undefined, top, skip);\n length = teams.length;\n allTeams.push(...teams);\n skip += top;\n } while (top <= length);\n\n return allTeams;\n}\n"]}
|
1
|
+
{"version":3,"file":"azure-helper.js","sourceRoot":"","sources":["../../../../lib/modules/platform/azure/azure-helper.ts"],"names":[],"mappings":";;AAkBA,0BAYC;AAOD,8CAoBC;AAGD,0BA6CC;AAED,4CAQC;AAED,wCAgEC;AAED,gDAiBC;;AAnMD,wFAAgG;AAChG,4CAAyC;AACzC,mDAAuD;AACvD,kCAA2C;AAC3C,sEAAgD;AAChD,qCAAkD;AAClD,iCAGgB;AAEhB,MAAM,eAAe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,KAAK;IACV,uBAAuB;IACvB,4BAA4B,SAAU,mDAAmD,IAAI,CAAC,SAAS,CACrG,oBAAoB,EACpB,IAAI,EACJ,CAAC,CACF,EAAE,CACJ,CAAC;IAEF,IAAI,CAAC;QACH,4BAA4B;QAC5B,OAAO,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAAC;aACrC,GAAG,CACF,CAAC,CAAC,EAAE,EAAE,CACJ,8CAA2B,CACzB,CAAC,CAAC,KAAK,CAAC,CAAC,CAAU,CACoB,CAC5C;aACA,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAE,CAAC;IACrB,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,8CAA2B,CAAC,aAAa,CAAC;IACnD,CAAC;AACH,CAAC;AAEM,KAAK,UAAU,kBAAkB,CACtC,SAAiB;IAEjB,MAAM,QAAQ,GAAiB,EAAE,CAAC;IAClC,MAAM,YAAY,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,CAAC;IAC9C,MAAM,GAAG,GAAG,GAAG,CAAC;IAChB,IAAI,IAAI,GAAG,CAAC,CAAC;IACb,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,GAAG,CAAC;QACF,MAAM,KAAK,GAAG,MAAM,YAAY,CAAC,QAAQ,CAAC,SAAS,EAAE,SAAS,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;QAC3E,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QACtB,QAAQ,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;QACxB,IAAI,IAAI,GAAG,CAAC;IACd,CAAC,QAAQ,GAAG,IAAI,MAAM,EAAE;IAExB,OAAO,QAAQ,CAAC;AAClB,CAAC","sourcesContent":["import type { WebApiTeam } from 'azure-devops-node-api/interfaces/CoreInterfaces.js';\nimport type {\n GitCommit,\n GitRef,\n} from 'azure-devops-node-api/interfaces/GitInterfaces.js';\nimport { GitPullRequestMergeStrategy } from 'azure-devops-node-api/interfaces/GitInterfaces.js';\nimport { logger } from '../../../logger';\nimport { streamToString } from '../../../util/streams';\nimport { getNewBranchName } from '../util';\nimport * as azureApi from './azure-got-wrapper';\nimport { WrappedExceptionSchema } from './schema';\nimport {\n getBranchNameWithoutRefsPrefix,\n getBranchNameWithoutRefsheadsPrefix,\n} from './util';\n\nconst mergePolicyGuid = 'fa4e907d-c16b-4a4c-9dfa-4916e5d171ab'; // Magic GUID for merge strategy policy configurations\n\nexport async function getRefs(\n repoId: string,\n branchName?: string,\n): Promise<GitRef[]> {\n logger.debug(`getRefs(${repoId}, ${branchName!})`);\n const azureApiGit = await azureApi.gitApi();\n const refs = await azureApiGit.getRefs(\n repoId,\n undefined,\n getBranchNameWithoutRefsPrefix(branchName),\n );\n return refs;\n}\n\nexport interface AzureBranchObj {\n name: string;\n oldObjectId: string;\n}\n\nexport async function getAzureBranchObj(\n repoId: string,\n branchName: string,\n from?: string,\n): Promise<AzureBranchObj> {\n const fromBranchName = getNewBranchName(from);\n const refs = await getRefs(repoId, fromBranchName);\n if (refs.length === 0) {\n logger.debug(`getAzureBranchObj without a valid from, so initial commit.`);\n // TODO: fix undefined\n return {\n name: getNewBranchName(branchName)!,\n oldObjectId: '0000000000000000000000000000000000000000',\n };\n }\n return {\n // TODO: fix undefined (#22198)\n name: getNewBranchName(branchName)!,\n oldObjectId: refs[0].objectId!,\n };\n}\n\n// if no branchName, look globally\nexport async function getFile(\n repoId: string,\n filePath: string,\n branchName: string,\n): Promise<string | null> {\n logger.trace(`getFile(filePath=${filePath}, branchName=${branchName})`);\n const azureApiGit = await azureApi.gitApi();\n const item = await azureApiGit.getItemText(\n repoId,\n filePath,\n undefined,\n undefined,\n 0, // because we look for 1 file\n false,\n false,\n true,\n {\n versionType: 0, // branch\n versionOptions: 0,\n version: getBranchNameWithoutRefsheadsPrefix(branchName),\n },\n );\n\n if (item?.readable) {\n const fileContent = await streamToString(item);\n try {\n const result = WrappedExceptionSchema.safeParse(fileContent);\n if (result.success) {\n if (result.data.typeKey === 'GitItemNotFoundException') {\n logger.warn({ filePath }, 'Unable to find file');\n return null;\n }\n if (result.data.typeKey === 'GitUnresolvableToCommitException') {\n logger.warn({ branchName }, 'Unable to find branch');\n return null;\n }\n }\n } catch /* v8 ignore start */ {\n // it 's not a JSON, so I send the content directly with the line under\n } /* v8 ignore stop */\n\n return fileContent;\n }\n\n return null; // no file found\n}\n\nexport async function getCommitDetails(\n commit: string,\n repoId: string,\n): Promise<GitCommit> {\n logger.debug(`getCommitDetails(${commit}, ${repoId})`);\n const azureApiGit = await azureApi.gitApi();\n const results = await azureApiGit.getCommit(commit, repoId);\n return results;\n}\n\nexport async function getMergeMethod(\n repoId: string,\n project: string,\n branchRef?: string | null,\n defaultBranch?: string,\n): Promise<GitPullRequestMergeStrategy> {\n logger.debug(\n `getMergeMethod(branchRef=${branchRef}, defaultBranch=${defaultBranch})`,\n );\n interface Scope {\n repositoryId: string;\n refName?: string;\n matchKind: 'Prefix' | 'Exact' | 'DefaultBranch';\n }\n const isRelevantScope = (scope: Scope): boolean => {\n if (\n scope.matchKind === 'DefaultBranch' &&\n // TODO: types (#22198)\n (!branchRef || branchRef === `refs/heads/${defaultBranch!}`)\n ) {\n return true;\n }\n if (scope.repositoryId !== repoId && scope.repositoryId !== null) {\n return false;\n }\n if (!branchRef) {\n return true;\n }\n // TODO #22198\n return scope.matchKind === 'Exact'\n ? scope.refName === branchRef\n : branchRef.startsWith(scope.refName!);\n };\n\n const policyConfigurations = (\n await (\n await azureApi.policyApi()\n ).getPolicyConfigurations(project, undefined, mergePolicyGuid)\n )\n .filter((p) => p.settings.scope.some(isRelevantScope))\n .map((p) => p.settings)[0];\n\n logger.debug(\n // TODO: types (#22198)\n `getMergeMethod(branchRef=${branchRef!}) determining mergeMethod from matched policy:\\n${JSON.stringify(\n policyConfigurations,\n null,\n 4,\n )}`,\n );\n\n try {\n // TODO: fix me, wrong types\n return Object.keys(policyConfigurations)\n .map(\n (p) =>\n GitPullRequestMergeStrategy[\n p.slice(5) as never\n ] as never as GitPullRequestMergeStrategy,\n )\n .find((p) => p)!;\n } catch {\n return GitPullRequestMergeStrategy.NoFastForward;\n }\n}\n\nexport async function getAllProjectTeams(\n projectId: string,\n): Promise<WebApiTeam[]> {\n const allTeams: WebApiTeam[] = [];\n const azureApiCore = await azureApi.coreApi();\n const top = 100;\n let skip = 0;\n let length = 0;\n\n do {\n const teams = await azureApiCore.getTeams(projectId, undefined, top, skip);\n length = teams.length;\n allTeams.push(...teams);\n skip += top;\n } while (top <= length);\n\n return allTeams;\n}\n"]}
|
@@ -108,7 +108,7 @@ async function getRawFile(fileName, repoName, branchOrTag) {
|
|
108
108
|
true);
|
109
109
|
return item?.content ?? null;
|
110
110
|
}
|
111
|
-
catch (err) /*
|
111
|
+
catch (err) /* v8 ignore start */ {
|
112
112
|
if (err.message?.includes('<title>Azure DevOps Services Unavailable</title>')) {
|
113
113
|
logger_1.logger.debug('Azure DevOps is currently unavailable when attempting to fetch file - throwing ExternalHostError');
|
114
114
|
throw new external_host_error_1.ExternalHostError(err, exports.id);
|
@@ -120,7 +120,7 @@ async function getRawFile(fileName, repoName, branchOrTag) {
|
|
120
120
|
throw new external_host_error_1.ExternalHostError(err, exports.id);
|
121
121
|
}
|
122
122
|
throw err;
|
123
|
-
}
|
123
|
+
} /* v8 ignore stop */
|
124
124
|
}
|
125
125
|
async function getJsonFile(fileName, repoName, branchOrTag) {
|
126
126
|
const raw = await getRawFile(fileName, repoName, branchOrTag);
|
@@ -141,11 +141,11 @@ async function initRepo({ repository, cloneSubmodules, cloneSubmodulesFilter, })
|
|
141
141
|
logger_1.logger.debug('Repository is disabled- throwing error to abort renovation');
|
142
142
|
throw new Error(error_messages_1.REPOSITORY_ARCHIVED);
|
143
143
|
}
|
144
|
-
|
144
|
+
/* v8 ignore start */
|
145
145
|
if (!repo.defaultBranch) {
|
146
146
|
logger_1.logger.debug('Repo is empty');
|
147
147
|
throw new Error(error_messages_1.REPOSITORY_EMPTY);
|
148
|
-
}
|
148
|
+
} /* v8 ignore stop */
|
149
149
|
// TODO #22198
|
150
150
|
config.repoId = repo.id;
|
151
151
|
config.project = repo.project.name;
|
@@ -411,12 +411,12 @@ async function updatePr({ number: prNo, prTitle: title, prBody: body, state, pla
|
|
411
411
|
const prToCache = (0, util_2.getRenovatePRFormat)(updatedPr);
|
412
412
|
// We need to update the cached entry for this PR
|
413
413
|
const existingIndex = config.prList.findIndex((item) => item.number === prNo);
|
414
|
-
|
414
|
+
/* v8 ignore start: should not happen */
|
415
415
|
if (existingIndex === -1) {
|
416
416
|
logger_1.logger.warn({ prNo }, 'PR not found in cache');
|
417
417
|
// Add to cache
|
418
418
|
config.prList.push(prToCache);
|
419
|
-
}
|
419
|
+
} /* v8 ignore stop */
|
420
420
|
else {
|
421
421
|
// overwrite existing PR in cache
|
422
422
|
config.prList[existingIndex] = prToCache;
|
@@ -561,28 +561,28 @@ function massageMarkdown(input) {
|
|
561
561
|
function maxBodyLength() {
|
562
562
|
return 4000;
|
563
563
|
}
|
564
|
-
/*
|
564
|
+
/* v8 ignore start */
|
565
565
|
function findIssue() {
|
566
566
|
// TODO: Needs implementation (#9592)
|
567
567
|
logger_1.logger.debug(`findIssue() is not implemented`);
|
568
568
|
return Promise.resolve(null);
|
569
|
-
}
|
570
|
-
/*
|
569
|
+
} /* v8 ignore stop */
|
570
|
+
/* v8 ignore start */
|
571
571
|
function ensureIssue() {
|
572
572
|
// TODO: Needs implementation (#9592)
|
573
573
|
logger_1.logger.debug(`ensureIssue() is not implemented`);
|
574
574
|
return Promise.resolve(null);
|
575
|
-
}
|
576
|
-
/*
|
575
|
+
} /* v8 ignore stop */
|
576
|
+
/* v8 ignore start */
|
577
577
|
function ensureIssueClosing() {
|
578
578
|
return Promise.resolve();
|
579
|
-
}
|
580
|
-
/*
|
579
|
+
} /* v8 ignore stop */
|
580
|
+
/* v8 ignore start */
|
581
581
|
function getIssueList() {
|
582
582
|
logger_1.logger.debug(`getIssueList()`);
|
583
583
|
// TODO: Needs implementation (#9592)
|
584
584
|
return Promise.resolve([]);
|
585
|
-
}
|
585
|
+
} /* v8 ignore stop */
|
586
586
|
async function getUserIds(users) {
|
587
587
|
const azureApiGit = await azureApi.gitApi();
|
588
588
|
const azureApiCore = await azureApi.coreApi();
|