-
-
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.
Ops: Added exported GitHub rulesets for tags and branches (closes #70) (
#71) * Ops: Added exported GitHub rulesets for tags and branches (closes #70) * Fixed dead link with Vale on VSCode extensions website * [MegaLinter] Apply linters fixes * Fixed formatting with Prettier * [MegaLinter] Apply linters fixes --------- Co-authored-by: andrewvaughan <[email protected]>
- Loading branch information
1 parent
8661255
commit 9a88cac
Showing
7 changed files
with
252 additions
and
85 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,37 @@ | ||
{ | ||
"id": 124535, | ||
"name": "Branch Common Rules", | ||
"target": "branch", | ||
"source_type": "Repository", | ||
"source": "andrewvaughan/template-core", | ||
"enforcement": "active", | ||
"conditions": { | ||
"ref_name": { | ||
"exclude": [], | ||
"include": ["~ALL"] | ||
} | ||
}, | ||
"rules": [ | ||
{ | ||
"type": "deletion" | ||
}, | ||
{ | ||
"type": "creation" | ||
}, | ||
{ | ||
"type": "required_linear_history" | ||
} | ||
], | ||
"bypass_actors": [ | ||
{ | ||
"actor_id": 2, | ||
"actor_type": "RepositoryRole", | ||
"bypass_mode": "always" | ||
}, | ||
{ | ||
"actor_id": 5, | ||
"actor_type": "RepositoryRole", | ||
"bypass_mode": "always" | ||
} | ||
] | ||
} |
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,65 @@ | ||
{ | ||
"id": 124539, | ||
"name": "Branch Environment Rules", | ||
"target": "branch", | ||
"source_type": "Repository", | ||
"source": "andrewvaughan/template-core", | ||
"enforcement": "active", | ||
"conditions": { | ||
"ref_name": { | ||
"exclude": [], | ||
"include": ["~DEFAULT_BRANCH", "refs/heads/production", "refs/heads/staging"] | ||
} | ||
}, | ||
"rules": [ | ||
{ | ||
"type": "deletion" | ||
}, | ||
{ | ||
"type": "non_fast_forward" | ||
}, | ||
{ | ||
"type": "creation" | ||
}, | ||
{ | ||
"type": "update" | ||
}, | ||
{ | ||
"type": "pull_request", | ||
"parameters": { | ||
"required_approving_review_count": 1, | ||
"dismiss_stale_reviews_on_push": true, | ||
"require_code_owner_review": true, | ||
"require_last_push_approval": true, | ||
"required_review_thread_resolution": true | ||
} | ||
}, | ||
{ | ||
"type": "required_linear_history" | ||
}, | ||
{ | ||
"type": "required_status_checks", | ||
"parameters": { | ||
"strict_required_status_checks_policy": true, | ||
"required_status_checks": [ | ||
{ | ||
"context": "MegaLinter", | ||
"integration_id": 15368 | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"bypass_actors": [ | ||
{ | ||
"actor_id": 2, | ||
"actor_type": "RepositoryRole", | ||
"bypass_mode": "always" | ||
}, | ||
{ | ||
"actor_id": 5, | ||
"actor_type": "RepositoryRole", | ||
"bypass_mode": "always" | ||
} | ||
] | ||
} |
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,60 @@ | ||
{ | ||
"id": 124536, | ||
"name": "Branch Release Patterns", | ||
"target": "branch", | ||
"source_type": "Repository", | ||
"source": "andrewvaughan/template-core", | ||
"enforcement": "active", | ||
"conditions": { | ||
"ref_name": { | ||
"exclude": [], | ||
"include": ["refs/heads/release/*", "refs/heads/release/**/*"] | ||
} | ||
}, | ||
"rules": [ | ||
{ | ||
"type": "deletion" | ||
}, | ||
{ | ||
"type": "non_fast_forward" | ||
}, | ||
{ | ||
"type": "creation" | ||
}, | ||
{ | ||
"type": "update" | ||
}, | ||
{ | ||
"type": "required_linear_history" | ||
}, | ||
{ | ||
"type": "pull_request", | ||
"parameters": { | ||
"required_approving_review_count": 1, | ||
"dismiss_stale_reviews_on_push": true, | ||
"require_code_owner_review": true, | ||
"require_last_push_approval": true, | ||
"required_review_thread_resolution": true | ||
} | ||
}, | ||
{ | ||
"type": "required_status_checks", | ||
"parameters": { | ||
"strict_required_status_checks_policy": true, | ||
"required_status_checks": [ | ||
{ | ||
"context": "MegaLinter", | ||
"integration_id": 15368 | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"bypass_actors": [ | ||
{ | ||
"actor_id": 5, | ||
"actor_type": "RepositoryRole", | ||
"bypass_mode": "always" | ||
} | ||
] | ||
} |
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,43 @@ | ||
{ | ||
"id": 124530, | ||
"name": "Tag Common Rules", | ||
"target": "tag", | ||
"source_type": "Repository", | ||
"source": "andrewvaughan/template-core", | ||
"enforcement": "active", | ||
"conditions": { | ||
"ref_name": { | ||
"exclude": [], | ||
"include": ["~ALL"] | ||
} | ||
}, | ||
"rules": [ | ||
{ | ||
"type": "deletion" | ||
}, | ||
{ | ||
"type": "non_fast_forward" | ||
}, | ||
{ | ||
"type": "creation" | ||
}, | ||
{ | ||
"type": "update" | ||
}, | ||
{ | ||
"type": "required_linear_history" | ||
} | ||
], | ||
"bypass_actors": [ | ||
{ | ||
"actor_id": 2, | ||
"actor_type": "RepositoryRole", | ||
"bypass_mode": "always" | ||
}, | ||
{ | ||
"actor_id": 5, | ||
"actor_type": "RepositoryRole", | ||
"bypass_mode": "always" | ||
} | ||
] | ||
} |
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,38 @@ | ||
{ | ||
"id": 124534, | ||
"name": "Tag Release Patterns", | ||
"target": "tag", | ||
"source_type": "Repository", | ||
"source": "andrewvaughan/template-core", | ||
"enforcement": "active", | ||
"conditions": { | ||
"ref_name": { | ||
"exclude": [], | ||
"include": ["refs/tags/v*"] | ||
} | ||
}, | ||
"rules": [ | ||
{ | ||
"type": "deletion" | ||
}, | ||
{ | ||
"type": "non_fast_forward" | ||
}, | ||
{ | ||
"type": "creation" | ||
}, | ||
{ | ||
"type": "update" | ||
}, | ||
{ | ||
"type": "required_linear_history" | ||
} | ||
], | ||
"bypass_actors": [ | ||
{ | ||
"actor_id": 5, | ||
"actor_type": "RepositoryRole", | ||
"bypass_mode": "always" | ||
} | ||
] | ||
} |
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