From a9c73a3b45301676ec4b06582abe0fc10ff5087e Mon Sep 17 00:00:00 2001 From: shuoer86 <129674997+shuoer86@users.noreply.github.com> Date: Wed, 8 Nov 2023 22:23:11 +0800 Subject: [PATCH] fix(errors): fix typo in error message (#736) --- lib/definitions/errors.js | 2 +- test/get-search-queries.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/definitions/errors.js b/lib/definitions/errors.js index 6dda6a62..9dc7eca8 100644 --- a/lib/definitions/errors.js +++ b/lib/definitions/errors.js @@ -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).`, }; } diff --git a/test/get-search-queries.test.js b/test/get-search-queries.test.js index 6d754509..104bd771 100644 --- a/test/get-search-queries.test.js +++ b/test/get-search-queries.test.js @@ -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), [