renovate 40.0.0-next.26 → 40.0.0-next.28
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
@@ -39,11 +39,13 @@ const git = tslib_1.__importStar(require("../../../util/git"));
|
|
39
39
|
const git_1 = require("../../../util/git");
|
40
40
|
const hostRules = tslib_1.__importStar(require("../../../util/host-rules"));
|
41
41
|
const bitbucket_server_1 = require("../../../util/http/bitbucket-server");
|
42
|
+
const memory_http_cache_provider_1 = require("../../../util/http/cache/memory-http-cache-provider");
|
42
43
|
const regex_1 = require("../../../util/regex");
|
43
44
|
const sanitize_1 = require("../../../util/sanitize");
|
44
45
|
const url_1 = require("../../../util/url");
|
45
46
|
const util_1 = require("../util");
|
46
47
|
const pr_body_1 = require("../utils/pr-body");
|
48
|
+
const pr_cache_1 = require("./pr-cache");
|
47
49
|
const schema_1 = require("./schema");
|
48
50
|
const utils = tslib_1.__importStar(require("./utils"));
|
49
51
|
const utils_1 = require("./utils");
|
@@ -63,12 +65,12 @@ const defaults = {
|
|
63
65
|
hostType: 'bitbucket-server',
|
64
66
|
version: '0.0.0',
|
65
67
|
};
|
66
|
-
/*
|
68
|
+
/* v8 ignore start */
|
67
69
|
function updatePrVersion(pr, version) {
|
68
70
|
const res = Math.max(config.prVersions.get(pr) ?? 0, version);
|
69
71
|
config.prVersions.set(pr, res);
|
70
72
|
return res;
|
71
|
-
}
|
73
|
+
} /* v8 ignore stop */
|
72
74
|
async function initPlatform({ endpoint, token, username, password, gitAuthor, }) {
|
73
75
|
if (!endpoint) {
|
74
76
|
throw new Error('Init: You must configure a Bitbucket Server endpoint');
|
@@ -87,10 +89,10 @@ async function initPlatform({ endpoint, token, username, password, gitAuthor, })
|
|
87
89
|
};
|
88
90
|
try {
|
89
91
|
let bitbucketServerVersion;
|
90
|
-
|
92
|
+
/* v8 ignore start: experimental feature */
|
91
93
|
if (process.env.RENOVATE_X_PLATFORM_VERSION) {
|
92
94
|
bitbucketServerVersion = process.env.RENOVATE_X_PLATFORM_VERSION;
|
93
|
-
}
|
95
|
+
} /* v8 ignore stop */
|
94
96
|
else {
|
95
97
|
const { version } = (await bitbucketServerHttp.getJsonUnchecked(`./rest/api/1.0/application-properties`)).body;
|
96
98
|
bitbucketServerVersion = version;
|
@@ -117,6 +119,9 @@ async function initPlatform({ endpoint, token, username, password, gitAuthor, })
|
|
117
119
|
}
|
118
120
|
try {
|
119
121
|
const { displayName, emailAddress } = (await bitbucketServerHttp.getJson(`./rest/api/1.0/users/${username}`, options, schema_1.UserSchema)).body;
|
122
|
+
if (!emailAddress.length) {
|
123
|
+
throw new Error(`No email address configured for username ${username}`);
|
124
|
+
}
|
120
125
|
platformConfig.gitAuthor = `${displayName} <${emailAddress}>`;
|
121
126
|
logger_1.logger.debug(`Detected gitAuthor: ${platformConfig.gitAuthor}`);
|
122
127
|
}
|
@@ -135,10 +140,10 @@ async function getRepos() {
|
|
135
140
|
logger_1.logger.debug({ result }, 'result of getRepos()');
|
136
141
|
return result;
|
137
142
|
}
|
138
|
-
catch (err) /*
|
143
|
+
catch (err) /* v8 ignore start */ {
|
139
144
|
logger_1.logger.error({ err }, `bitbucket getRepos error`);
|
140
145
|
throw err;
|
141
|
-
}
|
146
|
+
} /* v8 ignore stop */
|
142
147
|
}
|
143
148
|
async function getRawFile(fileName, repoName, branchOrTag) {
|
144
149
|
const repo = repoName ?? config.repository;
|
@@ -202,7 +207,7 @@ async function initRepo({ repository, cloneSubmodules, cloneSubmodulesFilter, ig
|
|
202
207
|
};
|
203
208
|
return repoConfig;
|
204
209
|
}
|
205
|
-
catch (err) /*
|
210
|
+
catch (err) /* v8 ignore start */ {
|
206
211
|
if (err.statusCode === 404) {
|
207
212
|
throw new Error(error_messages_1.REPOSITORY_NOT_FOUND);
|
208
213
|
}
|
@@ -211,7 +216,7 @@ async function initRepo({ repository, cloneSubmodules, cloneSubmodulesFilter, ig
|
|
211
216
|
}
|
212
217
|
logger_1.logger.debug({ err }, 'Unknown Bitbucket initRepo error');
|
213
218
|
throw err;
|
214
|
-
}
|
219
|
+
} /* v8 ignore stop */
|
215
220
|
}
|
216
221
|
async function getBranchForceRebase(_branchName) {
|
217
222
|
// https://docs.atlassian.com/bitbucket-server/rest/7.0.1/bitbucket-rest.html#idp342
|
@@ -228,7 +233,14 @@ async function getPr(prNo, refreshCache) {
|
|
228
233
|
if (!prNo) {
|
229
234
|
return null;
|
230
235
|
}
|
231
|
-
|
236
|
+
// Disables memCache (which is enabled by default) to be replaced by
|
237
|
+
// memCacheProvider.
|
238
|
+
const opts = { memCache: false };
|
239
|
+
// TODO: should refresh the cache rather than just ignore it
|
240
|
+
if (!refreshCache) {
|
241
|
+
opts.cacheProvider = memory_http_cache_provider_1.memCacheProvider;
|
242
|
+
}
|
243
|
+
const res = await bitbucketServerHttp.getJsonUnchecked(`./rest/api/1.0/projects/${config.projectKey}/repos/${config.repositorySlug}/pull-requests/${prNo}`, opts);
|
232
244
|
const pr = {
|
233
245
|
...utils.prInfo(res.body),
|
234
246
|
reviewers: res.body.reviewers.map((r) => r.user.name),
|
@@ -238,7 +250,7 @@ async function getPr(prNo, refreshCache) {
|
|
238
250
|
return pr;
|
239
251
|
}
|
240
252
|
// TODO: coverage (#9624)
|
241
|
-
|
253
|
+
/* v8 ignore start */
|
242
254
|
function matchesState(state, desiredState) {
|
243
255
|
if (desiredState === 'all') {
|
244
256
|
return true;
|
@@ -247,37 +259,22 @@ function matchesState(state, desiredState) {
|
|
247
259
|
return state !== desiredState.substring(1);
|
248
260
|
}
|
249
261
|
return state === desiredState;
|
250
|
-
}
|
262
|
+
} /* v8 ignore stop */
|
251
263
|
// TODO: coverage (#9624)
|
252
|
-
|
253
|
-
|
254
|
-
(
|
255
|
-
|
264
|
+
/* v8 ignore start */
|
265
|
+
function isRelevantPr(branchName, prTitle, state) {
|
266
|
+
return (p) => p.sourceBranch === branchName &&
|
267
|
+
(!prTitle || p.title.toUpperCase() === prTitle.toUpperCase()) &&
|
268
|
+
matchesState(p.state, state);
|
269
|
+
} /* v8 ignore stop */
|
256
270
|
// TODO: coverage (#9624)
|
257
|
-
async function getPrList(
|
271
|
+
async function getPrList() {
|
258
272
|
logger_1.logger.debug(`getPrList()`);
|
259
|
-
|
260
|
-
if (!config.prList || refreshCache) {
|
261
|
-
const searchParams = {
|
262
|
-
state: 'ALL',
|
263
|
-
};
|
264
|
-
if (!config.ignorePrAuthor && config.username !== undefined) {
|
265
|
-
searchParams['role.1'] = 'AUTHOR';
|
266
|
-
searchParams['username.1'] = config.username;
|
267
|
-
}
|
268
|
-
const query = (0, url_1.getQueryString)(searchParams);
|
269
|
-
const values = (await bitbucketServerHttp.getJsonUnchecked(`./rest/api/1.0/projects/${config.projectKey}/repos/${config.repositorySlug}/pull-requests?${query}`, { paginate: true })).body;
|
270
|
-
config.prList = values.map(utils.prInfo);
|
271
|
-
logger_1.logger.debug(`Retrieved Pull Requests, count: ${config.prList.length}`);
|
272
|
-
}
|
273
|
-
else {
|
274
|
-
logger_1.logger.debug('returning cached PR list');
|
275
|
-
}
|
276
|
-
return config.prList;
|
273
|
+
return await pr_cache_1.BbsPrCache.getPrs(bitbucketServerHttp, config.projectKey, config.repositorySlug, config.ignorePrAuthor, config.username);
|
277
274
|
}
|
278
275
|
// TODO: coverage (#9624)
|
279
|
-
|
280
|
-
async function findPr({ branchName, prTitle, state = 'all',
|
276
|
+
/* v8 ignore start */
|
277
|
+
async function findPr({ branchName, prTitle, state = 'all', includeOtherAuthors, }) {
|
281
278
|
logger_1.logger.debug(`findPr(${branchName}, "${prTitle}", "${state}")`);
|
282
279
|
if (includeOtherAuthors) {
|
283
280
|
// PR might have been created by anyone, so don't use the cached Renovate PR list
|
@@ -297,7 +294,7 @@ async function findPr({ branchName, prTitle, state = 'all', refreshCache, includ
|
|
297
294
|
}
|
298
295
|
return utils.prInfo(prs[0]);
|
299
296
|
}
|
300
|
-
const prList = await getPrList(
|
297
|
+
const prList = await getPrList();
|
301
298
|
const pr = prList.find(isRelevantPr(branchName, prTitle, state));
|
302
299
|
if (pr) {
|
303
300
|
logger_1.logger.debug(`Found PR #${pr.number}`);
|
@@ -306,7 +303,7 @@ async function findPr({ branchName, prTitle, state = 'all', refreshCache, includ
|
|
306
303
|
logger_1.logger.debug(`Renovate did not find a PR for branch #${branchName}`);
|
307
304
|
}
|
308
305
|
return pr ?? null;
|
309
|
-
}
|
306
|
+
} /* v8 ignore stop */
|
310
307
|
// Returns the Pull Request for a branch. Null if not exists.
|
311
308
|
async function getBranchPr(branchName) {
|
312
309
|
logger_1.logger.debug(`getBranchPr(${branchName})`);
|
@@ -316,18 +313,23 @@ async function getBranchPr(branchName) {
|
|
316
313
|
});
|
317
314
|
return existingPr ? getPr(existingPr.number) : null;
|
318
315
|
}
|
319
|
-
|
316
|
+
/* v8 ignore start */
|
320
317
|
async function refreshPr(number) {
|
321
318
|
// wait for pr change propagation
|
322
319
|
await (0, promises_1.setTimeout)(1000);
|
323
320
|
// refresh cache
|
324
321
|
await getPr(number, true);
|
325
|
-
}
|
322
|
+
} /* v8 ignore stop */
|
326
323
|
async function getStatus(branchName, memCache = true) {
|
327
324
|
const branchCommit = git.getBranchCommit(branchName);
|
325
|
+
/* v8 ignore start: temporary code */
|
326
|
+
const opts = memCache
|
327
|
+
? { cacheProvider: memory_http_cache_provider_1.memCacheProvider }
|
328
|
+
: { memCache: false };
|
329
|
+
/* v8 ignore stop */
|
328
330
|
return (await bitbucketServerHttp.getJsonUnchecked(
|
329
331
|
// TODO: types (#22198)
|
330
|
-
`./rest/build-status/1.0/commits/stats/${branchCommit}`,
|
332
|
+
`./rest/build-status/1.0/commits/stats/${branchCommit}`, opts)).body;
|
331
333
|
}
|
332
334
|
// Returns the combined status for a branch.
|
333
335
|
// umbrella for status checks
|
@@ -356,7 +358,16 @@ async function getBranchStatus(branchName) {
|
|
356
358
|
}
|
357
359
|
async function getStatusCheck(branchName, memCache = true) {
|
358
360
|
const branchCommit = git.getBranchCommit(branchName);
|
359
|
-
|
361
|
+
const opts = { paginate: true };
|
362
|
+
/* v8 ignore start: temporary code */
|
363
|
+
if (memCache) {
|
364
|
+
opts.cacheProvider = memory_http_cache_provider_1.memCacheProvider;
|
365
|
+
}
|
366
|
+
else {
|
367
|
+
opts.memCache = false;
|
368
|
+
}
|
369
|
+
/* v8 ignore stop */
|
370
|
+
return (await bitbucketServerHttp.getJsonUnchecked(`./rest/build-status/1.0/commits/${branchCommit}`, opts)).body;
|
360
371
|
}
|
361
372
|
// https://docs.atlassian.com/bitbucket-server/rest/6.0.0/bitbucket-build-rest.html#idp2
|
362
373
|
async function getBranchStatusCheck(branchName, context) {
|
@@ -420,7 +431,7 @@ async function setBranchStatus({ branchName, context, description, state, url: t
|
|
420
431
|
}
|
421
432
|
}
|
422
433
|
// Issue
|
423
|
-
/*
|
434
|
+
/* v8 ignore start */
|
424
435
|
function findIssue(title) {
|
425
436
|
logger_1.logger.debug(`findIssue(${title})`);
|
426
437
|
// This is used by Renovate when creating its own issues,
|
@@ -429,8 +440,8 @@ function findIssue(title) {
|
|
429
440
|
//
|
430
441
|
// Bitbucket Server does not have issues
|
431
442
|
return Promise.resolve(null);
|
432
|
-
}
|
433
|
-
/*
|
443
|
+
} /* v8 ignore stop */
|
444
|
+
/* v8 ignore start */
|
434
445
|
function ensureIssue({ title, }) {
|
435
446
|
logger_1.logger.warn({ title }, 'Cannot ensure issue');
|
436
447
|
// This is used by Renovate when creating its own issues,
|
@@ -439,8 +450,8 @@ function ensureIssue({ title, }) {
|
|
439
450
|
//
|
440
451
|
// Bitbucket Server does not have issues
|
441
452
|
return Promise.resolve(null);
|
442
|
-
}
|
443
|
-
/*
|
453
|
+
} /* v8 ignore stop */
|
454
|
+
/* v8 ignore start */
|
444
455
|
function getIssueList() {
|
445
456
|
logger_1.logger.debug(`getIssueList()`);
|
446
457
|
// This is used by Renovate when creating its own issues,
|
@@ -449,8 +460,8 @@ function getIssueList() {
|
|
449
460
|
//
|
450
461
|
// Bitbucket Server does not have issues
|
451
462
|
return Promise.resolve([]);
|
452
|
-
}
|
453
|
-
/*
|
463
|
+
} /* v8 ignore stop */
|
464
|
+
/* v8 ignore start */
|
454
465
|
function ensureIssueClosing(title) {
|
455
466
|
logger_1.logger.debug(`ensureIssueClosing(${title})`);
|
456
467
|
// This is used by Renovate when creating its own issues,
|
@@ -459,7 +470,7 @@ function ensureIssueClosing(title) {
|
|
459
470
|
//
|
460
471
|
// Bitbucket Server does not have issues
|
461
472
|
return Promise.resolve();
|
462
|
-
}
|
473
|
+
} /* v8 ignore stop */
|
463
474
|
function addAssignees(iid, assignees) {
|
464
475
|
logger_1.logger.debug(`addAssignees(${iid}, [${assignees.join(', ')}])`);
|
465
476
|
// This is used by Renovate when creating its own issues,
|
@@ -610,10 +621,10 @@ async function ensureComment({ number, topic, content, }) {
|
|
610
621
|
}
|
611
622
|
return true;
|
612
623
|
}
|
613
|
-
catch (err) /*
|
624
|
+
catch (err) /* v8 ignore start */ {
|
614
625
|
logger_1.logger.warn({ err }, 'Error ensuring comment');
|
615
626
|
return false;
|
616
|
-
}
|
627
|
+
} /* v8 ignore stop */
|
617
628
|
}
|
618
629
|
async function ensureCommentRemoval(deleteConfig) {
|
619
630
|
try {
|
@@ -636,9 +647,9 @@ async function ensureCommentRemoval(deleteConfig) {
|
|
636
647
|
await deleteComment(prNo, commentId);
|
637
648
|
}
|
638
649
|
}
|
639
|
-
catch (err) /*
|
650
|
+
catch (err) /* v8 ignore start */ {
|
640
651
|
logger_1.logger.warn({ err }, 'Error ensuring comment removal');
|
641
|
-
}
|
652
|
+
} /* v8 ignore stop */
|
642
653
|
}
|
643
654
|
// Pull Request
|
644
655
|
const escapeHash = (input) => input?.replace((0, regex_1.regEx)(/#/g), '%23');
|
@@ -670,7 +681,7 @@ async function createPr({ sourceBranch, targetBranch, prTitle: title, prBody: ra
|
|
670
681
|
try {
|
671
682
|
prInfoRes = await bitbucketServerHttp.postJson(`./rest/api/1.0/projects/${config.projectKey}/repos/${config.repositorySlug}/pull-requests`, { body });
|
672
683
|
}
|
673
|
-
catch (err) /*
|
684
|
+
catch (err) /* v8 ignore start */ {
|
674
685
|
if (err.body?.errors?.[0]?.exceptionName ===
|
675
686
|
'com.atlassian.bitbucket.pull.EmptyPullRequestException') {
|
676
687
|
logger_1.logger.debug('Empty pull request - deleting branch so it can be recreated next run');
|
@@ -678,16 +689,13 @@ async function createPr({ sourceBranch, targetBranch, prTitle: title, prBody: ra
|
|
678
689
|
throw new Error(error_messages_1.REPOSITORY_CHANGED);
|
679
690
|
}
|
680
691
|
throw err;
|
681
|
-
}
|
692
|
+
} /* v8 ignore stop */
|
682
693
|
const pr = {
|
683
694
|
...utils.prInfo(prInfoRes.body),
|
684
695
|
};
|
685
696
|
// TODO #22198
|
686
697
|
updatePrVersion(pr.number, pr.version);
|
687
|
-
|
688
|
-
if (config.prList) {
|
689
|
-
config.prList.push(pr);
|
690
|
-
}
|
698
|
+
await pr_cache_1.BbsPrCache.setPr(bitbucketServerHttp, config.projectKey, config.repositorySlug, config.ignorePrAuthor, config.username, pr);
|
691
699
|
return pr;
|
692
700
|
}
|
693
701
|
async function updatePr({ number: prNo, prTitle: title, prBody: rawDescription, state, bitbucketInvalidReviewers, targetBranch, }) {
|
@@ -728,18 +736,8 @@ async function updatePr({ number: prNo, prTitle: title, prBody: rawDescription,
|
|
728
736
|
finalState = state;
|
729
737
|
updatePrVersion(pr.number, updatedStatePr.version);
|
730
738
|
}
|
731
|
-
|
732
|
-
|
733
|
-
const existingIndex = config.prList.findIndex((item) => item.number === prNo);
|
734
|
-
// istanbul ignore if: should never happen
|
735
|
-
if (existingIndex === -1) {
|
736
|
-
logger_1.logger.warn({ pr: bbsPr }, 'Possible error: Updated PR was not found in the PRs that were returned from getPrList().');
|
737
|
-
config.prList.push({ ...bbsPr, state: finalState });
|
738
|
-
}
|
739
|
-
else {
|
740
|
-
config.prList[existingIndex] = { ...bbsPr, state: finalState };
|
741
|
-
}
|
742
|
-
}
|
739
|
+
const bbsPr = utils.prInfo(updatedPr);
|
740
|
+
await pr_cache_1.BbsPrCache.setPr(bitbucketServerHttp, config.projectKey, config.repositorySlug, config.ignorePrAuthor, config.username, { ...bbsPr, state: finalState });
|
743
741
|
}
|
744
742
|
catch (err) {
|
745
743
|
logger_1.logger.debug({ err, prNo }, `Failed to update PR`);
|