correcting bug with async env
parent
3d7d001156
commit
c54786ae55
|
@ -6520,12 +6520,12 @@ class GitHub {
|
|||
}
|
||||
static updateGitHubCheckRequest(data) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return yield GitHub.octokitDefaultToken.request(`PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}`, data);
|
||||
return yield GitHub.octokitPAT.request(`PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}`, data);
|
||||
});
|
||||
}
|
||||
static createGitHubCheckRequest(data) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return yield GitHub.octokitDefaultToken.request(`POST /repos/{owner}/{repo}/check-runs`, data);
|
||||
return yield GitHub.octokitPAT.request(`POST /repos/{owner}/{repo}/check-runs`, data);
|
||||
});
|
||||
}
|
||||
static runUpdateAsyncChecksWorkflow(data, mode) {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -126,11 +126,11 @@ class GitHub {
|
|||
}
|
||||
|
||||
public static async updateGitHubCheckRequest(data) {
|
||||
return await GitHub.octokitDefaultToken.request(`PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}`, data);
|
||||
return await GitHub.octokitPAT.request(`PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}`, data);
|
||||
}
|
||||
|
||||
public static async createGitHubCheckRequest(data) {
|
||||
return await GitHub.octokitDefaultToken.request(`POST /repos/{owner}/{repo}/check-runs`, data);
|
||||
return await GitHub.octokitPAT.request(`POST /repos/{owner}/{repo}/check-runs`, data);
|
||||
}
|
||||
|
||||
public static async runUpdateAsyncChecksWorkflow(data, mode) {
|
||||
|
|
Loading…
Reference in New Issue