From 5c57e4c76b77b2b9dca7418764750a081486d4cf Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Thu, 4 Mar 2021 21:19:27 +0100 Subject: [PATCH] Add documentation link in action --- source/app/action/index.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/app/action/index.mjs b/source/app/action/index.mjs index 07090b01..f88db521 100644 --- a/source/app/action/index.mjs +++ b/source/app/action/index.mjs @@ -76,7 +76,7 @@ //Token for data gathering info("GitHub token", token, {token:true}) if (!token) - throw new Error("You must provide a valid GitHub token to gather your metrics") + throw new Error('You must provide a valid GitHub personal token to gather your metrics (see "How to setup?" section at https://github.com/lowlighter/metrics#%EF%B8%8F-using-github-action-on-your-profile-repository-5-min-setup)') conf.settings.token = token const api = {} api.graphql = octokit.graphql.defaults({headers:{authorization:`token ${token}`}})