@@ -10,7 +10,6 @@ import { ILintError, LintCommit } from "./commit-lint.js";
1010import { commitExists , git , emptyTreeName , revParse } from "./git.js" ;
1111import { GitNotes } from "./git-notes.js" ;
1212import { GitGitGadget , IGitGitGadgetOptions } from "./gitgitgadget.js" ;
13- import { getConfig } from "./gitgitgadget-config.js" ;
1413import {
1514 ConclusionType ,
1615 GitHubGlue ,
@@ -25,7 +24,7 @@ import { MailArchiveGitHelper, stateKey as mailArchiveStateKey } from "./mail-ar
2524import { MailCommitMapping } from "./mail-commit-mapping.js" ;
2625import { IMailMetadata } from "./mail-metadata.js" ;
2726import { IPatchSeriesMetadata } from "./patch-series-metadata.js" ;
28- import { IConfig , getExternalConfig , setConfig } from "./project-config.js" ;
27+ import { IConfig } from "./project-config.js" ;
2928import {
3029 getPullRequestCommentKeyFromURL ,
3130 getPullRequestKeyFromURL ,
@@ -34,6 +33,7 @@ import {
3433} from "./pullRequestKey.js" ;
3534import { ISMTPOptions } from "./send-mail.js" ;
3635import { fileURLToPath } from "url" ;
36+ import defaultConfig from "./gitgitgadget-config.js" ;
3737
3838const readFile = util . promisify ( fs . readFile ) ;
3939type CommentFunction = ( comment : string ) => Promise < void > ;
@@ -63,10 +63,6 @@ export class CIHelper {
6363 protected maxCommitsExceptions : string [ ] ;
6464 protected mailingListMirror : string | undefined ;
6565
66- public static async getConfig ( configFile ?: string ) : Promise < IConfig > {
67- return configFile ? await getExternalConfig ( configFile ) : getConfig ( ) ;
68- }
69-
7066 public static validateConfig = typia . createValidate < IConfig > ( ) ;
7167
7268 public static getConfigAsGitHubActionInput ( ) : IConfig | undefined {
@@ -84,7 +80,7 @@ export class CIHelper {
8480 }
8581
8682 public constructor ( workDir : string = "pr-repo.git" , config ?: IConfig , skipUpdate ?: boolean , gggConfigDir = "." ) {
87- this . config = config !== undefined ? setConfig ( config ) : CIHelper . getConfigAsGitHubActionInput ( ) || getConfig ( ) ;
83+ this . config = config || CIHelper . getConfigAsGitHubActionInput ( ) || defaultConfig ;
8884 this . gggConfigDir = gggConfigDir ;
8985 this . workDir = workDir ;
9086 this . notes = new GitNotes ( workDir ) ;
0 commit comments