backport 8.9.7 → 8.9.8

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.
Files changed (37) hide show
  1. package/dist/backportRun.d.ts +4 -4
  2. package/dist/lib/BackportError.d.ts +1 -1
  3. package/dist/lib/author.d.ts +1 -1
  4. package/dist/lib/cherrypickAndCreateTargetPullRequest/cherrypickAndCreateTargetPullRequest.test.js +5 -4
  5. package/dist/lib/cherrypickAndCreateTargetPullRequest/cherrypickAndCreateTargetPullRequest.test.js.map +1 -1
  6. package/dist/lib/child-process-promisified.d.ts +2 -2
  7. package/dist/lib/git.d.ts +1 -1
  8. package/dist/lib/github/v3/getGithubV3ErrorMessage.d.ts +1 -1
  9. package/dist/lib/github/v4/apiRequestV4.d.ts +2 -2
  10. package/dist/lib/github/v4/fetchCommits/fetchCommitBySha.private.test.js +1 -1
  11. package/dist/lib/github/v4/fetchCommits/fetchCommitBySha.private.test.js.map +1 -1
  12. package/dist/lib/github/v4/getOptionsFromGithub/getOptionsFromGithub.d.ts +1 -1
  13. package/dist/lib/logger.d.ts +1 -1
  14. package/dist/lib/ora.d.ts +2 -1
  15. package/dist/lib/ora.js +4 -5
  16. package/dist/lib/ora.js.map +1 -1
  17. package/dist/lib/setupRepo.test.js +10 -13
  18. package/dist/lib/setupRepo.test.js.map +1 -1
  19. package/dist/lib/sourceCommit/getPullRequestStates.d.ts +4 -4
  20. package/dist/lib/sourceCommit/parseSourceCommit.d.ts +2 -2
  21. package/dist/options/ConfigOptions.d.ts +4 -4
  22. package/dist/options/cliArgs.d.ts +22 -22
  23. package/dist/options/config/config.d.ts +1 -1
  24. package/dist/options/config/readConfigFile.d.ts +26 -26
  25. package/dist/options/options.d.ts +20 -20
  26. package/dist/runSequentially.d.ts +4 -4
  27. package/dist/test/e2e/cli/runBackportViaCli.d.ts +1 -1
  28. package/dist/test/setupFiles/automatic-mocks.js +0 -2
  29. package/dist/test/setupFiles/automatic-mocks.js.map +1 -1
  30. package/dist/utils/excludeUndefined.d.ts +1 -1
  31. package/dist/utils/packageVersion.d.ts +1 -1
  32. package/dist/utils/packageVersion.js +1 -1
  33. package/package.json +26 -26
  34. package/yarn.lock +1834 -1979
  35. package/dist/test/mocks.d.ts +0 -10
  36. package/dist/test/mocks.js +0 -24
  37. package/dist/test/mocks.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { ConfigFileOptions, TargetBranchChoiceOrString } from './ConfigOptions';
2
2
  import { OptionsFromCliArgs } from './cliArgs';
