diff --git a/docs/usage/faq.md b/docs/usage/faq.md index 4fda340ee3c187380eba6d831c54e28ca98f3279..bfe5902dab1eba5ffecdcc87b88e6859351257c5 100644 --- a/docs/usage/faq.md +++ b/docs/usage/faq.md @@ -33,8 +33,8 @@ If you're self hosting Renovate, use the latest release if possible. | Feature | Platforms which lack feature | See Renovate issue(s) | | -------------------- | ---------------------------------------------------------- | ------------------------------------------------------------ | -| Dependency Dashboard | Azure, BitBucket, BitBucket Server | [#9592](https://github.com/renovatebot/renovate/issues/9592) | -| Hosted app | Azure, BitBucket, BitBucket Server, Forgejo, Gitea, GitLab | | +| Dependency Dashboard | Azure, Bitbucket, Bitbucket Server | [#9592](https://github.com/renovatebot/renovate/issues/9592) | +| Hosted app | Azure, Bitbucket, Bitbucket Server, Forgejo, Gitea, GitLab | | ## Major platform features not supported by Renovate diff --git a/lib/constants/platform.spec.ts b/lib/constants/platform.spec.ts index b663bd5db70cc5d7fddf7eb1b878d50213ed2382..d17b855807bc2b19bca9e381337911e5ecae8593 100644 --- a/lib/constants/platform.spec.ts +++ b/lib/constants/platform.spec.ts @@ -1,4 +1,4 @@ -import { BitBucketTagsDatasource } from '../modules/datasource/bitbucket-tags'; +import { BitbucketTagsDatasource } from '../modules/datasource/bitbucket-tags'; import { GithubReleasesDatasource } from '../modules/datasource/github-releases'; import { GithubTagsDatasource } from '../modules/datasource/github-tags'; import { GitlabPackagesDatasource } from '../modules/datasource/gitlab-packages'; @@ -58,7 +58,7 @@ describe('constants/platform', () => { it('should be part of the BITBUCKET_API_USING_HOST_TYPES ', () => { expect( - BITBUCKET_API_USING_HOST_TYPES.includes(BitBucketTagsDatasource.id) + BITBUCKET_API_USING_HOST_TYPES.includes(BitbucketTagsDatasource.id) ).toBeTrue(); expect(BITBUCKET_API_USING_HOST_TYPES.includes('bitbucket')).toBeTrue(); }); diff --git a/lib/modules/datasource/api.ts b/lib/modules/datasource/api.ts index 96139eb717e9ee1073dbb3813c0d6aea3063cc24..48ffd8c4c97cf053422b7deea2fb8445b13df52d 100644 --- a/lib/modules/datasource/api.ts +++ b/lib/modules/datasource/api.ts @@ -3,7 +3,7 @@ import { AwsMachineImageDataSource } from './aws-machine-image'; import { AwsRdsDataSource } from './aws-rds'; import { AzureBicepResourceDatasource } from './azure-bicep-resource'; import { AzurePipelinesTasksDatasource } from './azure-pipelines-tasks'; -import { BitBucketTagsDatasource } from './bitbucket-tags'; +import { BitbucketTagsDatasource } from './bitbucket-tags'; import { CdnJsDatasource } from './cdnjs'; import { ClojureDatasource } from './clojure'; import { ConanDatasource } from './conan'; @@ -62,7 +62,7 @@ api.set(AwsMachineImageDataSource.id, new AwsMachineImageDataSource()); api.set(AwsRdsDataSource.id, new AwsRdsDataSource()); api.set(AzureBicepResourceDatasource.id, new AzureBicepResourceDatasource()); api.set(AzurePipelinesTasksDatasource.id, new AzurePipelinesTasksDatasource()); -api.set(BitBucketTagsDatasource.id, new BitBucketTagsDatasource()); +api.set(BitbucketTagsDatasource.id, new BitbucketTagsDatasource()); api.set(CdnJsDatasource.id, new CdnJsDatasource()); api.set(ClojureDatasource.id, new ClojureDatasource()); api.set(ConanDatasource.id, new ConanDatasource()); diff --git a/lib/modules/datasource/bitbucket-tags/index.spec.ts b/lib/modules/datasource/bitbucket-tags/index.spec.ts index 79ac0913e9f30b17ac1e56c37e3850143c699445..d2340ea5791070f0dd8bce2d5cd09c85c99ddf78 100644 --- a/lib/modules/datasource/bitbucket-tags/index.spec.ts +++ b/lib/modules/datasource/bitbucket-tags/index.spec.ts @@ -1,8 +1,8 @@ import { getDigest, getPkgReleases } from '..'; import * as httpMock from '../../../../test/http-mock'; -import { BitBucketTagsDatasource } from '.'; +import { BitbucketTagsDatasource } from '.'; -const datasource = BitBucketTagsDatasource.id; +const datasource = BitbucketTagsDatasource.id; describe('modules/datasource/bitbucket-tags/index', () => { describe('getReleases', () => { diff --git a/lib/modules/datasource/bitbucket-tags/index.ts b/lib/modules/datasource/bitbucket-tags/index.ts index ff5c436bf95b775de2cf4b335a0bcc0b85438da9..10407dce691651db2296f8147b5456ead986c3ac 100644 --- a/lib/modules/datasource/bitbucket-tags/index.ts +++ b/lib/modules/datasource/bitbucket-tags/index.ts @@ -7,8 +7,8 @@ import { Datasource } from '../datasource'; import type { DigestConfig, GetReleasesConfig, ReleaseResult } from '../types'; import type { BitbucketCommit, BitbucketTag } from './types'; -export class BitBucketTagsDatasource extends Datasource { - bitbucketHttp = new BitbucketHttp(BitBucketTagsDatasource.id); +export class BitbucketTagsDatasource extends Datasource { + bitbucketHttp = new BitbucketHttp(BitbucketTagsDatasource.id); static readonly id = 'bitbucket-tags'; @@ -18,10 +18,10 @@ export class BitBucketTagsDatasource extends Datasource { static readonly defaultRegistryUrls = ['https://bitbucket.org']; - static readonly cacheNamespace = `datasource-${BitBucketTagsDatasource.id}`; + static readonly cacheNamespace = `datasource-${BitbucketTagsDatasource.id}`; constructor() { - super(BitBucketTagsDatasource.id); + super(BitbucketTagsDatasource.id); } static getRegistryURL(registryUrl?: string): string { @@ -34,22 +34,22 @@ export class BitBucketTagsDatasource extends Datasource { repo: string, type: string ): string { - return `${BitBucketTagsDatasource.getRegistryURL( + return `${BitbucketTagsDatasource.getRegistryURL( registryUrl )}:${repo}:${type}`; } static getSourceUrl(packageName: string, registryUrl?: string): string { - const url = BitBucketTagsDatasource.getRegistryURL(registryUrl); + const url = BitbucketTagsDatasource.getRegistryURL(registryUrl); const normalizedUrl = ensureTrailingSlash(url); return `${normalizedUrl}${packageName}`; } // getReleases fetches list of tags for the repository @cache({ - namespace: BitBucketTagsDatasource.cacheNamespace, + namespace: BitbucketTagsDatasource.cacheNamespace, key: ({ registryUrl, packageName }: GetReleasesConfig) => - BitBucketTagsDatasource.getCacheKey(registryUrl, packageName, 'tags'), + BitbucketTagsDatasource.getCacheKey(registryUrl, packageName, 'tags'), }) async getReleases({ registryUrl, @@ -59,8 +59,8 @@ export class BitBucketTagsDatasource extends Datasource { const bitbucketTags = await utils.accumulateValues(url); const dependency: ReleaseResult = { - sourceUrl: BitBucketTagsDatasource.getSourceUrl(repo, registryUrl), - registryUrl: BitBucketTagsDatasource.getRegistryURL(registryUrl), + sourceUrl: BitbucketTagsDatasource.getSourceUrl(repo, registryUrl), + registryUrl: BitbucketTagsDatasource.getRegistryURL(registryUrl), releases: bitbucketTags.map(({ name, target }) => ({ version: name, gitRef: name, @@ -73,9 +73,9 @@ export class BitBucketTagsDatasource extends Datasource { // getTagCommit fetched the commit has for specified tag @cache({ - namespace: BitBucketTagsDatasource.cacheNamespace, + namespace: BitbucketTagsDatasource.cacheNamespace, key: (registryUrl: string | undefined, repo: string, tag: string): string => - BitBucketTagsDatasource.getCacheKey(registryUrl, repo, `tag-${tag}`), + BitbucketTagsDatasource.getCacheKey(registryUrl, repo, `tag-${tag}`), }) async getTagCommit( _registryUrl: string | undefined, @@ -91,9 +91,9 @@ export class BitBucketTagsDatasource extends Datasource { } @cache({ - namespace: BitBucketTagsDatasource.cacheNamespace, + namespace: BitbucketTagsDatasource.cacheNamespace, key: (registryUrl: string, repo: string) => - BitBucketTagsDatasource.getCacheKey(registryUrl, repo, 'mainbranch'), + BitbucketTagsDatasource.getCacheKey(registryUrl, repo, 'mainbranch'), ttlMinutes: 60, }) async getMainBranch(repo: string): Promise<string> { @@ -107,9 +107,9 @@ export class BitBucketTagsDatasource extends Datasource { // getDigest fetched the latest commit for repository main branch // however, if newValue is provided, then getTagCommit is called @cache({ - namespace: BitBucketTagsDatasource.cacheNamespace, + namespace: BitbucketTagsDatasource.cacheNamespace, key: ({ registryUrl, packageName }: DigestConfig) => - BitBucketTagsDatasource.getCacheKey(registryUrl, packageName, 'digest'), + BitbucketTagsDatasource.getCacheKey(registryUrl, packageName, 'digest'), }) override async getDigest( { packageName: repo, registryUrl }: DigestConfig, diff --git a/lib/modules/datasource/go/base.ts b/lib/modules/datasource/go/base.ts index c8e8e557388392141c85959abec48015af021b09..55327a369c98b77876e7771264fbcb57899b046d 100644 --- a/lib/modules/datasource/go/base.ts +++ b/lib/modules/datasource/go/base.ts @@ -7,7 +7,7 @@ import * as hostRules from '../../../util/host-rules'; import { Http } from '../../../util/http'; import { regEx } from '../../../util/regex'; import { trimLeadingSlash, trimTrailingSlash } from '../../../util/url'; -import { BitBucketTagsDatasource } from '../bitbucket-tags'; +import { BitbucketTagsDatasource } from '../bitbucket-tags'; import { GitTagsDatasource } from '../git-tags'; import { GithubTagsDatasource } from '../github-tags'; import { GitlabTagsDatasource } from '../gitlab-tags'; @@ -53,7 +53,7 @@ export class BaseGoDatasource { const split = goModule.split('/'); const packageName = split[1] + '/' + split[2]; return { - datasource: BitBucketTagsDatasource.id, + datasource: BitbucketTagsDatasource.id, packageName, registryUrl: 'https://bitbucket.org', }; diff --git a/lib/modules/datasource/go/common.ts b/lib/modules/datasource/go/common.ts index 049478ba49748a977bf796672fe2620ae40f0197..593eca50b7522f052f8b759a67327f9199abca90 100644 --- a/lib/modules/datasource/go/common.ts +++ b/lib/modules/datasource/go/common.ts @@ -1,5 +1,5 @@ import { getSourceUrl as githubSourceUrl } from '../../../util/github/url'; -import { BitBucketTagsDatasource } from '../bitbucket-tags'; +import { BitbucketTagsDatasource } from '../bitbucket-tags'; import { GithubTagsDatasource } from '../github-tags'; import { GitlabTagsDatasource } from '../gitlab-tags'; import { getSourceUrl as gitlabSourceUrl } from '../gitlab-tags/util'; @@ -24,8 +24,8 @@ export function getSourceUrl( return gitlabSourceUrl(packageName, registryUrl); } - if (datasource === BitBucketTagsDatasource.id) { - return BitBucketTagsDatasource.getSourceUrl(packageName, registryUrl); + if (datasource === BitbucketTagsDatasource.id) { + return BitbucketTagsDatasource.getSourceUrl(packageName, registryUrl); } } diff --git a/lib/modules/datasource/go/index.ts b/lib/modules/datasource/go/index.ts index 89fcff28f1802cd8048a0d7b573b91948802f5cd..4da9a69ae2bf8df650962663125d0f0444ba58fc 100644 --- a/lib/modules/datasource/go/index.ts +++ b/lib/modules/datasource/go/index.ts @@ -3,7 +3,7 @@ import { cache } from '../../../util/cache/package/decorator'; import { regEx } from '../../../util/regex'; import { addSecretForSanitizing } from '../../../util/sanitize'; import { parseUrl } from '../../../util/url'; -import { BitBucketTagsDatasource } from '../bitbucket-tags'; +import { BitbucketTagsDatasource } from '../bitbucket-tags'; import { Datasource } from '../datasource'; import { GitTagsDatasource } from '../git-tags'; import { GithubTagsDatasource } from '../github-tags'; @@ -76,7 +76,7 @@ export class GoDatasource extends Datasource { case GithubTagsDatasource.id: { return this.direct.github.getDigest(source, tag); } - case BitBucketTagsDatasource.id: { + case BitbucketTagsDatasource.id: { return this.direct.bitbucket.getDigest?.(source, tag) ?? null; } case GitlabTagsDatasource.id: { diff --git a/lib/modules/datasource/go/releases-direct.ts b/lib/modules/datasource/go/releases-direct.ts index 07171bef6fda1ad364a1896486198e12308dbf68..b9fb0b61301cd4f1028ae44f97974111ad68b167 100644 --- a/lib/modules/datasource/go/releases-direct.ts +++ b/lib/modules/datasource/go/releases-direct.ts @@ -1,7 +1,7 @@ import { logger } from '../../../logger'; import { cache } from '../../../util/cache/package/decorator'; import { regEx } from '../../../util/regex'; -import { BitBucketTagsDatasource } from '../bitbucket-tags'; +import { BitbucketTagsDatasource } from '../bitbucket-tags'; import { Datasource } from '../datasource'; import { GitTagsDatasource } from '../git-tags'; import { GithubTagsDatasource } from '../github-tags'; @@ -16,14 +16,14 @@ export class GoDirectDatasource extends Datasource { git: GitTagsDatasource; github: GithubTagsDatasource; gitlab: GitlabTagsDatasource; - bitbucket: BitBucketTagsDatasource; + bitbucket: BitbucketTagsDatasource; constructor() { super(GoDirectDatasource.id); this.git = new GitTagsDatasource(); this.github = new GithubTagsDatasource(); this.gitlab = new GitlabTagsDatasource(); - this.bitbucket = new BitBucketTagsDatasource(); + this.bitbucket = new BitbucketTagsDatasource(); } /** @@ -70,7 +70,7 @@ export class GoDirectDatasource extends Datasource { res = await this.gitlab.getReleases(source); break; } - case BitBucketTagsDatasource.id: { + case BitbucketTagsDatasource.id: { res = await this.bitbucket.getReleases(source); break; } diff --git a/lib/modules/manager/bitbucket-pipelines/extract.ts b/lib/modules/manager/bitbucket-pipelines/extract.ts index 967bf2f9732325d0f26508931fe4a80de305642b..f033e89c2a2c6a9b4e8c54cca7a2ca9c57e60a5a 100644 --- a/lib/modules/manager/bitbucket-pipelines/extract.ts +++ b/lib/modules/manager/bitbucket-pipelines/extract.ts @@ -1,6 +1,6 @@ import { logger } from '../../../logger'; import { newlineRegex, regEx } from '../../../util/regex'; -import { BitBucketTagsDatasource } from '../../datasource/bitbucket-tags'; +import { BitbucketTagsDatasource } from '../../datasource/bitbucket-tags'; import { getDep } from '../dockerfile/extract'; import type { PackageDependency, PackageFileContent } from '../types'; @@ -47,7 +47,7 @@ function addDepAsBitbucketTag( const dep: PackageDependency = { depName, currentValue, - datasource: BitBucketTagsDatasource.id, + datasource: BitbucketTagsDatasource.id, }; dep.depType = 'bitbucket-tags'; deps.push(dep); diff --git a/lib/modules/manager/deps-edn/extract.ts b/lib/modules/manager/deps-edn/extract.ts index e3ddc9df7ac2d681b98ef379d5d8c8eb031e14e9..1684aba2acf2bf45fc717071ac2b7b3f3b04b8b4 100644 --- a/lib/modules/manager/deps-edn/extract.ts +++ b/lib/modules/manager/deps-edn/extract.ts @@ -1,6 +1,6 @@ import is from '@sindresorhus/is'; import { regEx } from '../../../util/regex'; -import { BitBucketTagsDatasource } from '../../datasource/bitbucket-tags'; +import { BitbucketTagsDatasource } from '../../datasource/bitbucket-tags'; import { ClojureDatasource } from '../../datasource/clojure'; import { CLOJARS_REPO } from '../../datasource/clojure/common'; import { GitRefsDatasource } from '../../datasource/git-refs'; @@ -66,7 +66,7 @@ function resolveGitPackageFromEdnKey( const bitbucketDependencyGroups = bitbucketDependencyRegex.exec(key)?.groups; if (bitbucketDependencyGroups?.packageName) { - dep.datasource = BitBucketTagsDatasource.id; + dep.datasource = BitbucketTagsDatasource.id; dep.packageName = bitbucketDependencyGroups.packageName; return; } diff --git a/lib/modules/manager/flux/extract.spec.ts b/lib/modules/manager/flux/extract.spec.ts index c4a77cf7f64c42e289705b545cb18648ef2ebe1a..6e8b4694637ab0970546fceec52ed79ad1f7802e 100644 --- a/lib/modules/manager/flux/extract.spec.ts +++ b/lib/modules/manager/flux/extract.spec.ts @@ -2,7 +2,7 @@ import { codeBlock } from 'common-tags'; import { Fixtures } from '../../../../test/fixtures'; import { GlobalConfig } from '../../../config/global'; import type { RepoGlobalConfig } from '../../../config/types'; -import { BitBucketTagsDatasource } from '../../datasource/bitbucket-tags'; +import { BitbucketTagsDatasource } from '../../datasource/bitbucket-tags'; import { DockerDatasource } from '../../datasource/docker'; import { GitRefsDatasource } from '../../datasource/git-refs'; import { GitTagsDatasource } from '../../datasource/git-tags'; @@ -455,7 +455,7 @@ describe('modules/manager/flux/extract', () => { deps: [ { currentValue: '2020.5.6+staging.ze', - datasource: BitBucketTagsDatasource.id, + datasource: BitbucketTagsDatasource.id, depName: 'renovate-repo', packageName: 'renovatebot/renovate', sourceUrl: 'https://bitbucket.org/renovatebot/renovate', diff --git a/lib/modules/manager/flux/extract.ts b/lib/modules/manager/flux/extract.ts index 91db3749a90c171f7bfd31ff57b7a55787b218e8..41bc404242f4ac278e5ca91dd9816125b89160fd 100644 --- a/lib/modules/manager/flux/extract.ts +++ b/lib/modules/manager/flux/extract.ts @@ -2,7 +2,7 @@ import { loadAll } from 'js-yaml'; import { logger } from '../../../logger'; import { readLocalFile } from '../../../util/fs'; import { regEx } from '../../../util/regex'; -import { BitBucketTagsDatasource } from '../../datasource/bitbucket-tags'; +import { BitbucketTagsDatasource } from '../../datasource/bitbucket-tags'; import { GitRefsDatasource } from '../../datasource/git-refs'; import { GitTagsDatasource } from '../../datasource/git-tags'; import { GithubReleasesDatasource } from '../../datasource/github-releases'; @@ -130,7 +130,7 @@ function resolveGitRepositoryPerSourceTag( const bitbucketMatchGroups = bitbucketUrlRegex.exec(gitUrl)?.groups; if (bitbucketMatchGroups) { - dep.datasource = BitBucketTagsDatasource.id; + dep.datasource = BitbucketTagsDatasource.id; dep.packageName = bitbucketMatchGroups.packageName; dep.sourceUrl = `https://bitbucket.org/${dep.packageName}`; return; diff --git a/lib/modules/manager/flux/index.ts b/lib/modules/manager/flux/index.ts index af5907558b3e2036aeb4830920057127b36b39a5..58d21b8673d27f1f1a233c9f5e2ecbd008f219a0 100644 --- a/lib/modules/manager/flux/index.ts +++ b/lib/modules/manager/flux/index.ts @@ -1,4 +1,4 @@ -import { BitBucketTagsDatasource } from '../../datasource/bitbucket-tags'; +import { BitbucketTagsDatasource } from '../../datasource/bitbucket-tags'; import { DockerDatasource } from '../../datasource/docker'; import { GitRefsDatasource } from '../../datasource/git-refs'; import { GitTagsDatasource } from '../../datasource/git-tags'; @@ -21,7 +21,7 @@ export const supportedDatasources = [ GithubTagsDatasource.id, GitlabTagsDatasource.id, GitTagsDatasource.id, - BitBucketTagsDatasource.id, + BitbucketTagsDatasource.id, HelmDatasource.id, DockerDatasource.id, ]; diff --git a/lib/modules/manager/terraform/extractors/others/modules.ts b/lib/modules/manager/terraform/extractors/others/modules.ts index 82835cd6745f08ddf8e11840f33e68f53500ff1c..3eba9cc81aa02c4bea6d2b5d1108f5cec814807f 100644 --- a/lib/modules/manager/terraform/extractors/others/modules.ts +++ b/lib/modules/manager/terraform/extractors/others/modules.ts @@ -1,7 +1,7 @@ import is from '@sindresorhus/is'; import { logger } from '../../../../../logger'; import { regEx } from '../../../../../util/regex'; -import { BitBucketTagsDatasource } from '../../../../datasource/bitbucket-tags'; +import { BitbucketTagsDatasource } from '../../../../datasource/bitbucket-tags'; import { GitTagsDatasource } from '../../../../datasource/git-tags'; import { GithubTagsDatasource } from '../../../../datasource/github-tags'; import { TerraformModuleDatasource } from '../../../../datasource/terraform-module'; @@ -78,7 +78,7 @@ export class ModuleExtractor extends DependencyExtractor { bitbucketRefMatch.groups.project; dep.packageName = dep.depName; dep.currentValue = bitbucketRefMatch.groups.tag; - dep.datasource = BitBucketTagsDatasource.id; + dep.datasource = BitbucketTagsDatasource.id; } else if (azureDevOpsSshRefMatch?.groups) { dep.depType = 'module'; dep.depName = `${azureDevOpsSshRefMatch.groups.organization}/${azureDevOpsSshRefMatch.groups.project}/${azureDevOpsSshRefMatch.groups.repository}${azureDevOpsSshRefMatch.groups.modulepath}`; diff --git a/lib/modules/manager/terraform/index.ts b/lib/modules/manager/terraform/index.ts index 06aedc5420739c0109158bd679f1aad25c9dbb6f..d429e781909add1cc39df061c744466159a02450 100644 --- a/lib/modules/manager/terraform/index.ts +++ b/lib/modules/manager/terraform/index.ts @@ -1,4 +1,4 @@ -import { BitBucketTagsDatasource } from '../../datasource/bitbucket-tags'; +import { BitbucketTagsDatasource } from '../../datasource/bitbucket-tags'; import { DockerDatasource } from '../../datasource/docker'; import { GitTagsDatasource } from '../../datasource/git-tags'; import { GithubReleasesDatasource } from '../../datasource/github-releases'; @@ -12,7 +12,7 @@ export { updateLockedDependency } from './lockfile/update-locked'; export { extractPackageFile } from './extract'; export const supportedDatasources = [ - BitBucketTagsDatasource.id, + BitbucketTagsDatasource.id, DockerDatasource.id, GitTagsDatasource.id, GithubTagsDatasource.id, diff --git a/lib/modules/platform/bitbucket-server/index.ts b/lib/modules/platform/bitbucket-server/index.ts index acdc8bd71fce18bcfbac9ee1dfd88021e771b403..47fecb5852cb1de5dfa32d8e4509e80e9a7f0f3a 100644 --- a/lib/modules/platform/bitbucket-server/index.ts +++ b/lib/modules/platform/bitbucket-server/index.ts @@ -148,7 +148,7 @@ export async function getJsonFile( return JSON5.parse(raw); } -// Initialize BitBucket Server by getting base branch +// Initialize Bitbucket Server by getting base branch export async function initRepo({ repository, cloneSubmodules, diff --git a/lib/modules/platform/bitbucket/comments.ts b/lib/modules/platform/bitbucket/comments.ts index d077fb583f44e3ab84b584236752a46144ec4942..6aefe689edf3c599dd8012167971c100ea15a01e 100644 --- a/lib/modules/platform/bitbucket/comments.ts +++ b/lib/modules/platform/bitbucket/comments.ts @@ -13,7 +13,7 @@ interface Comment { export type CommentsConfig = Pick<Config, 'repository'>; -interface EnsureBitBucketCommentConfig extends EnsureCommentConfig { +interface EnsureBitbucketCommentConfig extends EnsureCommentConfig { config: CommentsConfig; } @@ -71,7 +71,7 @@ export async function ensureComment({ number: prNo, topic, content, -}: EnsureBitBucketCommentConfig): Promise<boolean> { +}: EnsureBitbucketCommentConfig): Promise<boolean> { try { const comments = await getComments(config, prNo); let body: string; diff --git a/lib/modules/platform/bitbucket/index.md b/lib/modules/platform/bitbucket/index.md index 1985939353564e6d1a36c19700fff4c1de1e90e7..7b8da4676f797200e9aa3a4baf372c67d19aaa53 100644 --- a/lib/modules/platform/bitbucket/index.md +++ b/lib/modules/platform/bitbucket/index.md @@ -28,4 +28,4 @@ Remember to: ## Unsupported platform features/concepts - Adding assignees to PRs not supported (does not seem to be a Bitbucket concept) -- `automergeStrategy=rebase` not supported by BitBucket Cloud, see [Jira issue BCLOUD-16610](https://jira.atlassian.com/browse/BCLOUD-16610) +- `automergeStrategy=rebase` not supported by Bitbucket Cloud, see [Jira issue BCLOUD-16610](https://jira.atlassian.com/browse/BCLOUD-16610)