forked from gitgitgadget/gitgitgadget
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extensible: introduce product-config feature
Change most git specific references to use a configuration that can be loaded at run-time. The configuration may be javascript (native or ts generated) or json. It can be specified using `--config=` parameter to `misc-helper` script. Signed-off-by: Chris. Webster <[email protected]>
- Loading branch information
Showing
15 changed files
with
1,619 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { IConfig, setConfig } from "./project-config"; | ||
|
||
const defaultConfig: IConfig = { | ||
repo: { | ||
name: "git", | ||
owner: "gitgitgadget", | ||
baseOwner: "git", | ||
owners: ["gitgitgadget", "git", "dscho"], | ||
branches: ["maint", "seen"], | ||
closingBranches: ["maint", "master"], | ||
trackingBranches: ["maint", "seen", "master", "next"], | ||
maintainerBranch: "gitster", | ||
host: "github.com", | ||
}, | ||
mailrepo: { | ||
name: "git", | ||
owner: "gitgitgadget", | ||
host: "lore.kernel.org", | ||
}, | ||
mail: { | ||
author: "GitGitGadget", | ||
sender: "GitGitGadget" | ||
}, | ||
app: { | ||
appID: 12836, | ||
installationID: 195971, | ||
name: "gitgitgadget", | ||
displayName: "GitGitGadget", | ||
altname: "gitgitgadget-git" | ||
}, | ||
lint: { | ||
maxCommitsIgnore: [ | ||
"https://github.com/gitgitgadget/git/pull/923" | ||
], | ||
maxCommits: 30, | ||
}, | ||
user: { | ||
allowUserAsLogin: false, | ||
} | ||
}; | ||
|
||
export default defaultConfig; | ||
|
||
setConfig(defaultConfig); | ||
|
||
export function getConfig(): IConfig { | ||
return setConfig(defaultConfig); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.