3
- export declare type ValidConfigOptions = Readonly<Awaited<ReturnType<typeof getOptions>>>;
3
+ export type ValidConfigOptions = Readonly<Awaited<ReturnType<typeof getOptions>>>;
4
4
  export declare const defaultConfigOptions: {
5
5
  assignees: string[];
6
6
  autoAssign: boolean;
@@ -44,50 +44,50 @@ export declare function getOptions({ optionsFromCliArgs, optionsFromModule, }: {
44
44
  dir?: string | undefined;
45
45
  interactive: boolean;
46
46
  logFilePath?: string | undefined;
47
+ assignees: string[];
47
48
  author: string | null;
48
49
  autoAssign: boolean;
49
- assignees: string[];
50
50
  autoMerge: boolean;
51
51
  autoMergeMethod: string;
52
52
  cherrypickRef: boolean;
53
- projectConfigFile?: string | undefined;
54
- globalConfigFile?: string | undefined;
55
- dateSince: string | null;
56
- dateUntil: string | null;
53
+ commitPaths: string[];
57
54
  details: boolean;
58
55
  dryRun?: boolean | undefined;
59
56
  editor?: string | undefined;
60
- skipRemoteConfig?: boolean | undefined;
57
+ gitAuthorEmail?: string | undefined;
58
+ gitAuthorName?: string | undefined;
61
59
  gitHostname: string;
62
60
  githubApiBaseUrlV3?: string | undefined;
63
61
  githubApiBaseUrlV4?: string | undefined;
64
- gitAuthorName?: string | undefined;
65
- gitAuthorEmail?: string | undefined;
66
62
  ls?: boolean | undefined;
67
- mainline?: number | undefined;
68
- signoff: boolean;
69
63
  maxNumber: number;
70
64
  multipleBranches: boolean;
71
65
  multipleCommits: boolean;
72
66
  noVerify: boolean;
73
- repoForkOwner: string;
74
- onlyMissing?: boolean | undefined;
75
67
  prDescription?: string | undefined;
76
- prTitle?: string | undefined;
77
68
  prFilter?: string | undefined;
69
+ projectConfigFile?: string | undefined;
70
+ prTitle?: string | undefined;
71
+ publishStatusCommentOnAbort: boolean;
72
+ publishStatusCommentOnFailure: boolean;
73
+ publishStatusCommentOnSuccess: boolean;
78
74
  pullNumber?: number | number[] | undefined;
79
- sha?: string | string[] | undefined;
75
+ repoForkOwner: string;
80
76
  resetAuthor: boolean;
81
- sourceBranch: string;
82
- commitPaths: string[];
83
77
  reviewers: string[];
78
+ sha?: string | string[] | undefined;
79
+ signoff: boolean;
80
+ skipRemoteConfig?: boolean | undefined;
81
+ sourceBranch: string;
84
82
  sourcePRLabels: string[];
85
83
  targetBranchChoices: TargetBranchChoiceOrString[];
86
84
  targetBranches: string[];
87
85
  targetPRLabels: string[];
88
- publishStatusCommentOnSuccess: boolean;
89
- publishStatusCommentOnFailure: boolean;
90
- publishStatusCommentOnAbort: boolean;
86
+ globalConfigFile?: string | undefined;
87
+ dateSince: string | null;
88
+ dateUntil: string | null;
89
+ mainline?: number | undefined;
90
+ onlyMissing?: boolean | undefined;
91
91
  telemetry: boolean;
92
92
  autoFixConflicts?: (({ files, directory, logger, targetBranch, }: {
93
93
  files: string[];
@@ -1,24 +1,24 @@
1
1
  import { BackportError } from './lib/BackportError';
2
2
  import { Commit } from './lib/sourceCommit/parseSourceCommit';
3
3
  import { ValidConfigOptions } from './options/options';
4
- export declare type SuccessResult = {
4
+ export type SuccessResult = {
5
5
  status: 'success';
6
6
  didUpdate: boolean;
7
7
  targetBranch: string;
8
8
  pullRequestUrl: string;
9
9
  pullRequestNumber: number;
10
10
  };
11
- export declare type HandledErrorResult = {
11
+ export type HandledErrorResult = {
12
12
  status: 'handled-error';
13
13
  targetBranch: string;
14
14
  error: BackportError;
15
15
  };
16
- export declare type UnhandledErrorResult = {
16
+ export type UnhandledErrorResult = {
17
17
  status: 'unhandled-error';
18
18
  targetBranch: string;
19
19
  error: Error;
20
20
  };
21
- export declare type Result = SuccessResult | HandledErrorResult | UnhandledErrorResult;
21
+ export type Result = SuccessResult | HandledErrorResult | UnhandledErrorResult;
22
22
  export declare function runSequentially({ options, commits, targetBranches, }: {
23
23
  options: ValidConfigOptions;
24
24
  commits: Commit[];
@@ -1,4 +1,4 @@
1
- declare type RunBackportOptions = {
1
+ type RunBackportOptions = {
2
2
  timeoutSeconds?: number;
3
3
  showOra?: boolean;
4
4
  waitForString?: string;
@@ -28,7 +28,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  };
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
30
  const packageVersionModule = __importStar(require("../../utils/packageVersion"));
31
- const mocks_1 = require("../mocks");
32
31
  /* eslint-disable @typescript-eslint/no-empty-function */
33
32
  jest.mock('find-up', () => {
34
33
  return jest.fn(async () => '/path/to/project/config');
@@ -46,7 +45,6 @@ jest.mock('make-dir', () => {
46
45
  jest.mock('del', () => {
47
46
  return jest.fn(async (path) => `Attempted to delete ${path}`);
48
47
  });
49
- (0, mocks_1.mockOra)();
50
48
  jest.mock('../../lib/logger', () => {
51
49
  const spy = jest.fn();
52
50
  const logger = {
@@ -1 +1 @@
1
- {"version":3,"file":"automatic-mocks.js","sourceRoot":"","sources":["../../../src/test/setupFiles/automatic-mocks.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,iFAAmE;AACnE,oCAAmC;AAEnC,yDAAyD;AAEzD,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,GAAG,EAAE;IACxB,OAAO,IAAI,CAAC,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC,yBAAyB,CAAC,CAAC;AACxD,CAAC,CAAC,CAAC;AAEH,mBAAmB;AACnB,4CAA4C;AAC5C,oBAAoB,CAAC,wBAAwB;IAC3C,oBAAoB,CAAC,eAAe,CAAC;AACvC,mBAAmB;AACnB,4CAA4C;AAC5C,oBAAoB,CAAC,eAAe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,EAAE,IAAa,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,GAAG,EAAE,EAAE,IAAI,CAAC;QAChE,OAAO,EAAE,CAAC,GAAW,EAAE,IAAa,EAAE,EAAE,CAAC,GAAG,CAAC,aAAa,GAAG,EAAE,EAAE,IAAI,CAAC;QACtE,IAAI,EAAE,CAAC,GAAW,EAAE,IAAa,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,GAAG,EAAE,EAAE,IAAI,CAAC;QAChE,KAAK,EAAE,CAAC,GAAW,EAAE,IAAa,EAAE,EAAE,CAAC,GAAG,CAAC,WAAW,GAAG,EAAE,EAAE,IAAI,CAAC;QAClE,KAAK,EAAE,CAAC,GAAW,EAAE,IAAa,EAAE,EAAE,CAAC,GAAG,CAAC,WAAW,GAAG,EAAE,EAAE,IAAI,CAAC;KACnE,CAAC;IACF,OAAO;QACL,UAAU,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC;QACjC,iBAAiB,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,GAAW,EAAE,EAAE,CAAC,GAAG,CAAC;QAChD,UAAU,EAAE,IAAI,CAAC,EAAE,EAAE;QACrB,cAAc,EAAE,IAAI,CAAC,EAAE,EAAE;QACzB,MAAM;KACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { Assign } from 'utility-types';
2
- declare type ExcludeUndefined<T extends Record<string, any>> = Assign<T, Partial<Pick<T, {
2
+ type ExcludeUndefined<T extends Record<string, any>> = Assign<T, Partial<Pick<T, {
3
3
  [key in keyof T]-?: undefined extends T[key] ? key : never;
4
4
  }[keyof T]>>>;
5
5
  export declare function excludeUndefined<T extends Record<string, any>>(obj: T): ExcludeUndefined<T>;
@@ -1 +1 @@
1
- export declare const PACKAGE_VERSION = "8.9.7";
1
+ export declare const PACKAGE_VERSION = "8.9.8";
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PACKAGE_VERSION = void 0;
4
- exports.PACKAGE_VERSION = '8.9.7';
4
+ exports.PACKAGE_VERSION = '8.9.8';
5
5
  //# sourceMappingURL=packageVersion.js.map
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "branches",
15
15
  "branching"
16
16
  ],
17
- "version": "8.9.7",
17
+ "version": "8.9.8",
18
18
  "main": "./dist/entrypoint.api.js",
19
19
  "types": "dist/entrypoint.api.d.ts",
20
20
  "bin": {
@@ -25,7 +25,7 @@
25
25
  "postinstall": "test -f ./dist/scripts/runPostinstall.js && node ./dist/scripts/runPostinstall.js || echo 'Dist folder missing'",
26
26
  "version": "echo \"Bumping version\" && yarn extractPackageVersion && git add src/utils/packageVersion.ts && yarn tsc",
27
27
  "prepare": "husky install",
28
- "prepublishOnly": "rm -rf ./dist/ && yarn lint && yarn tsc",
28
+ "prepublishOnly": "rm -rf ./dist/ && yarn && yarn lint && yarn tsc",
29
29
  "extractPackageVersion": "node -p \"'export const PACKAGE_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'\" | prettier --parser typescript > src/utils/packageVersion.ts",
30
30
  "lint-and-test": "yarn tsc && yarn lint && yarn test-all",
31
31
  "lint": "echo \"Running lint\" && eslint './**/*.{ts,js}'",
@@ -63,16 +63,16 @@
63
63
  "node": ">=16.0.0"
64
64
  },
65
65
  "dependencies": {
66
- "@octokit/rest": "^19.0.4",
67
- "axios": "^1.1.2",
66
+ "@octokit/rest": "^19.0.7",
67
+ "axios": "^1.3.4",
68
68
  "dedent": "^0.7.0",
69
69
  "del": "^6.1.1",
70
70
  "dotenv": "^16.0.3",
71
- "elastic-apm-node": "^3.38.0",
71
+ "elastic-apm-node": "3.46.0",
72
72
  "find-up": "^5.0.0",
73
73
  "graphql": "^16.6.0",
74
74
  "graphql-tag": "^2.12.6",
75
- "inquirer": "^8.2.3",
75
+ "inquirer": "^8.2.5",
76
76
  "lodash": "^4.17.21",
77
77
  "make-dir": "^3.1.0",
78
78
  "ora": "^5.4.1",
@@ -81,36 +81,36 @@
81
81
  "terminal-link": "^2.1.1",
82
82
  "utility-types": "^3.10.0",
83
83
  "winston": "^3.8.2",
84
- "yargs": "^17.6.0",
84
+ "yargs": "^17.7.1",
85
85
  "yargs-parser": "^21.1.1"
86
86
  },
87
87
  "devDependencies": {
88
88
  "@types/core-js": "^2.5.5",
89
89
  "@types/dedent": "^0.7.0",
90
- "@types/inquirer": "^9.0.1",
91
- "@types/jest": "^29.1.2",
92
- "@types/lodash": "^4.14.186",
93
- "@types/node": "^18.8.3",
90
+ "@types/inquirer": "^8.2.6",
91
+ "@types/jest": "^29.5.0",
92
+ "@types/lodash": "^4.14.191",
93
+ "@types/node": "^18.15.5",
94
94
  "@types/safe-json-stringify": "^1.1.2",
95
- "@types/yargs": "^17.0.13",
95
+ "@types/yargs": "^17.0.23",
96
96
  "@types/yargs-parser": "^21.0.0",
97
- "@typescript-eslint/eslint-plugin": "^5.39.0",
98
- "@typescript-eslint/parser": "^5.39.0",
99
- "eslint": "^8.25.0",
100
- "eslint-config-prettier": "^8.5.0",
101
- "eslint-plugin-import": "^2.26.0",
102
- "eslint-plugin-jest": "^27.1.1",
97
+ "@typescript-eslint/eslint-plugin": "^5.56.0",
98
+ "@typescript-eslint/parser": "^5.56.0",
99
+ "eslint": "^8.36.0",
100
+ "eslint-config-prettier": "^8.8.0",
101
+ "eslint-plugin-import": "^2.27.5",
102
+ "eslint-plugin-jest": "^27.2.1",
103
103
  "eslint-plugin-prettier": "^4.2.1",
104
- "graphql-config": "^4.3.6",
105
- "husky": "^8.0.1",
106
- "jest": "^29.1.2",
104
+ "graphql-config": "^4.5.0",
105
+ "husky": "^8.0.3",
106
+ "jest": "^29.5.0",
107
107
  "jest-snapshot-serializer-ansi": "^1.0.0",
108
- "lint-staged": "^13.0.3",
109
- "nock": "^13.2.9",
110
- "prettier": "^2.7.1",
108
+ "lint-staged": "^13.2.0",
109
+ "nock": "^13.3.0",
110
+ "prettier": "^2.8.6",
111
111
  "strip-ansi": "^6.0.1",
112
- "ts-jest": "^29.0.3",
112
+ "ts-jest": "^29.0.5",
113
113
  "ts-node": "^10.9.1",
114
- "typescript": "^4.8.4"
114
+ "typescript": "^5.0.2"
115
115
  }
116
116
  }