From 4381229e809d4576a00da17380bd85f8f5812f87 Mon Sep 17 00:00:00 2001 From: Jonathan Clem Date: Fri, 19 Apr 2019 17:06:06 -0400 Subject: [PATCH] Add a token property to Toolkit --- packages/toolkit/src/toolkit.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/toolkit/src/toolkit.ts b/packages/toolkit/src/toolkit.ts index 700c921b..620757f7 100644 --- a/packages/toolkit/src/toolkit.ts +++ b/packages/toolkit/src/toolkit.ts @@ -40,6 +40,11 @@ export class Toolkit { */ readonly exit: Exit = new Exit(this.logger) + /** + * The authentication token for the GitHub API + */ + readonly token: string = process.env.GITHUB_TOKEN || '' + /** * Wrap a Signale logger so that its a callable class */