From 503d30eb2c137270d04f8dff953979a3f45e6e77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Wendt?= Date: Sat, 9 Nov 2024 22:52:40 +0100 Subject: [PATCH] fix: use GITHUB_TOKEN out-of-the-box Previously, the user had to export the GITHUB_TOKEN to start using the extension. This is now working out-of-the-box. --- gh-cleanup-notifications | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gh-cleanup-notifications b/gh-cleanup-notifications index b9a59fc..f09c96a 100755 --- a/gh-cleanup-notifications +++ b/gh-cleanup-notifications @@ -7,4 +7,6 @@ if ! type -p node >/dev/null; then exit 1 fi +export GITHUB_TOKEN=$(gh auth token) + exec node index.js "$@"