@gitkraken/provider-apis 0.30.0 → 0.31.0

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.
@@ -74,5 +74,17 @@ export interface GitProvider {
74
74
  closePullRequest?(input: {
75
75
  pullRequest: SetPullRequestInput;
76
76
  }, options: Options): Promise<void>;
77
+ approvePullRequest?(input: {
78
+ pullRequest: SetPullRequestInput;
79
+ comment?: string;
80
+ }, options: Options): Promise<void>;
81
+ requestPullRequestChanges?(input: {
82
+ pullRequest: SetPullRequestInput;
83
+ comment: string;
84
+ }, options: Options): Promise<void>;
85
+ commentOnPullRequest?(input: {
86
+ pullRequest: SetPullRequestInput;
87
+ comment: string;
88
+ }, options: Options): Promise<void>;
77
89
  }
78
90
  export declare const MAX_PAGE_SIZE = 100;
@@ -275,6 +275,18 @@ export declare class GitHub extends EnterpriseProvider implements GitProvider, I
275
275
  } & SetPullRequestInput;
276
276
  mergeStrategy?: GitMergeStrategy.MergeCommit | GitMergeStrategy.Rebase | GitMergeStrategy.Squash;
277
277
  }, options?: EnterpriseOptions): Promise<void>;
278
+ approvePullRequest(input: {
279
+ pullRequest: SetPullRequestInput;
280
+ comment?: string;
281
+ }, options?: EnterpriseOptions): Promise<void>;
282
+ requestPullRequestChanges(input: {
283
+ pullRequest: SetPullRequestInput;
284
+ comment: string;
285
+ }, options?: EnterpriseOptions): Promise<void>;
286
+ commentOnPullRequest(input: {
287
+ pullRequest: SetPullRequestInput;
288
+ comment: string;
289
+ }, options?: EnterpriseOptions): Promise<void>;
278
290
  setPullRequestMilestone(input: {
279
291
  pullRequest: SetPullRequestInput;
280
292
  milestone: SetMilestoneInput | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitkraken/provider-apis",
3
- "version": "0.30.0",
3
+ "version": "0.31.0",
4
4
  "description": "An SDK around different third-party APIs that accepts and returns data in a common format.",
5
5
  "author": "Axosoft, LLC dba GitKraken",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -39,26 +39,27 @@
39
39
  "js-base64": "3.7.5"
40
40
  },
41
41
  "devDependencies": {
42
+ "@eslint/js": "^9.39.1",
42
43
  "@types/chai": "^4.3.5",
43
44
  "@types/mocha": "^10.0.1",
44
45
  "@types/node": "^20.0.0",
45
46
  "@types/sinon": "^10.0.15",
46
- "@typescript-eslint/eslint-plugin": "^5.59.9",
47
- "@typescript-eslint/parser": "^5.59.9",
48
47
  "chai": "^4.3.7",
49
48
  "dotenv": "^16.3.1",
50
49
  "esbuild": "^0.19.2",
51
- "eslint": "^8.42.0",
52
- "eslint-plugin-no-only-tests": "^3.1.0",
50
+ "eslint": "^9.39.1",
51
+ "eslint-plugin-no-only-tests": "^3.3.0",
52
+ "globals": "^16.5.0",
53
53
  "license-checker-rseidelsohn": "^4.2.6",
54
- "mocha": "^10.2.0",
54
+ "mocha": "^11.7.5",
55
55
  "prettier": "2.8.8",
56
56
  "rimraf": "^5.0.1",
57
57
  "sinon": "^15.2.0",
58
58
  "ts-node": "^10.9.1",
59
59
  "typedoc": "^0.24.8",
60
60
  "typedoc-plugin-markdown": "^3.15.3",
61
- "typescript": "5.0.4"
61
+ "typescript": "5.0.4",
62
+ "typescript-eslint": "^8.49.0"
62
63
  },
63
64
  "resolutions": {
64
65
  "jackspeak": "2.1.1"