Load remote config file
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import * as core from '@actions/core'
|
||||
import {Octokit} from 'octokit'
|
||||
import spdxParse from 'spdx-expression-parse'
|
||||
import {Changes} from './schemas'
|
||||
|
||||
@@ -38,3 +40,9 @@ export function isSPDXValid(license: string): boolean {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
export function octokitClient(token = 'repo-token'): Octokit {
|
||||
return new Octokit({
|
||||
auth: core.getInput(token, {required: true})
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user