()
| 6 | import {getInput} from './io'; |
| 7 | |
| 8 | function getOctokitClient() { |
| 9 | const token = getInput('github_token'); |
| 10 | if (!token) { |
| 11 | throw new Error('github_token is required'); |
| 12 | } |
| 13 | return getOctokit(token); |
| 14 | } |
| 15 | |
| 16 | export async function getUserInfo(username?: string) { |
| 17 | if (!username) return undefined; |
no test coverage detected