We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 21348b6 + 833cf30 commit 02c565bCopy full SHA for 02c565b
src/modules/github.ts
@@ -2,7 +2,7 @@ import { Octokit } from "@octokit/rest";
2
3
export const createGitHubRepo = async (data: Record<string, any>) => {
4
5
- if(data.enableGit === false) return "";
+ if(!data.enableGit) return "";
6
const token = data.GITHUB_ACCESS_TOKEN;
7
const repoName = data.repoName;
8
@@ -15,8 +15,8 @@ export const createGitHubRepo = async (data: Record<string, any>) => {
15
16
return response.data.clone_url;
17
} catch (error) {
18
- console.error(`Error when create repository on GitHub: ${error}`);
19
- process.exit(1);
+ console.error(`Skipped - create repository on GitHub: ${error}`);
+ return ""
20
}
21
};
22
0 commit comments