renovate 40.0.0-next.17 → 40.0.0-next.19
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.d.ts +3 -1
- package/dist/config/decrypt.js +54 -11
- package/dist/config/decrypt.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 +1 -1
- package/dist/config/options/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 -1
- package/dist/config/presets/http/index.js.map +1 -1
- package/dist/config/presets/internal/custom-managers.js +3 -4
- package/dist/config/presets/internal/custom-managers.js.map +1 -1
- package/dist/config/validation.js +1 -1
- package/dist/config/validation.js.map +1 -1
- package/dist/data/monorepo.json +2 -1
- package/dist/instrumentation/utils.js +1 -1
- package/dist/instrumentation/utils.js.map +1 -1
- package/dist/modules/datasource/artifactory/index.js +1 -1
- package/dist/modules/datasource/artifactory/index.js.map +1 -1
- package/dist/modules/datasource/azure-pipelines-tasks/index.js +11 -1
- package/dist/modules/datasource/azure-pipelines-tasks/index.js.map +1 -1
- package/dist/modules/datasource/azure-pipelines-tasks/schema.d.ts +16 -0
- package/dist/modules/datasource/azure-pipelines-tasks/schema.js +2 -0
- package/dist/modules/datasource/azure-pipelines-tasks/schema.js.map +1 -1
- package/dist/modules/datasource/crate/index.js +1 -1
- 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/deb/index.js +1 -1
- package/dist/modules/datasource/deb/index.js.map +1 -1
- package/dist/modules/datasource/docker/common.js +1 -1
- package/dist/modules/datasource/docker/common.js.map +1 -1
- package/dist/modules/datasource/docker/index.js +1 -1
- package/dist/modules/datasource/docker/index.js.map +1 -1
- 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/go/base.js +1 -1
- package/dist/modules/datasource/go/base.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 +1 -1
- package/dist/modules/datasource/golang-version/index.js.map +1 -1
- 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/maven/util.js +1 -1
- package/dist/modules/datasource/maven/util.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 +1 -1
- package/dist/modules/datasource/nuget/v3.js.map +1 -1
- package/dist/modules/datasource/pod/index.js +1 -1
- package/dist/modules/datasource/pod/index.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/ruby-version/index.js +1 -1
- package/dist/modules/datasource/ruby-version/index.js.map +1 -1
- package/dist/modules/datasource/rubygems/index.js +1 -1
- package/dist/modules/datasource/rubygems/index.js.map +1 -1
- package/dist/modules/datasource/rubygems/versions-endpoint-cache.js +2 -2
- package/dist/modules/datasource/rubygems/versions-endpoint-cache.js.map +1 -1
- package/dist/modules/datasource/terraform-provider/index.js +1 -1
- package/dist/modules/datasource/terraform-provider/index.js.map +1 -1
- 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/git.js +7 -1
- package/dist/modules/manager/bazel/rules/git.js.map +1 -1
- package/dist/modules/manager/bundler/artifacts.js.map +1 -1
- package/dist/modules/manager/composer/utils.js +9 -6
- package/dist/modules/manager/composer/utils.js.map +1 -1
- package/dist/modules/manager/devbox/artifacts.d.ts +1 -1
- package/dist/modules/manager/devbox/artifacts.js +29 -11
- package/dist/modules/manager/devbox/artifacts.js.map +1 -1
- package/dist/modules/manager/fingerprint.generated.js +6 -6
- package/dist/modules/manager/fingerprint.generated.js.map +1 -1
- package/dist/modules/manager/gradle-wrapper/artifacts.js +1 -1
- package/dist/modules/manager/gradle-wrapper/artifacts.js.map +1 -1
- package/dist/modules/manager/maven/extract.js +3 -1
- package/dist/modules/manager/maven/extract.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/pep621/utils.js +1 -2
- package/dist/modules/manager/pep621/utils.js.map +1 -1
- 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 -2
- package/dist/modules/manager/poetry/extract.js.map +1 -1
- package/dist/modules/manager/terraform/lockfile/hash.d.ts +1 -1
- package/dist/modules/platform/bitbucket/index.js +1 -1
- package/dist/modules/platform/bitbucket/index.js.map +1 -1
- package/dist/modules/platform/gerrit/client.js +1 -1
- package/dist/modules/platform/gerrit/client.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 +6 -4
- package/dist/modules/platform/github/index.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/npm/index.js +2 -1
- package/dist/modules/versioning/npm/index.js.map +1 -1
- package/dist/modules/versioning/types.d.ts +4 -0
- package/dist/modules/versioning/types.js.map +1 -1
- package/dist/util/exec/containerbase.js +1 -1
- package/dist/util/exec/containerbase.js.map +1 -1
- 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 +5 -4
- package/dist/util/http/bitbucket-server.js +17 -20
- 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 +30 -31
- package/dist/util/http/bitbucket.js.map +1 -1
- package/dist/util/http/cache/abstract-http-cache-provider.js +1 -1
- package/dist/util/http/cache/abstract-http-cache-provider.js.map +1 -1
- 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 +12 -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 +64 -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 +56 -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.map +1 -1
- package/dist/util/http/http.d.ts +93 -0
- package/dist/util/http/http.js +339 -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/types.d.ts +9 -16
- package/dist/util/http/types.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/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 +18 -8
- 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/repository/onboarding/pr/config-description.js +3 -1
- package/dist/workers/repository/onboarding/pr/config-description.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/gitlab/index.js +1 -1
- package/dist/workers/repository/update/pr/changelog/gitlab/index.js.map +1 -1
- package/package.json +30 -30
@@ -1,7 +1,9 @@
|
|
1
1
|
import { GithubHttp } from '../../../util/http/github';
|
2
|
+
import type { MergePRConfig } from '../types';
|
2
3
|
import type { GhPr, GhRestPr } from './types';
|
3
4
|
export declare const githubApi: GithubHttp;
|
4
5
|
/**
|
5
6
|
* @see https://docs.github.com/en/rest/reference/pulls#list-pull-requests
|
6
7
|
*/
|
7
8
|
export declare function coerceRestPr(pr: GhRestPr): GhPr;
|
9
|
+
export declare function mapMergeStartegy(strategy: MergePRConfig['strategy']): string | undefined;
|
@@ -2,8 +2,10 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.githubApi = void 0;
|
4
4
|
exports.coerceRestPr = coerceRestPr;
|
5
|
+
exports.mapMergeStartegy = mapMergeStartegy;
|
5
6
|
const tslib_1 = require("tslib");
|
6
7
|
const is_1 = tslib_1.__importDefault(require("@sindresorhus/is"));
|
8
|
+
const logger_1 = require("../../../logger");
|
7
9
|
const github_1 = require("../../../util/http/github");
|
8
10
|
const pr_body_1 = require("../pr-body");
|
9
11
|
exports.githubApi = new github_1.GithubHttp();
|
@@ -49,4 +51,18 @@ function coerceRestPr(pr) {
|
|
49
51
|
}
|
50
52
|
return result;
|
51
53
|
}
|
54
|
+
function mapMergeStartegy(strategy) {
|
55
|
+
switch (strategy) {
|
56
|
+
case 'auto':
|
57
|
+
return undefined;
|
58
|
+
case 'fast-forward': {
|
59
|
+
logger_1.logger.warn('Fast-forward merge strategy is not supported by Github. Falling back to merge strategy set for the repository.');
|
60
|
+
return undefined;
|
61
|
+
}
|
62
|
+
case 'merge-commit':
|
63
|
+
return 'merge';
|
64
|
+
default:
|
65
|
+
return strategy;
|
66
|
+
}
|
67
|
+
}
|
52
68
|
//# sourceMappingURL=common.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../lib/modules/platform/github/common.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../lib/modules/platform/github/common.ts"],"names":[],"mappings":";;;AAYA,oCAgDC;AAED,4CAiBC;;AA/ED,kEAAkC;AAClC,4CAAyC;AACzC,sDAAuD;AACvD,wCAA6C;AAIhC,QAAA,SAAS,GAAG,IAAI,mBAAU,EAAE,CAAC;AAE1C;;GAEG;AACH,SAAgB,YAAY,CAAC,EAAY;IACvC,MAAM,UAAU,GAAG,EAAE,CAAC,UAAU,IAAI,IAAA,yBAAe,EAAC,EAAE,CAAC,IAAI,CAAC,CAAC;IAC7D,MAAM,MAAM,GAAS;QACnB,MAAM,EAAE,EAAE,CAAC,MAAM;QACjB,YAAY,EAAE,EAAE,CAAC,IAAI,EAAE,GAAG;QAC1B,KAAK,EAAE,EAAE,CAAC,KAAK;QACf,KAAK,EACH,EAAE,CAAC,KAAK,KAAK,QAAQ,IAAI,YAAE,CAAC,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK;QACxE,UAAU;QACV,UAAU,EAAE,EAAE,CAAC,UAAU;QACzB,OAAO,EAAE,EAAE,CAAC,OAAO;KACpB,CAAC;IAEF,IAAI,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,CAAC;QACjB,MAAM,CAAC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E,CAAC;QACjB,KAAK,MAAM;YACT,OAAO,SAAS,CAAC;QACnB,KAAK,cAAc,CAAC,CAAC,CAAC;YACpB,eAAM,CAAC,IAAI,CACT,gHAAgH,CACjH,CAAC;YACF,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,KAAK,cAAc;YACjB,OAAO,OAAO,CAAC;QACjB;YACE,OAAO,QAAQ,CAAC;IACpB,CAAC;AACH,CAAC","sourcesContent":["import is from '@sindresorhus/is';\nimport { logger } from '../../../logger';\nimport { GithubHttp } from '../../../util/http/github';\nimport { getPrBodyStruct } from '../pr-body';\nimport type { MergePRConfig } from '../types';\nimport type { GhPr, GhRestPr } from './types';\n\nexport const githubApi = new GithubHttp();\n\n/**\n * @see https://docs.github.com/en/rest/reference/pulls#list-pull-requests\n */\nexport function coerceRestPr(pr: GhRestPr): GhPr {\n const bodyStruct = pr.bodyStruct ?? getPrBodyStruct(pr.body);\n const result: GhPr = {\n number: pr.number,\n sourceBranch: pr.head?.ref,\n title: pr.title,\n state:\n pr.state === 'closed' && is.string(pr.merged_at) ? 'merged' : pr.state,\n bodyStruct,\n updated_at: pr.updated_at,\n node_id: pr.node_id,\n };\n\n if (pr.head?.sha) {\n result.sha = pr.head.sha;\n }\n\n if (pr.head?.repo?.full_name) {\n result.sourceRepo = pr.head.repo.full_name;\n }\n\n if (pr.labels) {\n result.labels = pr.labels.map(({ name }) => name);\n }\n\n if (!!pr.assignee || is.nonEmptyArray(pr.assignees)) {\n result.hasAssignees = true;\n }\n\n if (pr.requested_reviewers) {\n result.reviewers = pr.requested_reviewers\n .map(({ login }) => login)\n .filter(is.nonEmptyString);\n }\n\n if (pr.created_at) {\n result.createdAt = pr.created_at;\n }\n\n if (pr.closed_at) {\n result.closedAt = pr.closed_at;\n }\n\n if (pr.base?.ref) {\n result.targetBranch = pr.base.ref;\n }\n\n return result;\n}\n\nexport function mapMergeStartegy(\n strategy: MergePRConfig['strategy'],\n): string | undefined {\n switch (strategy) {\n case 'auto':\n return undefined;\n case 'fast-forward': {\n logger.warn(\n 'Fast-forward merge strategy is not supported by Github. Falling back to merge strategy set for the repository.',\n );\n return undefined;\n }\n case 'merge-commit':\n return 'merge';\n default:\n return strategy;\n }\n}\n"]}
|
@@ -38,7 +38,7 @@ export declare function ensureCommentRemoval(deleteConfig: EnsureCommentRemovalC
|
|
38
38
|
export declare function createPr({ sourceBranch, targetBranch, prTitle: title, prBody: rawBody, labels, draftPR, platformPrOptions, milestone, }: CreatePRConfig): Promise<GhPr | null>;
|
39
39
|
export declare function updatePr({ number: prNo, prTitle: title, prBody: rawBody, addLabels: labelsToAdd, removeLabels, state, targetBranch, }: UpdatePrConfig): Promise<void>;
|
40
40
|
export declare function reattemptPlatformAutomerge({ number, platformPrOptions, }: ReattemptPlatformAutomergeConfig): Promise<void>;
|
41
|
-
export declare function mergePr({ branchName, id: prNo, }: MergePRConfig): Promise<boolean>;
|
41
|
+
export declare function mergePr({ branchName, id: prNo, strategy, }: MergePRConfig): Promise<boolean>;
|
42
42
|
export declare function massageMarkdown(input: string): string;
|
43
43
|
export declare function maxBodyLength(): number;
|
44
44
|
export declare function getVulnerabilityAlerts(): Promise<VulnerabilityAlert[]>;
|
@@ -1394,7 +1394,7 @@ async function reattemptPlatformAutomerge({ number, platformPrOptions, }) {
|
|
1394
1394
|
logger_1.logger.warn({ err }, 'Error re-attempting PR platform automerge');
|
1395
1395
|
}
|
1396
1396
|
}
|
1397
|
-
async function mergePr({ branchName, id: prNo, }) {
|
1397
|
+
async function mergePr({ branchName, id: prNo, strategy, }) {
|
1398
1398
|
logger_1.logger.debug(`mergePr(${prNo}, ${branchName})`);
|
1399
1399
|
const url = `repos/${config.parentRepo ?? config.repository}/pulls/${prNo}/merge`;
|
1400
1400
|
const options = {
|
@@ -1406,9 +1406,11 @@ async function mergePr({ branchName, id: prNo, }) {
|
|
1406
1406
|
}
|
1407
1407
|
let automerged = false;
|
1408
1408
|
let automergeResult;
|
1409
|
-
|
1410
|
-
|
1411
|
-
|
1409
|
+
const mergeStrategy = (0, common_2.mapMergeStartegy)(strategy) ?? config.mergeMethod;
|
1410
|
+
if (mergeStrategy) {
|
1411
|
+
// This path is taken if we have auto-detected the allowed merge types from the repo or
|
1412
|
+
// automergeStrategy is configured by user
|
1413
|
+
options.body.merge_method = mergeStrategy;
|
1412
1414
|
try {
|
1413
1415
|
logger_1.logger.debug({ options, url }, `mergePr`);
|
1414
1416
|
automergeResult = await common_2.githubApi.putJson(url, options);
|