feat(nix): init repos
This commit is contained in:
parent
5fa343ebcb
commit
44b9ac8a7e
2 changed files with 33 additions and 36 deletions
|
|
@ -1,34 +0,0 @@
|
||||||
{
|
|
||||||
"name": "main",
|
|
||||||
"target": "branch",
|
|
||||||
"enforcement": "active",
|
|
||||||
"conditions": {
|
|
||||||
"ref_name": {
|
|
||||||
"exclude": [],
|
|
||||||
"include": ["~DEFAULT_BRANCH"]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"rules": [
|
|
||||||
{ "type": "deletion" },
|
|
||||||
{ "type": "non_fast_forward" },
|
|
||||||
{
|
|
||||||
"type": "pull_request",
|
|
||||||
"parameters": {
|
|
||||||
"required_approving_review_count": 1,
|
|
||||||
"dismiss_stale_reviews_on_push": true,
|
|
||||||
"required_reviewers": [],
|
|
||||||
"require_code_owner_review": false,
|
|
||||||
"require_last_push_approval": true,
|
|
||||||
"required_review_thread_resolution": true,
|
|
||||||
"allowed_merge_methods": ["squash", "rebase"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"bypass_actors": [
|
|
||||||
{
|
|
||||||
"actor_id": 5,
|
|
||||||
"actor_type": "RepositoryRole",
|
|
||||||
"bypass_mode": "always"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
@ -122,8 +122,39 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.configFile."github/ruleset.json".source =
|
xdg.configFile."github/ruleset.json".text = builtins.toJSON {
|
||||||
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.config/nix/config/github/ruleset.json";
|
name = "main";
|
||||||
|
target = "branch";
|
||||||
|
enforcement = "active";
|
||||||
|
conditions.ref_name = {
|
||||||
|
exclude = [ ];
|
||||||
|
include = [ "~DEFAULT_BRANCH" ];
|
||||||
|
};
|
||||||
|
rules = [
|
||||||
|
{ type = "deletion"; }
|
||||||
|
{ type = "non_fast_forward"; }
|
||||||
|
{ type = "required_signatures"; }
|
||||||
|
{
|
||||||
|
type = "pull_request";
|
||||||
|
parameters = {
|
||||||
|
required_approving_review_count = 1;
|
||||||
|
dismiss_stale_reviews_on_push = true;
|
||||||
|
required_reviewers = [ ];
|
||||||
|
require_code_owner_review = false;
|
||||||
|
require_last_push_approval = true;
|
||||||
|
required_review_thread_resolution = true;
|
||||||
|
allowed_merge_methods = [ "squash" "rebase" ];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
bypass_actors = [
|
||||||
|
{
|
||||||
|
actor_id = 5;
|
||||||
|
actor_type = "RepositoryRole";
|
||||||
|
bypass_mode = "always";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
programs.gh = {
|
programs.gh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue