renovate 40.0.0-next.4 → 40.0.0-next.41
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/legacy.js +0 -1
- package/dist/config/decrypt/legacy.js.map +1 -1
- package/dist/config/decrypt.d.ts +3 -1
- package/dist/config/decrypt.js +56 -13
- package/dist/config/decrypt.js.map +1 -1
- package/dist/config/migrate-validate.js +3 -2
- package/dist/config/migrate-validate.js.map +1 -1
- package/dist/config/migration.js +2 -1
- package/dist/config/migration.js.map +1 -1
- package/dist/config/migrations/custom/rebase-stale-prs-migration.js +1 -1
- package/dist/config/migrations/custom/rebase-stale-prs-migration.js.map +1 -1
- package/dist/config/options/index.js +17 -3
- package/dist/config/options/index.js.map +1 -1
- package/dist/config/parse.js +2 -2
- package/dist/config/parse.js.map +1 -1
- package/dist/config/presets/common.js +1 -0
- package/dist/config/presets/common.js.map +1 -1
- package/dist/config/presets/gitea/index.js +0 -1
- package/dist/config/presets/gitea/index.js.map +1 -1
- package/dist/config/presets/github/index.js +0 -1
- package/dist/config/presets/github/index.js.map +1 -1
- package/dist/config/presets/gitlab/index.js +1 -1
- package/dist/config/presets/gitlab/index.js.map +1 -1
- package/dist/config/presets/http/index.js +1 -2
- package/dist/config/presets/http/index.js.map +1 -1
- package/dist/config/presets/index.js +0 -7
- package/dist/config/presets/index.js.map +1 -1
- package/dist/config/presets/internal/custom-managers.js +18 -4
- package/dist/config/presets/internal/custom-managers.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/index.js +1 -3
- package/dist/config/presets/internal/index.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/schema.d.ts +2 -2
- package/dist/config/types.d.ts +4 -1
- package/dist/config/types.js.map +1 -1
- package/dist/config/validation.js +3 -5
- package/dist/config/validation.js.map +1 -1
- package/dist/config-validator.js +0 -1
- package/dist/config-validator.js.map +1 -1
- package/dist/constants/category.js +0 -1
- package/dist/constants/category.js.map +1 -1
- package/dist/constants/platforms.js +5 -1
- package/dist/constants/platforms.js.map +1 -1
- package/dist/data/monorepo.json +8 -2
- package/dist/data/source-urls.json +1 -0
- package/dist/data-files.generated.js +2 -2
- package/dist/data-files.generated.js.map +1 -1
- package/dist/instrumentation/index.js +39 -15
- package/dist/instrumentation/index.js.map +1 -1
- package/dist/instrumentation/utils.js +1 -1
- package/dist/instrumentation/utils.js.map +1 -1
- package/dist/logger/cmd-serializer.js +0 -1
- package/dist/logger/cmd-serializer.js.map +1 -1
- package/dist/logger/config-serializer.js +0 -1
- package/dist/logger/config-serializer.js.map +1 -1
- package/dist/logger/index.js +1 -4
- package/dist/logger/index.js.map +1 -1
- package/dist/logger/once.js +4 -2
- package/dist/logger/once.js.map +1 -1
- package/dist/logger/pretty-stdout.js +0 -1
- package/dist/logger/pretty-stdout.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 +6 -11
- package/dist/logger/utils.js.map +1 -1
- package/dist/modules/datasource/api.js +4 -0
- package/dist/modules/datasource/api.js.map +1 -1
- package/dist/modules/datasource/artifactory/index.js +1 -2
- 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/azure-pipelines-tasks/index.js +15 -1
- package/dist/modules/datasource/azure-pipelines-tasks/index.js.map +1 -1
- package/dist/modules/datasource/azure-pipelines-tasks/schema.d.ts +24 -0
- package/dist/modules/datasource/azure-pipelines-tasks/schema.js +3 -0
- package/dist/modules/datasource/azure-pipelines-tasks/schema.js.map +1 -1
- package/dist/modules/datasource/bazel/index.js +18 -2
- package/dist/modules/datasource/bazel/index.js.map +1 -1
- package/dist/modules/datasource/bazel/schema.d.ts +1 -0
- package/dist/modules/datasource/bazel/schema.js.map +1 -1
- package/dist/modules/datasource/bitbucket-server-tags/index.d.ts +19 -0
- package/dist/modules/datasource/bitbucket-server-tags/index.js +133 -0
- package/dist/modules/datasource/bitbucket-server-tags/index.js.map +1 -0
- package/dist/modules/datasource/bitbucket-server-tags/schema.d.ts +28 -0
- package/dist/modules/datasource/bitbucket-server-tags/schema.js +13 -0
- package/dist/modules/datasource/bitbucket-server-tags/schema.js.map +1 -0
- 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 +81 -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 +2 -4
- package/dist/modules/datasource/cpan/index.js.map +1 -1
- package/dist/modules/datasource/crate/index.js +3 -3
- package/dist/modules/datasource/crate/index.js.map +1 -1
- package/dist/modules/datasource/custom/formats/html.js +1 -1
- package/dist/modules/datasource/custom/formats/html.js.map +1 -1
- package/dist/modules/datasource/custom/formats/yaml.js +1 -1
- package/dist/modules/datasource/custom/formats/yaml.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 +22 -22
- 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.d.ts +4 -5
- package/dist/modules/datasource/deb/index.js +10 -11
- package/dist/modules/datasource/deb/index.js.map +1 -1
- package/dist/modules/datasource/deb/url.d.ts +3 -3
- package/dist/modules/datasource/deb/url.js +17 -13
- package/dist/modules/datasource/deb/url.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 +1 -1
- 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 +5 -2
- package/dist/modules/datasource/docker/common.js.map +1 -1
- package/dist/modules/datasource/docker/index.js +10 -8
- package/dist/modules/datasource/docker/index.js.map +1 -1
- package/dist/modules/datasource/docker/schema.d.ts +77 -101
- 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/schema.d.ts +1 -1
- package/dist/modules/datasource/galaxy-collection/schema.d.ts +8 -8
- 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 +2 -2
- package/dist/modules/datasource/gitea-tags/schema.d.ts +4 -4
- package/dist/modules/datasource/github-release-attachments/index.js +2 -2
- package/dist/modules/datasource/github-release-attachments/index.js.map +1 -1
- package/dist/modules/datasource/github-runners/index.js +2 -2
- package/dist/modules/datasource/github-runners/index.js.map +1 -1
- 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/base.js +1 -1
- package/dist/modules/datasource/go/base.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/go/releases-goproxy.js +1 -1
- package/dist/modules/datasource/go/releases-goproxy.js.map +1 -1
- package/dist/modules/datasource/golang-version/index.js +2 -2
- 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/hex/schema.d.ts +11 -11
- package/dist/modules/datasource/hexpm-bob/index.js +1 -1
- package/dist/modules/datasource/hexpm-bob/index.js.map +1 -1
- package/dist/modules/datasource/index.js +4 -4
- 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 +94 -157
- package/dist/modules/datasource/maven/util.js.map +1 -1
- package/dist/modules/datasource/metadata.js +9 -1
- package/dist/modules/datasource/metadata.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/get.d.ts +0 -1
- package/dist/modules/datasource/npm/get.js +14 -68
- package/dist/modules/datasource/npm/get.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/npm/types.d.ts +0 -8
- package/dist/modules/datasource/npm/types.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/v2.js +1 -1
- package/dist/modules/datasource/nuget/v2.js.map +1 -1
- package/dist/modules/datasource/nuget/v3.js +6 -6
- 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 +32 -32
- package/dist/modules/datasource/pod/index.js +2 -2
- 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/pypi/index.js +1 -1
- package/dist/modules/datasource/pypi/index.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/ruby-version/index.js +1 -1
- package/dist/modules/datasource/ruby-version/index.js.map +1 -1
- package/dist/modules/datasource/rubygems/index.js +2 -2
- package/dist/modules/datasource/rubygems/index.js.map +1 -1
- package/dist/modules/datasource/rubygems/versions-endpoint-cache.js +2 -2
- package/dist/modules/datasource/rubygems/versions-endpoint-cache.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 +2 -3
- package/dist/modules/datasource/terraform-provider/index.js.map +1 -1
- package/dist/modules/datasource/types.d.ts +2 -0
- package/dist/modules/datasource/types.js.map +1 -1
- package/dist/modules/datasource/unity3d/index.d.ts +4 -1
- package/dist/modules/datasource/unity3d/index.js +36 -42
- package/dist/modules/datasource/unity3d/index.js.map +1 -1
- package/dist/modules/datasource/unity3d/schema.d.ts +47 -0
- package/dist/modules/datasource/unity3d/schema.js +17 -0
- package/dist/modules/datasource/unity3d/schema.js.map +1 -0
- 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/argocd/schema.d.ts +22 -22
- 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 +32 -32
- package/dist/modules/manager/batect/schema.d.ts +4 -4
- package/dist/modules/manager/batect-wrapper/artifacts.js +1 -1
- package/dist/modules/manager/batect-wrapper/artifacts.js.map +1 -1
- package/dist/modules/manager/bazel/rules/docker.d.ts +6 -6
- package/dist/modules/manager/bazel/rules/git.d.ts +10 -10
- package/dist/modules/manager/bazel/rules/git.js +9 -2
- package/dist/modules/manager/bazel/rules/git.js.map +1 -1
- package/dist/modules/manager/bazel/rules/go.d.ts +5 -5
- package/dist/modules/manager/bazel/rules/maven.d.ts +7 -7
- package/dist/modules/manager/bazel/rules/oci.d.ts +6 -6
- package/dist/modules/manager/bazel-module/parser/fragments.d.ts +40 -40
- package/dist/modules/manager/bazel-module/parser/maven.d.ts +44 -90
- package/dist/modules/manager/bazel-module/parser/oci.d.ts +19 -42
- package/dist/modules/manager/bazel-module/rules.d.ts +50 -160
- package/dist/modules/manager/bun/artifacts.js +0 -1
- package/dist/modules/manager/bun/artifacts.js.map +1 -1
- package/dist/modules/manager/bun/extract.d.ts +1 -0
- package/dist/modules/manager/bun/extract.js +53 -27
- package/dist/modules/manager/bun/extract.js.map +1 -1
- package/dist/modules/manager/bun/index.js +1 -1
- package/dist/modules/manager/bun/index.js.map +1 -1
- package/dist/modules/manager/bun/utils.d.ts +2 -0
- package/dist/modules/manager/bun/utils.js +22 -0
- package/dist/modules/manager/bun/utils.js.map +1 -0
- 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 +117 -117
- package/dist/modules/manager/circleci/extract.js +21 -30
- package/dist/modules/manager/circleci/extract.js.map +1 -1
- package/dist/modules/manager/circleci/schema.d.ts +33 -144
- package/dist/modules/manager/circleci/schema.js +21 -17
- package/dist/modules/manager/circleci/schema.js.map +1 -1
- 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 +32 -34
- 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 +18 -6
- package/dist/modules/manager/composer/utils.js.map +1 -1
- package/dist/modules/manager/conan/artifacts.d.ts +2 -0
- package/dist/modules/manager/conan/artifacts.js +76 -0
- package/dist/modules/manager/conan/artifacts.js.map +1 -0
- package/dist/modules/manager/conan/index.d.ts +2 -0
- package/dist/modules/manager/conan/index.js +4 -1
- package/dist/modules/manager/conan/index.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/crossplane/schema.d.ts +2 -2
- package/dist/modules/manager/custom/jsonata/index.js +4 -0
- package/dist/modules/manager/custom/jsonata/index.js.map +1 -1
- package/dist/modules/manager/custom/jsonata/schema.d.ts +21 -21
- 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 +35 -11
- 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/dockerfile/extract.js +2 -6
- package/dist/modules/manager/dockerfile/extract.js.map +1 -1
- package/dist/modules/manager/fingerprint.generated.js +86 -85
- package/dist/modules/manager/fingerprint.generated.js.map +1 -1
- 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 +130 -154
- 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/glasskube/schema.d.ts +8 -8
- package/dist/modules/manager/gomod/artifacts-extra.js +12 -4
- package/dist/modules/manager/gomod/artifacts-extra.js.map +1 -1
- 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 +5 -3
- 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/extract.js +8 -13
- package/dist/modules/manager/gradle/extract.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 +17 -24
- package/dist/modules/manager/gradle/parser/handlers.js.map +1 -1
- package/dist/modules/manager/gradle/parser/registry-urls.js +46 -12
- package/dist/modules/manager/gradle/parser/registry-urls.js.map +1 -1
- package/dist/modules/manager/gradle/types.d.ts +1 -0
- package/dist/modules/manager/gradle/types.js.map +1 -1
- package/dist/modules/manager/gradle-wrapper/artifacts.js +1 -2
- 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/extract.js +4 -4
- package/dist/modules/manager/maven/extract.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/mise/extract.js +1 -1
- package/dist/modules/manager/mise/extract.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 +20 -20
- package/dist/modules/manager/nix/schema.js +1 -0
- package/dist/modules/manager/nix/schema.js.map +1 -1
- 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/common/package-file.js +1 -0
- package/dist/modules/manager/npm/extract/common/package-file.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/schema.d.ts +13 -13
- 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/extract.js +21 -18
- package/dist/modules/manager/nuget/extract.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/schema.d.ts +8 -8
- package/dist/modules/manager/nuget/util.js +4 -1
- package/dist/modules/manager/nuget/util.js.map +1 -1
- package/dist/modules/manager/ocb/schema.d.ts +6 -6
- 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 +346 -54
- package/dist/modules/manager/pep621/schema.js +2 -0
- package/dist/modules/manager/pep621/schema.js.map +1 -1
- package/dist/modules/manager/pep621/utils.js +1 -1
- package/dist/modules/manager/pep621/utils.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/pip_requirements/common.js +2 -6
- package/dist/modules/manager/pip_requirements/common.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 +78 -0
- package/dist/modules/manager/pixi/artifacts.js.map +1 -0
- package/dist/modules/manager/pixi/extract.d.ts +4 -0
- package/dist/modules/manager/pixi/extract.js +131 -0
- package/dist/modules/manager/pixi/extract.js.map +1 -0
- package/dist/modules/manager/pixi/index.d.ts +10 -0
- package/dist/modules/manager/pixi/index.js +20 -0
- package/dist/modules/manager/pixi/index.js.map +1 -0
- package/dist/modules/manager/pixi/schema.d.ts +405 -0
- package/dist/modules/manager/pixi/schema.js +147 -0
- package/dist/modules/manager/pixi/schema.js.map +1 -0
- package/dist/modules/manager/poetry/artifacts.js +3 -4
- package/dist/modules/manager/poetry/artifacts.js.map +1 -1
- package/dist/modules/manager/poetry/extract.js +2 -1
- package/dist/modules/manager/poetry/extract.js.map +1 -1
- package/dist/modules/manager/poetry/schema.d.ts +48 -48
- 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/sveltos/schema.d.ts +30 -42
- package/dist/modules/manager/terraform/lockfile/hash.d.ts +1 -1
- package/dist/modules/manager/terraform/util.js +1 -3
- package/dist/modules/manager/terraform/util.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 +7 -7
- package/dist/modules/platform/api.d.ts +1 -1
- 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.d.ts +1 -0
- package/dist/modules/platform/bitbucket/index.js +54 -44
- package/dist/modules/platform/bitbucket/index.js.map +1 -1
- package/dist/modules/platform/bitbucket/schema.d.ts +14 -14
- 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 +3 -3
- package/dist/modules/platform/bitbucket-server/index.js +81 -81
- 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/schema.d.ts +76 -0
- package/dist/modules/platform/bitbucket-server/schema.js +15 -1
- package/dist/modules/platform/bitbucket-server/schema.js.map +1 -1
- package/dist/modules/platform/bitbucket-server/types.d.ts +8 -2
- package/dist/modules/platform/bitbucket-server/types.js.map +1 -1
- package/dist/modules/platform/bitbucket-server/utils.d.ts +0 -2
- package/dist/modules/platform/bitbucket-server/utils.js +6 -52
- 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.d.ts +0 -3
- package/dist/modules/platform/gerrit/client.js +20 -29
- package/dist/modules/platform/gerrit/client.js.map +1 -1
- package/dist/modules/platform/gerrit/index.js +0 -6
- package/dist/modules/platform/gerrit/index.js.map +1 -1
- package/dist/modules/platform/gerrit/scm.js +5 -6
- package/dist/modules/platform/gerrit/scm.js.map +1 -1
- package/dist/modules/platform/gerrit/types.d.ts +1 -4
- package/dist/modules/platform/gerrit/types.js.map +1 -1
- package/dist/modules/platform/gerrit/utils.d.ts +3 -2
- package/dist/modules/platform/gerrit/utils.js +4 -8
- 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.d.ts +1 -0
- package/dist/modules/platform/gitea/index.js +33 -16
- package/dist/modules/platform/gitea/index.js.map +1 -1
- package/dist/modules/platform/gitea/schema.d.ts +8 -8
- 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/common.d.ts +2 -0
- package/dist/modules/platform/github/common.js +16 -0
- package/dist/modules/platform/github/common.js.map +1 -1
- package/dist/modules/platform/github/index.d.ts +1 -1
- package/dist/modules/platform/github/index.js +87 -82
- package/dist/modules/platform/github/index.js.map +1 -1
- package/dist/modules/platform/github/issue.d.ts +18 -18
- 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 +128 -128
- 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.d.ts +1 -0
- package/dist/modules/platform/gitlab/index.js +72 -49
- 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/platform/scm.d.ts +1 -1
- package/dist/modules/versioning/api.js +2 -0
- package/dist/modules/versioning/api.js.map +1 -1
- package/dist/modules/versioning/composer/index.js +10 -0
- package/dist/modules/versioning/composer/index.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/distro.js +1 -3
- package/dist/modules/versioning/distro.js.map +1 -1
- 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/modules/versioning/npm/index.js +2 -1
- package/dist/modules/versioning/npm/index.js.map +1 -1
- package/dist/modules/versioning/schema.js +1 -1
- package/dist/modules/versioning/schema.js.map +1 -1
- package/dist/modules/versioning/types.d.ts +4 -0
- package/dist/modules/versioning/types.js.map +1 -1
- package/dist/proxy.js +2 -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/decorator.js +2 -2
- package/dist/util/cache/package/decorator.js.map +1 -1
- package/dist/util/cache/package/redis.js +0 -1
- package/dist/util/cache/package/redis.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/impl/base.d.ts +1 -1
- package/dist/util/cache/repository/impl/base.js +4 -0
- package/dist/util/cache/repository/impl/base.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/common.d.ts +4 -2
- package/dist/util/common.js +17 -3
- package/dist/util/common.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 +19 -14
- 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/auth.js +8 -5
- package/dist/util/git/auth.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 +75 -52
- package/dist/util/git/index.js.map +1 -1
- package/dist/util/git/private-key.js +2 -4
- package/dist/util/git/private-key.js.map +1 -1
- package/dist/util/git/types.d.ts +2 -0
- package/dist/util/git/types.js.map +1 -1
- package/dist/util/git/url.js +1 -1
- package/dist/util/git/url.js.map +1 -1
- package/dist/util/github/graphql/datasource-fetcher.js +3 -5
- package/dist/util/github/graphql/datasource-fetcher.js.map +1 -1
- package/dist/util/github/graphql/query-adapters/releases-query-adapter.d.ts +2 -2
- package/dist/util/github/graphql/query-adapters/tags-query-adapter.d.ts +2 -2
- package/dist/util/http/auth.js +0 -1
- package/dist/util/http/auth.js.map +1 -1
- package/dist/util/http/bitbucket-server.d.ts +7 -5
- package/dist/util/http/bitbucket-server.js +26 -23
- package/dist/util/http/bitbucket-server.js.map +1 -1
- package/dist/util/http/bitbucket.d.ts +6 -5
- package/dist/util/http/bitbucket.js +34 -31
- 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/cache/package-http-cache-provider.d.ts +23 -0
- package/dist/util/http/cache/package-http-cache-provider.js +80 -0
- package/dist/util/http/cache/package-http-cache-provider.js.map +1 -0
- package/dist/util/http/cache/schema.d.ts +2 -2
- package/dist/util/http/errors.d.ts +2 -0
- package/dist/util/http/errors.js +8 -0
- package/dist/util/http/errors.js.map +1 -0
- package/dist/util/http/gerrit.d.ts +6 -4
- package/dist/util/http/gerrit.js +11 -12
- package/dist/util/http/gerrit.js.map +1 -1
- package/dist/util/http/gitea.d.ts +5 -4
- package/dist/util/http/gitea.js +14 -13
- package/dist/util/http/gitea.js.map +1 -1
- package/dist/util/http/github.d.ts +14 -8
- package/dist/util/http/github.js +65 -60
- package/dist/util/http/github.js.map +1 -1
- package/dist/util/http/gitlab.d.ts +7 -5
- package/dist/util/http/gitlab.js +58 -46
- package/dist/util/http/gitlab.js.map +1 -1
- package/dist/util/http/got.d.ts +9 -0
- package/dist/util/http/got.js +54 -0
- package/dist/util/http/got.js.map +1 -0
- package/dist/util/http/host-rules.d.ts +2 -1
- package/dist/util/http/host-rules.js +17 -4
- package/dist/util/http/host-rules.js.map +1 -1
- package/dist/util/http/http.d.ts +93 -0
- package/dist/util/http/http.js +346 -0
- package/dist/util/http/http.js.map +1 -0
- package/dist/util/http/index.d.ts +6 -74
- package/dist/util/http/index.js +5 -359
- package/dist/util/http/index.js.map +1 -1
- package/dist/util/http/legacy.js +4 -1
- package/dist/util/http/legacy.js.map +1 -1
- package/dist/util/http/types.d.ts +9 -16
- package/dist/util/http/types.js.map +1 -1
- package/dist/util/schema-utils.d.ts +1 -0
- package/dist/util/schema-utils.js +43 -8
- package/dist/util/schema-utils.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/util/string.d.ts +16 -0
- package/dist/util/string.js +79 -0
- package/dist/util/string.js.map +1 -1
- package/dist/util/toml.d.ts +1 -0
- package/dist/util/toml.js +6 -0
- package/dist/util/toml.js.map +1 -1
- package/dist/util/url.js +3 -8
- package/dist/util/url.js.map +1 -1
- package/dist/util/yaml.js +3 -8
- package/dist/util/yaml.js.map +1 -1
- package/dist/workers/global/config/parse/env.js +3 -2
- package/dist/workers/global/config/parse/env.js.map +1 -1
- package/dist/workers/global/config/parse/file.js +19 -9
- package/dist/workers/global/config/parse/file.js.map +1 -1
- package/dist/workers/global/config/parse/host-rules-from-env.js +6 -2
- package/dist/workers/global/config/parse/host-rules-from-env.js.map +1 -1
- package/dist/workers/global/config/parse/index.js +15 -0
- package/dist/workers/global/config/parse/index.js.map +1 -1
- package/dist/workers/global/index.js +4 -2
- package/dist/workers/global/index.js.map +1 -1
- package/dist/workers/repository/cache.js +1 -2
- 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/onboarding/pr/config-description.js +3 -1
- package/dist/workers/repository/onboarding/pr/config-description.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 +15 -4
- package/dist/workers/repository/process/lookup/index.js.map +1 -1
- package/dist/workers/repository/process/lookup/timestamps.d.ts +18 -0
- package/dist/workers/repository/process/lookup/timestamps.js +69 -0
- package/dist/workers/repository/process/lookup/timestamps.js.map +1 -0
- package/dist/workers/repository/process/lookup/types.d.ts +1 -0
- package/dist/workers/repository/process/lookup/types.js.map +1 -1
- package/dist/workers/repository/process/lookup/utils.js +20 -9
- package/dist/workers/repository/process/lookup/utils.js.map +1 -1
- package/dist/workers/repository/process/sort.js +1 -1
- package/dist/workers/repository/process/sort.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/utils.d.ts +2 -0
- package/dist/workers/repository/reconfigure/utils.js +16 -0
- package/dist/workers/repository/reconfigure/utils.js.map +1 -1
- package/dist/workers/repository/reconfigure/validate.js +6 -17
- package/dist/workers/repository/reconfigure/validate.js.map +1 -1
- package/dist/workers/repository/update/branch/auto-replace.js +25 -5
- package/dist/workers/repository/update/branch/auto-replace.js.map +1 -1
- package/dist/workers/repository/update/branch/commit.js +2 -0
- package/dist/workers/repository/update/branch/commit.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/body/config-description.js +26 -1
- package/dist/workers/repository/update/pr/body/config-description.js.map +1 -1
- package/dist/workers/repository/update/pr/body/index.js +21 -14
- package/dist/workers/repository/update/pr/body/index.js.map +1 -1
- package/dist/workers/repository/update/pr/changelog/api.js +8 -6
- package/dist/workers/repository/update/pr/changelog/api.js.map +1 -1
- package/dist/workers/repository/update/pr/changelog/bitbucket/index.js +1 -1
- package/dist/workers/repository/update/pr/changelog/bitbucket/index.js.map +1 -1
- package/dist/workers/repository/update/pr/changelog/bitbucket-server/index.d.ts +3 -0
- package/dist/workers/repository/update/pr/changelog/bitbucket-server/index.js +39 -0
- package/dist/workers/repository/update/pr/changelog/bitbucket-server/index.js.map +1 -0
- package/dist/workers/repository/update/pr/changelog/bitbucket-server/source.d.ts +8 -0
- package/dist/workers/repository/update/pr/changelog/bitbucket-server/source.js +31 -0
- package/dist/workers/repository/update/pr/changelog/bitbucket-server/source.js.map +1 -0
- 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/gitlab/index.js +1 -1
- package/dist/workers/repository/update/pr/changelog/gitlab/index.js.map +1 -1
- package/dist/workers/repository/update/pr/changelog/release-notes.js +12 -8
- package/dist/workers/repository/update/pr/changelog/release-notes.js.map +1 -1
- package/dist/workers/repository/update/pr/changelog/source.d.ts +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/update/pr/changelog/types.d.ts +1 -1
- package/dist/workers/repository/update/pr/changelog/types.js.map +1 -1
- package/dist/workers/repository/update/pr/index.js +2 -4
- package/dist/workers/repository/update/pr/index.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 +3 -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 +85 -85
- package/renovate-schema.json +24 -3
- 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
@@ -1,10 +1,10 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
-
export declare const PagedSourceResultsSchema: z.ZodObject<
|
2
|
+
export declare const PagedSourceResultsSchema: z.ZodObject<{
|
3
3
|
page: z.ZodOptional<z.ZodNumber>;
|
4
4
|
pagelen: z.ZodNumber;
|
5
5
|
size: z.ZodOptional<z.ZodNumber>;
|
6
6
|
next: z.ZodOptional<z.ZodString>;
|
7
|
-
}
|
7
|
+
} & {
|
8
8
|
values: z.ZodArray<z.ZodObject<{
|
9
9
|
path: z.ZodString;
|
10
10
|
type: z.ZodEnum<["commit_directory", "commit_file"]>;
|
@@ -16,42 +16,42 @@ export declare const PagedSourceResultsSchema: z.ZodObject<z.objectUtil.extendSh
|
|
16
16
|
hash: string;
|
17
17
|
}>;
|
18
18
|
}, "strip", z.ZodTypeAny, {
|
19
|
-
type: "commit_directory" | "commit_file";
|
20
19
|
path: string;
|
21
20
|
commit: {
|
22
21
|
hash: string;
|
23
22
|
};
|
24
|
-
}, {
|
25
23
|
type: "commit_directory" | "commit_file";
|
24
|
+
}, {
|
26
25
|
path: string;
|
27
26
|
commit: {
|
28
27
|
hash: string;
|
29
28
|
};
|
29
|
+
type: "commit_directory" | "commit_file";
|
30
30
|
}>, "many">;
|
31
|
-
}
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
32
32
|
values: {
|
33
|
-
type: "commit_directory" | "commit_file";
|
34
33
|
path: string;
|
35
34
|
commit: {
|
36
35
|
hash: string;
|
37
36
|
};
|
37
|
+
type: "commit_directory" | "commit_file";
|
38
38
|
}[];
|
39
39
|
pagelen: number;
|
40
|
-
page?: number | undefined;
|
41
40
|
size?: number | undefined;
|
42
41
|
next?: string | undefined;
|
42
|
+
page?: number | undefined;
|
43
43
|
}, {
|
44
44
|
values: {
|
45
|
-
type: "commit_directory" | "commit_file";
|
46
45
|
path: string;
|
47
46
|
commit: {
|
48
47
|
hash: string;
|
49
48
|
};
|
49
|
+
type: "commit_directory" | "commit_file";
|
50
50
|
}[];
|
51
51
|
pagelen: number;
|
52
|
-
page?: number | undefined;
|
53
52
|
size?: number | undefined;
|
54
53
|
next?: string | undefined;
|
54
|
+
page?: number | undefined;
|
55
55
|
}>;
|
56
56
|
export declare const RepoInfo: z.ZodEffects<z.ZodObject<{
|
57
57
|
parent: z.ZodCatch<z.ZodOptional<z.ZodUnknown>>;
|
@@ -75,15 +75,15 @@ export declare const RepoInfo: z.ZodEffects<z.ZodObject<{
|
|
75
75
|
}>>>;
|
76
76
|
}, "strip", z.ZodTypeAny, {
|
77
77
|
uuid: string;
|
78
|
-
project: {
|
79
|
-
name: string;
|
80
|
-
} | null;
|
81
78
|
mainbranch: {
|
82
79
|
name: string;
|
83
80
|
};
|
84
81
|
has_issues: boolean;
|
85
82
|
full_name: string;
|
86
83
|
is_private: boolean;
|
84
|
+
project: {
|
85
|
+
name: string;
|
86
|
+
} | null;
|
87
87
|
parent?: unknown;
|
88
88
|
}, {
|
89
89
|
uuid: string;
|
@@ -92,9 +92,9 @@ export declare const RepoInfo: z.ZodEffects<z.ZodObject<{
|
|
92
92
|
};
|
93
93
|
full_name: string;
|
94
94
|
parent?: unknown;
|
95
|
-
project?: unknown;
|
96
95
|
has_issues?: unknown;
|
97
96
|
is_private?: unknown;
|
97
|
+
project?: unknown;
|
98
98
|
}>, {
|
99
99
|
isFork: boolean;
|
100
100
|
owner: string;
|
@@ -112,9 +112,9 @@ export declare const RepoInfo: z.ZodEffects<z.ZodObject<{
|
|
112
112
|
};
|
113
113
|
full_name: string;
|
114
114
|
parent?: unknown;
|
115
|
-
project?: unknown;
|
116
115
|
has_issues?: unknown;
|
117
116
|
is_private?: unknown;
|
117
|
+
project?: unknown;
|
118
118
|
}>;
|
119
119
|
export type RepoInfo = z.infer<typeof RepoInfo>;
|
120
120
|
export declare const Repositories: z.ZodEffects<z.ZodObject<{
|
@@ -38,9 +38,9 @@ function prInfo(pr) {
|
|
38
38
|
sourceBranch: pr.source?.branch?.name,
|
39
39
|
targetBranch: pr.destination?.branch?.name,
|
40
40
|
title: pr.title,
|
41
|
-
state: exports.prStates.closed?.includes(pr.state)
|
42
|
-
?
|
43
|
-
: pr.state?.toLowerCase()
|
41
|
+
state: /* v8 ignore start */ exports.prStates.closed?.includes(pr.state)
|
42
|
+
? 'closed'
|
43
|
+
: pr.state?.toLowerCase() /* v8 ignore stop */,
|
44
44
|
createdAt: pr.created_on,
|
45
45
|
};
|
46
46
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../lib/modules/platform/bitbucket/utils.ts"],"names":[],"mappings":";;;AAmBA,oDAaC;AAgBD,wBAYC;AA1DD,wCAA6C;AAS7C,MAAM,wBAAwB,GAAG,IAAI,GAAG,CACtC;IACE,CAAC,QAAQ,EAAE,QAAQ,CAAC;IACpB,CAAC,cAAc,EAAE,cAAc,CAAC;IAChC,CAAC,cAAc,EAAE,cAAc,CAAC;CACjC,CACF,CAAC;AAEF,SAAgB,oBAAoB,CAClC,aAAwC;IAExC,MAAM,IAAI,GAAqB;QAC7B,mBAAmB,EAAE,IAAI;KAC1B,CAAC;IAEF,yEAAyE;IACzE,IAAI,aAAa,IAAI,aAAa,KAAK,MAAM,EAAE,CAAC;QAC9C,IAAI,CAAC,cAAc,GAAG,wBAAwB,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IACpE,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAEY,QAAA,QAAQ,GAAG;IACtB,IAAI,EAAE,CAAC,MAAM,CAAC;IACd,OAAO,EAAE,CAAC,QAAQ,EAAE,UAAU,EAAE,YAAY,CAAC;IAC7C,MAAM,EAAE,CAAC,QAAQ,CAAC;IAClB,MAAM,EAAE,CAAC,UAAU,EAAE,YAAY,CAAC;IAClC,GAAG,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,YAAY,CAAC;CAClD,CAAC;AAEW,QAAA,WAAW,GAA+C;IACrE,KAAK,EAAE,YAAY;IACnB,GAAG,EAAE,QAAQ;IACb,MAAM,EAAE,YAAY;CACrB,CAAC;AAEF,SAAgB,MAAM,CAAC,EAAc;IACnC,OAAO;QACL,MAAM,EAAE,EAAE,CAAC,EAAE;QACb,UAAU,EAAE,IAAA,yBAAe,EAAC,EAAE,CAAC,OAAO,EAAE,GAAG,CAAC;QAC5C,YAAY,EAAE,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI;QACrC,YAAY,EAAE,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI;QAC1C,KAAK,EAAE,EAAE,CAAC,KAAK;QACf,KAAK,EAAE,gBAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC;
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../lib/modules/platform/bitbucket/utils.ts"],"names":[],"mappings":";;;AAmBA,oDAaC;AAgBD,wBAYC;AA1DD,wCAA6C;AAS7C,MAAM,wBAAwB,GAAG,IAAI,GAAG,CACtC;IACE,CAAC,QAAQ,EAAE,QAAQ,CAAC;IACpB,CAAC,cAAc,EAAE,cAAc,CAAC;IAChC,CAAC,cAAc,EAAE,cAAc,CAAC;CACjC,CACF,CAAC;AAEF,SAAgB,oBAAoB,CAClC,aAAwC;IAExC,MAAM,IAAI,GAAqB;QAC7B,mBAAmB,EAAE,IAAI;KAC1B,CAAC;IAEF,yEAAyE;IACzE,IAAI,aAAa,IAAI,aAAa,KAAK,MAAM,EAAE,CAAC;QAC9C,IAAI,CAAC,cAAc,GAAG,wBAAwB,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IACpE,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAEY,QAAA,QAAQ,GAAG;IACtB,IAAI,EAAE,CAAC,MAAM,CAAC;IACd,OAAO,EAAE,CAAC,QAAQ,EAAE,UAAU,EAAE,YAAY,CAAC;IAC7C,MAAM,EAAE,CAAC,QAAQ,CAAC;IAClB,MAAM,EAAE,CAAC,UAAU,EAAE,YAAY,CAAC;IAClC,GAAG,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,YAAY,CAAC;CAClD,CAAC;AAEW,QAAA,WAAW,GAA+C;IACrE,KAAK,EAAE,YAAY;IACnB,GAAG,EAAE,QAAQ;IACb,MAAM,EAAE,YAAY;CACrB,CAAC;AAEF,SAAgB,MAAM,CAAC,EAAc;IACnC,OAAO;QACL,MAAM,EAAE,EAAE,CAAC,EAAE;QACb,UAAU,EAAE,IAAA,yBAAe,EAAC,EAAE,CAAC,OAAO,EAAE,GAAG,CAAC;QAC5C,YAAY,EAAE,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI;QACrC,YAAY,EAAE,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI;QAC1C,KAAK,EAAE,EAAE,CAAC,KAAK;QACf,KAAK,EAAE,qBAAqB,CAAC,gBAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC;YAC9D,CAAC,CAAC,QAAQ;YACV,CAAC,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,CAAC,oBAAoB;QAChD,SAAS,EAAE,EAAE,CAAC,UAAU;KACzB,CAAC;AACJ,CAAC;AAEY,QAAA,cAAc,GAAG;IAC5B,WAAW;IACX,cAAc;IACd,cAAc;IACd,2BAA2B;IAC3B,oBAAoB;IACpB,2BAA2B;IAC3B,gCAAgC;IAChC,+BAA+B;IAC/B,uBAAuB;IACvB,2BAA2B;IAC3B,iCAAiC;IACjC,mBAAmB;IACnB,mBAAmB;CACpB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC","sourcesContent":["import type { MergeStrategy } from '../../../config/types';\nimport type { BranchStatus } from '../../../types';\nimport { getPrBodyStruct } from '../pr-body';\nimport type { Pr } from '../types';\nimport type {\n BitbucketBranchState,\n BitbucketMergeStrategy,\n MergeRequestBody,\n PrResponse,\n} from './types';\n\nconst bitbucketMergeStrategies = new Map<MergeStrategy, BitbucketMergeStrategy>(\n [\n ['squash', 'squash'],\n ['merge-commit', 'merge_commit'],\n ['fast-forward', 'fast_forward'],\n ],\n);\n\nexport function mergeBodyTransformer(\n mergeStrategy: MergeStrategy | undefined,\n): MergeRequestBody {\n const body: MergeRequestBody = {\n close_source_branch: true,\n };\n\n // The `auto` strategy will use the strategy configured inside Bitbucket.\n if (mergeStrategy && mergeStrategy !== 'auto') {\n body.merge_strategy = bitbucketMergeStrategies.get(mergeStrategy);\n }\n\n return body;\n}\n\nexport const prStates = {\n open: ['OPEN'],\n notOpen: ['MERGED', 'DECLINED', 'SUPERSEDED'],\n merged: ['MERGED'],\n closed: ['DECLINED', 'SUPERSEDED'],\n all: ['OPEN', 'MERGED', 'DECLINED', 'SUPERSEDED'],\n};\n\nexport const buildStates: Record<BranchStatus, BitbucketBranchState> = {\n green: 'SUCCESSFUL',\n red: 'FAILED',\n yellow: 'INPROGRESS',\n};\n\nexport function prInfo(pr: PrResponse): Pr {\n return {\n number: pr.id,\n bodyStruct: getPrBodyStruct(pr.summary?.raw),\n sourceBranch: pr.source?.branch?.name,\n targetBranch: pr.destination?.branch?.name,\n title: pr.title,\n state: /* v8 ignore start */ prStates.closed?.includes(pr.state)\n ? 'closed'\n : pr.state?.toLowerCase() /* v8 ignore stop */,\n createdAt: pr.created_on,\n };\n}\n\nexport const prFieldsFilter = [\n 'values.id',\n 'values.title',\n 'values.state',\n 'values.links.commits.href',\n 'values.summary.raw',\n 'values.source.branch.name',\n 'values.destination.branch.name',\n 'values.reviewers.display_name',\n 'values.reviewers.uuid',\n 'values.reviewers.nickname',\n 'values.reviewers.account_status',\n 'values.created_on',\n 'values.updated_on',\n].join(',');\n"]}
|
@@ -9,8 +9,8 @@ export declare function getJsonFile(fileName: string, repoName?: string, branchO
|
|
9
9
|
export declare function initRepo({ repository, cloneSubmodules, cloneSubmodulesFilter, ignorePrAuthor, gitUrl, }: RepoParams): Promise<RepoResult>;
|
10
10
|
export declare function getBranchForceRebase(_branchName: string): Promise<boolean>;
|
11
11
|
export declare function getPr(prNo: number, refreshCache?: boolean): Promise<BbsPr | null>;
|
12
|
-
export declare function getPrList(
|
13
|
-
export declare function findPr({ branchName, prTitle, state,
|
12
|
+
export declare function getPrList(): Promise<Pr[]>;
|
13
|
+
export declare function findPr({ branchName, prTitle, state, includeOtherAuthors, }: FindPRConfig): Promise<Pr | null>;
|
14
14
|
export declare function getBranchPr(branchName: string): Promise<BbsPr | null>;
|
15
15
|
export declare function refreshPr(number: number): Promise<void>;
|
16
16
|
export declare function getBranchStatus(branchName: string): Promise<BranchStatus>;
|
@@ -27,7 +27,7 @@ export declare function ensureComment({ number, topic, content, }: EnsureComment
|
|
27
27
|
export declare function ensureCommentRemoval(deleteConfig: EnsureCommentRemovalConfig): Promise<void>;
|
28
28
|
export declare function createPr({ sourceBranch, targetBranch, prTitle: title, prBody: rawDescription, platformPrOptions, }: CreatePRConfig): Promise<Pr>;
|
29
29
|
export declare function updatePr({ number: prNo, prTitle: title, prBody: rawDescription, state, bitbucketInvalidReviewers, targetBranch, }: UpdatePrConfig & {
|
30
|
-
bitbucketInvalidReviewers
|
30
|
+
bitbucketInvalidReviewers?: string[] | undefined;
|
31
31
|
}): Promise<void>;
|
32
32
|
export declare function mergePr({ branchName, id: prNo, }: MergePRConfig): Promise<boolean>;
|
33
33
|
export declare function massageMarkdown(input: string): string;
|
@@ -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
|
}
|
@@ -130,15 +135,15 @@ async function initPlatform({ endpoint, token, username, password, gitAuthor, })
|
|
130
135
|
async function getRepos() {
|
131
136
|
logger_1.logger.debug('Autodiscovering Bitbucket Server repositories');
|
132
137
|
try {
|
133
|
-
const repos = await
|
134
|
-
const result = repos.map((
|
138
|
+
const repos = (await bitbucketServerHttp.getJsonUnchecked(`./rest/api/1.0/repos?permission=REPO_WRITE&state=AVAILABLE`, { paginate: true })).body;
|
139
|
+
const result = repos.map((repo) => `${repo.project.key}/${repo.slug}`);
|
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 utils.accumulateValues(`./rest/api/1.0/projects/${config.projectKey}/repos/${config.repositorySlug}/pull-requests?${query}`);
|
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
|
@@ -287,14 +284,17 @@ async function findPr({ branchName, prTitle, state = 'all', refreshCache, includ
|
|
287
284
|
searchParams.direction = 'outgoing';
|
288
285
|
searchParams.at = `refs/heads/${branchName}`;
|
289
286
|
const query = (0, url_1.getQueryString)(searchParams);
|
290
|
-
const prs = await
|
287
|
+
const prs = (await bitbucketServerHttp.getJsonUnchecked(`./rest/api/1.0/projects/${config.projectKey}/repos/${config.repositorySlug}/pull-requests?${query}`, {
|
288
|
+
paginate: true,
|
289
|
+
limit: 1, // only fetch the latest pr
|
290
|
+
})).body;
|
291
291
|
if (!prs.length) {
|
292
292
|
logger_1.logger.debug(`No PR found for branch ${branchName}`);
|
293
293
|
return null;
|
294
294
|
}
|
295
295
|
return utils.prInfo(prs[0]);
|
296
296
|
}
|
297
|
-
const prList = await getPrList(
|
297
|
+
const prList = await getPrList();
|
298
298
|
const pr = prList.find(isRelevantPr(branchName, prTitle, state));
|
299
299
|
if (pr) {
|
300
300
|
logger_1.logger.debug(`Found PR #${pr.number}`);
|
@@ -303,7 +303,7 @@ async function findPr({ branchName, prTitle, state = 'all', refreshCache, includ
|
|
303
303
|
logger_1.logger.debug(`Renovate did not find a PR for branch #${branchName}`);
|
304
304
|
}
|
305
305
|
return pr ?? null;
|
306
|
-
}
|
306
|
+
} /* v8 ignore stop */
|
307
307
|
// Returns the Pull Request for a branch. Null if not exists.
|
308
308
|
async function getBranchPr(branchName) {
|
309
309
|
logger_1.logger.debug(`getBranchPr(${branchName})`);
|
@@ -313,18 +313,23 @@ async function getBranchPr(branchName) {
|
|
313
313
|
});
|
314
314
|
return existingPr ? getPr(existingPr.number) : null;
|
315
315
|
}
|
316
|
-
|
316
|
+
/* v8 ignore start */
|
317
317
|
async function refreshPr(number) {
|
318
318
|
// wait for pr change propagation
|
319
319
|
await (0, promises_1.setTimeout)(1000);
|
320
320
|
// refresh cache
|
321
321
|
await getPr(number, true);
|
322
|
-
}
|
322
|
+
} /* v8 ignore stop */
|
323
323
|
async function getStatus(branchName, memCache = true) {
|
324
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 */
|
325
330
|
return (await bitbucketServerHttp.getJsonUnchecked(
|
326
331
|
// TODO: types (#22198)
|
327
|
-
`./rest/build-status/1.0/commits/stats/${branchCommit}`,
|
332
|
+
`./rest/build-status/1.0/commits/stats/${branchCommit}`, opts)).body;
|
328
333
|
}
|
329
334
|
// Returns the combined status for a branch.
|
330
335
|
// umbrella for status checks
|
@@ -351,11 +356,18 @@ async function getBranchStatus(branchName) {
|
|
351
356
|
return 'red';
|
352
357
|
}
|
353
358
|
}
|
354
|
-
function getStatusCheck(branchName, memCache = true) {
|
359
|
+
async function getStatusCheck(branchName, memCache = true) {
|
355
360
|
const branchCommit = git.getBranchCommit(branchName);
|
356
|
-
|
357
|
-
|
358
|
-
|
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;
|
359
371
|
}
|
360
372
|
// https://docs.atlassian.com/bitbucket-server/rest/6.0.0/bitbucket-build-rest.html#idp2
|
361
373
|
async function getBranchStatusCheck(branchName, context) {
|
@@ -419,7 +431,7 @@ async function setBranchStatus({ branchName, context, description, state, url: t
|
|
419
431
|
}
|
420
432
|
}
|
421
433
|
// Issue
|
422
|
-
/*
|
434
|
+
/* v8 ignore start */
|
423
435
|
function findIssue(title) {
|
424
436
|
logger_1.logger.debug(`findIssue(${title})`);
|
425
437
|
// This is used by Renovate when creating its own issues,
|
@@ -428,8 +440,8 @@ function findIssue(title) {
|
|
428
440
|
//
|
429
441
|
// Bitbucket Server does not have issues
|
430
442
|
return Promise.resolve(null);
|
431
|
-
}
|
432
|
-
/*
|
443
|
+
} /* v8 ignore stop */
|
444
|
+
/* v8 ignore start */
|
433
445
|
function ensureIssue({ title, }) {
|
434
446
|
logger_1.logger.warn({ title }, 'Cannot ensure issue');
|
435
447
|
// This is used by Renovate when creating its own issues,
|
@@ -438,8 +450,8 @@ function ensureIssue({ title, }) {
|
|
438
450
|
//
|
439
451
|
// Bitbucket Server does not have issues
|
440
452
|
return Promise.resolve(null);
|
441
|
-
}
|
442
|
-
/*
|
453
|
+
} /* v8 ignore stop */
|
454
|
+
/* v8 ignore start */
|
443
455
|
function getIssueList() {
|
444
456
|
logger_1.logger.debug(`getIssueList()`);
|
445
457
|
// This is used by Renovate when creating its own issues,
|
@@ -448,8 +460,8 @@ function getIssueList() {
|
|
448
460
|
//
|
449
461
|
// Bitbucket Server does not have issues
|
450
462
|
return Promise.resolve([]);
|
451
|
-
}
|
452
|
-
/*
|
463
|
+
} /* v8 ignore stop */
|
464
|
+
/* v8 ignore start */
|
453
465
|
function ensureIssueClosing(title) {
|
454
466
|
logger_1.logger.debug(`ensureIssueClosing(${title})`);
|
455
467
|
// This is used by Renovate when creating its own issues,
|
@@ -458,7 +470,7 @@ function ensureIssueClosing(title) {
|
|
458
470
|
//
|
459
471
|
// Bitbucket Server does not have issues
|
460
472
|
return Promise.resolve();
|
461
|
-
}
|
473
|
+
} /* v8 ignore stop */
|
462
474
|
function addAssignees(iid, assignees) {
|
463
475
|
logger_1.logger.debug(`addAssignees(${iid}, [${assignees.join(', ')}])`);
|
464
476
|
// This is used by Renovate when creating its own issues,
|
@@ -538,9 +550,10 @@ function deleteLabel(issueNo, label) {
|
|
538
550
|
}
|
539
551
|
async function getComments(prNo) {
|
540
552
|
// GET /rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/activities
|
541
|
-
|
542
|
-
comments =
|
543
|
-
.filter((a) => a.action === 'COMMENTED' && a
|
553
|
+
const activities = (await bitbucketServerHttp.getJsonUnchecked(`./rest/api/1.0/projects/${config.projectKey}/repos/${config.repositorySlug}/pull-requests/${prNo}/activities`, { paginate: true })).body;
|
554
|
+
const comments = activities
|
555
|
+
.filter((a) => a.action === 'COMMENTED' && 'comment' in a && 'commentAction' in a)
|
556
|
+
.filter((a) => a.commentAction === 'ADDED')
|
544
557
|
.map((a) => a.comment);
|
545
558
|
logger_1.logger.debug(`Found ${comments.length} comments`);
|
546
559
|
return comments;
|
@@ -608,10 +621,10 @@ async function ensureComment({ number, topic, content, }) {
|
|
608
621
|
}
|
609
622
|
return true;
|
610
623
|
}
|
611
|
-
catch (err) /*
|
624
|
+
catch (err) /* v8 ignore start */ {
|
612
625
|
logger_1.logger.warn({ err }, 'Error ensuring comment');
|
613
626
|
return false;
|
614
|
-
}
|
627
|
+
} /* v8 ignore stop */
|
615
628
|
}
|
616
629
|
async function ensureCommentRemoval(deleteConfig) {
|
617
630
|
try {
|
@@ -634,9 +647,9 @@ async function ensureCommentRemoval(deleteConfig) {
|
|
634
647
|
await deleteComment(prNo, commentId);
|
635
648
|
}
|
636
649
|
}
|
637
|
-
catch (err) /*
|
650
|
+
catch (err) /* v8 ignore start */ {
|
638
651
|
logger_1.logger.warn({ err }, 'Error ensuring comment removal');
|
639
|
-
}
|
652
|
+
} /* v8 ignore stop */
|
640
653
|
}
|
641
654
|
// Pull Request
|
642
655
|
const escapeHash = (input) => input?.replace((0, regex_1.regEx)(/#/g), '%23');
|
@@ -668,7 +681,7 @@ async function createPr({ sourceBranch, targetBranch, prTitle: title, prBody: ra
|
|
668
681
|
try {
|
669
682
|
prInfoRes = await bitbucketServerHttp.postJson(`./rest/api/1.0/projects/${config.projectKey}/repos/${config.repositorySlug}/pull-requests`, { body });
|
670
683
|
}
|
671
|
-
catch (err) /*
|
684
|
+
catch (err) /* v8 ignore start */ {
|
672
685
|
if (err.body?.errors?.[0]?.exceptionName ===
|
673
686
|
'com.atlassian.bitbucket.pull.EmptyPullRequestException') {
|
674
687
|
logger_1.logger.debug('Empty pull request - deleting branch so it can be recreated next run');
|
@@ -676,16 +689,13 @@ async function createPr({ sourceBranch, targetBranch, prTitle: title, prBody: ra
|
|
676
689
|
throw new Error(error_messages_1.REPOSITORY_CHANGED);
|
677
690
|
}
|
678
691
|
throw err;
|
679
|
-
}
|
692
|
+
} /* v8 ignore stop */
|
680
693
|
const pr = {
|
681
694
|
...utils.prInfo(prInfoRes.body),
|
682
695
|
};
|
683
696
|
// TODO #22198
|
684
697
|
updatePrVersion(pr.number, pr.version);
|
685
|
-
|
686
|
-
if (config.prList) {
|
687
|
-
config.prList.push(pr);
|
688
|
-
}
|
698
|
+
await pr_cache_1.BbsPrCache.setPr(bitbucketServerHttp, config.projectKey, config.repositorySlug, config.ignorePrAuthor, config.username, pr);
|
689
699
|
return pr;
|
690
700
|
}
|
691
701
|
async function updatePr({ number: prNo, prTitle: title, prBody: rawDescription, state, bitbucketInvalidReviewers, targetBranch, }) {
|
@@ -726,18 +736,8 @@ async function updatePr({ number: prNo, prTitle: title, prBody: rawDescription,
|
|
726
736
|
finalState = state;
|
727
737
|
updatePrVersion(pr.number, updatedStatePr.version);
|
728
738
|
}
|
729
|
-
|
730
|
-
|
731
|
-
const existingIndex = config.prList.findIndex((item) => item.number === prNo);
|
732
|
-
// istanbul ignore if: should never happen
|
733
|
-
if (existingIndex === -1) {
|
734
|
-
logger_1.logger.warn({ pr: bbsPr }, 'Possible error: Updated PR was not found in the PRs that were returned from getPrList().');
|
735
|
-
config.prList.push({ ...bbsPr, state: finalState });
|
736
|
-
}
|
737
|
-
else {
|
738
|
-
config.prList[existingIndex] = { ...bbsPr, state: finalState };
|
739
|
-
}
|
740
|
-
}
|
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 });
|
741
741
|
}
|
742
742
|
catch (err) {
|
743
743
|
logger_1.logger.debug({ err, prNo }, `Failed to update PR`);
|