Convert GitHub variant to an enum.

This commit is contained in:
Chris Gavin
2021-02-15 09:29:10 +00:00
parent 0656b2c1ad
commit c9ca4ec1bd
24 changed files with 67 additions and 52 deletions

View File

@@ -21,7 +21,7 @@ const sampleApiDetails = {
url: "https://github.example.com",
};
const gitHubVersion = { type: "dotcom" } as util.GitHubVersion;
const gitHubVersion = { type: util.GitHubVariant.DOTCOM } as util.GitHubVersion;
// Returns the filepath of the newly-created file
function createConfigFile(inputFileContents: string, tmpDir: string): string {