@morphllm/morphsdk 0.2.105 → 0.2.106
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/{chunk-DX5HVNUP.js → chunk-GOPNOZVI.js} +13 -13
- package/dist/chunk-GOPNOZVI.js.map +1 -0
- package/dist/client.cjs +12 -12
- package/dist/client.cjs.map +1 -1
- package/dist/client.js +1 -1
- package/dist/index.cjs +12 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-DX5HVNUP.js.map +0 -1
package/dist/client.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -3819,10 +3819,10 @@ var GitHubClient = class {
|
|
|
3819
3819
|
// Installations
|
|
3820
3820
|
// ==========================================================================
|
|
3821
3821
|
async listInstallations() {
|
|
3822
|
-
return this.request("GET", "/v1/github/installations");
|
|
3822
|
+
return this.request("GET", "/api/v1/github/installations");
|
|
3823
3823
|
}
|
|
3824
3824
|
async getInstallation(installationId) {
|
|
3825
|
-
return this.request("GET", `/v1/github/installations/${installationId}`);
|
|
3825
|
+
return this.request("GET", `/api/v1/github/installations/${installationId}`);
|
|
3826
3826
|
}
|
|
3827
3827
|
// ==========================================================================
|
|
3828
3828
|
// Repositories
|
|
@@ -3832,7 +3832,7 @@ var GitHubClient = class {
|
|
|
3832
3832
|
if (!installationId) {
|
|
3833
3833
|
throw new NoInstallationError("installationId required. Call installations.list() first.");
|
|
3834
3834
|
}
|
|
3835
|
-
return this.request("GET", `/v1/github/installations/${installationId}/repos`);
|
|
3835
|
+
return this.request("GET", `/api/v1/github/installations/${installationId}/repos`);
|
|
3836
3836
|
}
|
|
3837
3837
|
// ==========================================================================
|
|
3838
3838
|
// Pull Requests
|
|
@@ -3845,7 +3845,7 @@ var GitHubClient = class {
|
|
|
3845
3845
|
...input.state && { state: input.state },
|
|
3846
3846
|
...installationId && { installationId }
|
|
3847
3847
|
});
|
|
3848
|
-
return this.request("GET", `/v1/github/pulls?${params}`);
|
|
3848
|
+
return this.request("GET", `/api/v1/github/pulls?${params}`);
|
|
3849
3849
|
}
|
|
3850
3850
|
async getPullRequest(input) {
|
|
3851
3851
|
const installationId = this.getInstallationId(input);
|
|
@@ -3856,7 +3856,7 @@ var GitHubClient = class {
|
|
|
3856
3856
|
});
|
|
3857
3857
|
return this.request(
|
|
3858
3858
|
"GET",
|
|
3859
|
-
`/v1/github/pulls/${input.number}?${params}`
|
|
3859
|
+
`/api/v1/github/pulls/${input.number}?${params}`
|
|
3860
3860
|
);
|
|
3861
3861
|
}
|
|
3862
3862
|
// ==========================================================================
|
|
@@ -3871,7 +3871,7 @@ var GitHubClient = class {
|
|
|
3871
3871
|
...input.environment && { environment: input.environment },
|
|
3872
3872
|
...installationId && { installationId }
|
|
3873
3873
|
});
|
|
3874
|
-
return this.request("GET", `/v1/github/deployments?${params}`);
|
|
3874
|
+
return this.request("GET", `/api/v1/github/deployments?${params}`);
|
|
3875
3875
|
}
|
|
3876
3876
|
// ==========================================================================
|
|
3877
3877
|
// Comments
|
|
@@ -3884,11 +3884,11 @@ var GitHubClient = class {
|
|
|
3884
3884
|
pr: String(input.pr),
|
|
3885
3885
|
...installationId && { installationId }
|
|
3886
3886
|
});
|
|
3887
|
-
return this.request("GET", `/v1/github/comments?${params}`);
|
|
3887
|
+
return this.request("GET", `/api/v1/github/comments?${params}`);
|
|
3888
3888
|
}
|
|
3889
3889
|
async createComment(input) {
|
|
3890
3890
|
const installationId = this.getInstallationId(input);
|
|
3891
|
-
return this.request("POST", "/v1/github/comments", {
|
|
3891
|
+
return this.request("POST", "/api/v1/github/comments", {
|
|
3892
3892
|
owner: input.owner,
|
|
3893
3893
|
repo: input.repo,
|
|
3894
3894
|
pr: input.pr,
|
|
@@ -3898,7 +3898,7 @@ var GitHubClient = class {
|
|
|
3898
3898
|
}
|
|
3899
3899
|
async updateComment(input) {
|
|
3900
3900
|
const installationId = this.getInstallationId(input);
|
|
3901
|
-
return this.request("PATCH", `/v1/github/comments/${input.commentId}`, {
|
|
3901
|
+
return this.request("PATCH", `/api/v1/github/comments/${input.commentId}`, {
|
|
3902
3902
|
owner: input.owner,
|
|
3903
3903
|
repo: input.repo,
|
|
3904
3904
|
body: input.body,
|
|
@@ -3912,14 +3912,14 @@ var GitHubClient = class {
|
|
|
3912
3912
|
repo: input.repo,
|
|
3913
3913
|
...installationId && { installationId }
|
|
3914
3914
|
});
|
|
3915
|
-
await this.request("DELETE", `/v1/github/comments/${input.commentId}?${params}`);
|
|
3915
|
+
await this.request("DELETE", `/api/v1/github/comments/${input.commentId}?${params}`);
|
|
3916
3916
|
}
|
|
3917
3917
|
// ==========================================================================
|
|
3918
3918
|
// Check Runs
|
|
3919
3919
|
// ==========================================================================
|
|
3920
3920
|
async createCheckRun(input) {
|
|
3921
3921
|
const installationId = this.getInstallationId(input);
|
|
3922
|
-
return this.request("POST", "/v1/github/check-runs", {
|
|
3922
|
+
return this.request("POST", "/api/v1/github/check-runs", {
|
|
3923
3923
|
owner: input.owner,
|
|
3924
3924
|
repo: input.repo,
|
|
3925
3925
|
sha: input.sha,
|
|
@@ -3932,7 +3932,7 @@ var GitHubClient = class {
|
|
|
3932
3932
|
}
|
|
3933
3933
|
async updateCheckRun(input) {
|
|
3934
3934
|
const installationId = this.getInstallationId(input);
|
|
3935
|
-
return this.request("PATCH", `/v1/github/check-runs/${input.checkRunId}`, {
|
|
3935
|
+
return this.request("PATCH", `/api/v1/github/check-runs/${input.checkRunId}`, {
|
|
3936
3936
|
owner: input.owner,
|
|
3937
3937
|
repo: input.repo,
|
|
3938
3938
|
...input.status && { status: input.status },
|