feat(git): repo inits
This commit is contained in:
parent
3f772138f2
commit
fab931ad59
4 changed files with 42 additions and 2195 deletions
|
|
@ -122,14 +122,21 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
xdg.configFile."github/ruleset.json".source =
|
||||
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.config/nix/config/github/ruleset.json";
|
||||
|
||||
programs.gh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
git_protocol = "https";
|
||||
prompt = "enabled";
|
||||
aliases = {
|
||||
init = "!gh api --method PATCH /repos/\"$1\" -f delete_branch_on_merge=true -f allow_squash_merge=true -f allow_merge_commit=false -f allow_rebase_merge=true -f allow_auto_merge=true -f allow_update_branch=true -f squash_merge_commit_title=PR_TITLE -f squash_merge_commit_message=BLANK > /dev/null && gh api --method POST /repos/\"$1\"/rulesets --input ${config.xdg.configHome}/github/ruleset.json > /dev/null && echo \"done: $1\"";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
enableDefaultConfig = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue