This repository was archived by the owner on Sep 16, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Gets a token from the environment or a command line argument.
1010
1111** Parameters**
1212
13- * ` tokenInput?: string | null ` - The token input from the command line.
14- * ` environmentVariableName: string" ` - The environment variable name to check for a token. Defaults to ` GITHUB_TOKEN ` .
13+ - ` tokenInput?: string | null ` - The token input from the command line.
14+ - ` environmentVariableName: string" ` - The environment variable name to check for a token. Defaults to ` GITHUB_TOKEN ` .
1515
1616** Returns** : ` string | null ` - The token if found, otherwise returns ` null ` .
Original file line number Diff line number Diff line change @@ -6,7 +6,10 @@ import "dotenv/config";
66 * @param environmentVariableName The name of the environment variable to check.
77 * @returns The token.
88 */
9- export default function getToken ( tokenInput ?: string | null , environmentVariableName = "GITHUB_TOKEN" ) : string | null {
9+ export default function getToken (
10+ tokenInput ?: string | null ,
11+ environmentVariableName = "GITHUB_TOKEN"
12+ ) : string | null {
1013 if ( tokenInput ) {
1114 return tokenInput ;
1215 }
Original file line number Diff line number Diff line change 44 "module" : " commonjs" ,
55 "outDir" : " dist" ,
66 "strict" : true ,
7- "target" : " es2019" ,
7+ "target" : " es2019"
88 },
99 "include" : [" src/**/*" ]
1010}
You can’t perform that action at this time.
0 commit comments