Skip to content

Commit

Permalink
fix(errors): fix typo in error message (#736)
Browse files Browse the repository at this point in the history
  • Loading branch information
shuoer86 committed Nov 8, 2023
1 parent 1482296 commit a9c73a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/definitions/errors.js
Expand Up @@ -170,7 +170,7 @@ export function EGHNOPERMISSION({ owner, repo }) {
"README.md#github-authentication",
)}) configured in the \`GH_TOKEN\` or \`GITHUB_TOKEN\` environment variable must allows to push to the repository ${owner}/${repo}.
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 reposotory 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).`,
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).`,
};
}

Expand Down
2 changes: 1 addition & 1 deletion test/get-search-queries.test.js
Expand Up @@ -28,7 +28,7 @@ test("Generate queries of 256 characters maximum", (t) => {
]);
});

test("Generate one query if it is less tahn 256 characters", (t) => {
test("Generate one query if it is less than 256 characters", (t) => {
const commits = [repeat("a", 40), repeat("b", 40)];

t.deepEqual(getSearchQueries(repeat("0", 20), commits), [
Expand Down

0 comments on commit a9c73a3

Please sign in to comment.