Reuse getApiDetails code

This commit is contained in:
Henry Mercer 2022-09-02 19:59:18 +01:00
parent 4b5dea8eed
commit fc2f344141
12 changed files with 17 additions and 50 deletions

View file

@ -63,7 +63,7 @@ function deriveApiUrl(githubUrl: string): string {
return url.toString();
}
function getApiDetails() {
export function getApiDetails() {
return {
auth: getRequiredInput("token"),
url: getRequiredEnvParam("GITHUB_SERVER_URL"),