Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove required branch from branch protection rules and use default #214

Merged
merged 1 commit into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions rule-types/github/branch_protection_allow_deletions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ def:
branch:
type: string
description: "The name of the branch to check. If left empty, the default branch will be used."
required:
- branch
default: ""
# Defines the schema for writing a rule with this rule being checked
rule_schema:
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ def:
branch:
type: string
description: "The name of the branch to check. If left empty, the default branch will be used."
required:
- branch
default: ""
# Defines the schema for writing a rule with this rule being checked
rule_schema:
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ def:
branch:
type: string
description: "The name of the branch to check. If left empty, the default branch will be used."
required:
- branch
default: ""
# Defines the schema for writing a rule with this rule being checked
rule_schema:
properties:
Expand Down
3 changes: 1 addition & 2 deletions rule-types/github/branch_protection_enabled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ def:
branch:
type: string
description: "The name of the branch to check. If left empty, the default branch will be used."
required:
- branch
default: ""
rule_schema: {}
# Defines the configuration for ingesting data relevant for the rule
ingest:
Expand Down
3 changes: 1 addition & 2 deletions rule-types/github/branch_protection_enforce_admins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ def:
branch:
type: string
description: "The name of the branch to check. If left empty, the default branch will be used."
required:
- branch
default: ""
# Defines the schema for writing a rule with this rule being checked
rule_schema:
properties:
Expand Down
3 changes: 1 addition & 2 deletions rule-types/github/branch_protection_lock_branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ def:
branch:
type: string
description: "The name of the branch to check. If left empty, the default branch will be used."
required:
- branch
default: ""
# Defines the schema for writing a rule with this rule being checked
rule_schema:
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ def:
branch:
type: string
description: "The name of the branch to check. If left empty, the default branch will be used."
required:
- branch
default: ""
# Defines the schema for writing a rule with this rule being checked
rule_schema:
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ def:
branch:
type: string
description: "The name of the branch to check. If left empty, the default branch will be used."
required:
- branch
default: ""
# Defines the schema for writing a rule with this rule being checked
rule_schema:
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ def:
branch:
type: string
description: "The name of the branch to check. If left empty, the default branch will be used."
required:
- branch
default: ""
# Defines the schema for writing a rule with this rule being checked
rule_schema:
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ def:
branch:
type: string
description: "The name of the branch to check. If left empty, the default branch will be used."
required:
- branch
default: ""
# Defines the schema for writing a rule with this rule being checked
rule_schema:
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ def:
branch:
type: string
description: "The name of the branch to check. If left empty, the default branch will be used."
required:
- branch
default: ""
# Defines the schema for writing a rule with this rule being checked
rule_schema:
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ def:
branch:
type: string
description: "The name of the branch to check. If left empty, the default branch will be used."
required:
- branch
default: ""
# Defines the schema for writing a rule with this rule being checked
rule_schema:
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ def:
branch:
type: string
description: "The name of the branch to check. If left empty, the default branch will be used."
required:
- branch
default: ""
# Defines the schema for writing a rule with this rule being checked
rule_schema:
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ def:
branch:
type: string
description: "The name of the branch to check. If left empty, the default branch will be used."
required:
- branch
default: ""
# Defines the schema for writing a rule with this rule being checked
rule_schema:
type: object
Expand Down