You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: lib/definitions/errors.js
+3-15
Original file line number
Diff line number
Diff line change
@@ -178,24 +178,12 @@ If you are using [GitHub Enterprise](https://enterprise.github.com) please make
178
178
179
179
exportfunctionEGHNOPERMISSION({ owner, repo }){
180
180
return{
181
-
message: `The GitHub token doesn't allow to push to and maintain the repository ${owner}/${repo}.`,
181
+
message: `The GitHub token doesn't allow to push on the repository ${owner}/${repo}.`,
182
182
details: `The user associated with the [GitHub token](${linkify(
183
183
"README.md#github-authentication",
184
-
)}) configured in the \`GH_TOKEN\` or \`GITHUB_TOKEN\` environment variable must have permission to push to and maintain the repository ${owner}/${repo}.
184
+
)}) configured in the \`GH_TOKEN\` or \`GITHUB_TOKEN\` environment variable must allows to push to the repository ${owner}/${repo}.
185
185
186
-
Please make sure the GitHub user associated with the token is an [owner](https://help.github.com/articles/permission-levels-for-a-user-account-repository/#owner-access-on-a-repository-owned-by-a-user-account) or a [collaborator](https://help.github.com/articles/permission-levels-for-a-user-account-repository/#collaborator-access-on-a-repository-owned-by-a-user-account) if the repository belongs to a user account or has [write permissions](https://help.github.com/articles/managing-team-access-to-an-organization-repository) if the repository [belongs to an organization](https://help.github.com/articles/repository-permission-levels-for-an-organization).`,
187
-
};
188
-
}
189
-
190
-
exportfunctionEGHNOSCOPE({ scopes }){
191
-
return{
192
-
message: `The GitHub token doesn't have the necessary OAuth scopes to write contents, issues, and pull requests.`,
193
-
details: `The [GitHub token](${linkify(
194
-
"README.md#github-authentication",
195
-
)}) configured in the \`GH_TOKEN\` or \`GITHUB_TOKEN\` environment variable must have the correct scopes.
196
-
${scopes ? `\nThe token you used has scopes: ${scopes.join(", ")}\n` : ""}
197
-
For classic PATs, make sure the token has the \`repo\` scope if the repository is private, or \`public_repo\` scope otherwise.
198
-
For fine-grained PATs, make sure the token has the \`content: write\`, \`issues: write\`, and \`pull_requests: write\` scopes on the repository.`,
186
+
Please make sure the GitHub user associated with the token is an [owner](https://help.github.com/articles/permission-levels-for-a-user-account-repository/#owner-access-on-a-repository-owned-by-a-user-account) or a [collaborator](https://help.github.com/articles/permission-levels-for-a-user-account-repository/#collaborator-access-on-a-repository-owned-by-a-user-account) if the repository belong to a user account or has [write permissions](https://help.github.com/articles/managing-team-access-to-an-organization-repository) if the repository [belongs to an organization](https://help.github.com/articles/repository-permission-levels-for-an-organization).`,
0 commit comments