mobbdev 0.0.82 → 0.0.83
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/index.mjs +25 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1531,6 +1531,9 @@ function deleteComment(client, params) {
|
|
|
1531
1531
|
function getPrDiff(client, params) {
|
|
1532
1532
|
return client.request(GET_PR, { ...params, mediaType: { format: "diff" } });
|
|
1533
1533
|
}
|
|
1534
|
+
function getPr(client, params) {
|
|
1535
|
+
return client.request(GET_PR, { ...params });
|
|
1536
|
+
}
|
|
1534
1537
|
function createOrUpdateRepositorySecret(client, params) {
|
|
1535
1538
|
return client.request(CREATE_OR_UPDATE_A_REPOSITORY_SECRET, params);
|
|
1536
1539
|
}
|
|
@@ -2185,6 +2188,9 @@ var AdoSCMLib = class extends SCMLib {
|
|
|
2185
2188
|
accessToken: this.accessToken
|
|
2186
2189
|
});
|
|
2187
2190
|
}
|
|
2191
|
+
getPr() {
|
|
2192
|
+
throw new Error("Method not implemented.");
|
|
2193
|
+
}
|
|
2188
2194
|
};
|
|
2189
2195
|
var GitlabSCMLib = class extends SCMLib {
|
|
2190
2196
|
async createSubmitRequest(targetBranchName, sourceBranchName, title, body) {
|
|
@@ -2353,6 +2359,9 @@ var GitlabSCMLib = class extends SCMLib {
|
|
|
2353
2359
|
updatePrComment(_params, _oktokit) {
|
|
2354
2360
|
throw new Error("updatePrComment not implemented.");
|
|
2355
2361
|
}
|
|
2362
|
+
getPr() {
|
|
2363
|
+
throw new Error("Method not implemented.");
|
|
2364
|
+
}
|
|
2356
2365
|
};
|
|
2357
2366
|
var GithubSCMLib = class extends SCMLib {
|
|
2358
2367
|
// we don't always need a url, what's important is that we have an access token
|
|
@@ -2606,6 +2615,18 @@ var GithubSCMLib = class extends SCMLib {
|
|
|
2606
2615
|
githubAuthToken: this.accessToken
|
|
2607
2616
|
});
|
|
2608
2617
|
}
|
|
2618
|
+
async getPr(prNumber) {
|
|
2619
|
+
if (!this.url || !this.oktokit) {
|
|
2620
|
+
console.error("no url");
|
|
2621
|
+
throw new Error("no url");
|
|
2622
|
+
}
|
|
2623
|
+
const { owner, repo } = parseGithubOwnerAndRepo(this.url);
|
|
2624
|
+
return getPr(this.oktokit, {
|
|
2625
|
+
owner,
|
|
2626
|
+
repo,
|
|
2627
|
+
pull_number: prNumber
|
|
2628
|
+
});
|
|
2629
|
+
}
|
|
2609
2630
|
};
|
|
2610
2631
|
var StubSCMLib = class extends SCMLib {
|
|
2611
2632
|
async createSubmitRequest(_targetBranchName, _sourceBranchName, _title, _body) {
|
|
@@ -2684,6 +2705,10 @@ var StubSCMLib = class extends SCMLib {
|
|
|
2684
2705
|
console.error("updatePrComment() not implemented");
|
|
2685
2706
|
throw new Error("updatePrComment() not implemented");
|
|
2686
2707
|
}
|
|
2708
|
+
async getPr() {
|
|
2709
|
+
console.error("getPr() not implemented");
|
|
2710
|
+
throw new Error("getPr() not implemented");
|
|
2711
|
+
}
|
|
2687
2712
|
};
|
|
2688
2713
|
|
|
2689
2714
|
// src/features/analysis/scm/ado.ts
|