@ogygie/studio 0.22.0 → 0.24.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.
package/dist/server.js
CHANGED
|
@@ -3498,7 +3498,7 @@ function createGithubAppAuth(deps) {
|
|
|
3498
3498
|
message: `GitHub answered ${response.status} when minting the installation token.`,
|
|
3499
3499
|
file: null,
|
|
3500
3500
|
cause: `status=${response.status} for installation ${deps.installationId}`,
|
|
3501
|
-
suggestedFix: "Check githubApp.appId, githubApp.installationId and the private key: the app must be installed on this repo with contents
|
|
3501
|
+
suggestedFix: "Check githubApp.appId, githubApp.installationId and the private key: the app must be installed on this repo with contents, pull requests and deployments (write), checks and commit statuses (read)."
|
|
3502
3502
|
});
|
|
3503
3503
|
}
|
|
3504
3504
|
const body = await response.json();
|
|
@@ -3706,7 +3706,7 @@ function createGithubPullsClient(deps) {
|
|
|
3706
3706
|
message: `GitHub answered ${response.status} for ${method} ${url.replace(apiBase, "")}.`,
|
|
3707
3707
|
file: null,
|
|
3708
3708
|
cause: `status=${response.status}`,
|
|
3709
|
-
suggestedFix: "
|
|
3709
|
+
suggestedFix: response.status === 403 ? "GitHub refused the call: the app installation must grant, on this repo, contents and pull requests (write), checks and commit statuses (read) \u2014 add the missing permission to the app, then accept it on the installation." : "Retry later; GitHub did not answer as expected."
|
|
3710
3710
|
});
|
|
3711
3711
|
}
|
|
3712
3712
|
const text = await response.text();
|
|
@@ -3822,7 +3822,7 @@ function createGithubDeployClient(deps) {
|
|
|
3822
3822
|
message: `GitHub answered ${response.status} for ${method} ${url.replace(apiBase, "")}.`,
|
|
3823
3823
|
file: null,
|
|
3824
3824
|
cause: `status=${response.status}`,
|
|
3825
|
-
suggestedFix: response.status === 422 ? "Check the ref and the sha: a protected ref only moves by the installation, in fast-forward unless forced." : "Retry later; check the app installation grants contents and deployments on this repo."
|
|
3825
|
+
suggestedFix: response.status === 422 ? "Check the ref and the sha: a protected ref only moves by the installation, in fast-forward unless forced." : "Retry later; check the app installation grants contents (write) and deployments (write) on this repo."
|
|
3826
3826
|
});
|
|
3827
3827
|
}
|
|
3828
3828
|
const text = await response.text();
|