diff --git a/Chart.yaml b/Chart.yaml index b40fb18..1813c72 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -3,7 +3,7 @@ name: git-hubby description: Helm chart for the git-hubby Kubernetes operator — manage GitHub resources declaratively via CRDs type: application version: 0.0.1 -appVersion: "0.4.5" +appVersion: "0.5.0" home: https://github.com/Interhyp/git-hubby-helm sources: - https://github.com/Interhyp/git-hubby-helm diff --git a/crds/github.interhyp.de_rulesetpresets.yaml b/crds/github.interhyp.de_rulesetpresets.yaml index c15b44c..20e4281 100644 --- a/crds/github.interhyp.de_rulesetpresets.yaml +++ b/crds/github.interhyp.de_rulesetpresets.yaml @@ -514,6 +514,66 @@ spec: RequiredReviewThreadResolution requires all review comment threads to be resolved before merging. This ensures all feedback is addressed. type: boolean + requiredReviewers: + description: |- + RequiredReviewers forces pull request approval by the configured reviewers + on all pull requests changing files that match the configured file patterns. + items: + description: |- + RequiredPullRequestReviewer is the configuration for a required review on all pull request changing files that match + the configured file patterns. + properties: + filePatterns: + default: + - '*' + description: |- + FilePatterns are fnmatch syntax patterns that pull request changes are matched against. + If a pull request changes any matching file it must be approved by the configured reviewers. + Defaults to "*" representing all files. + items: + type: string + maxItems: 10 + type: array + minimumApprovals: + default: 0 + description: |- + MinimumApprovals is the minimum number of approvals required before a matching pull request + can be merged. If set to zero, the team will be added to the pull request but approval is optional. + Requires a non-negative value. Defaults to 0. + minimum: 0 + type: integer + reviewer: + description: Reviewer defines who is required to review. + properties: + id: + description: ID of the required reviewer. This field + is exclusive with Slug. + format: int64 + type: integer + slug: + description: |- + Slug identifying the required reviewer. This field is exclusive with ID. + Slug will be resolved to the id during reconciliation. + type: string + type: + description: Type of the required reviewer. Currently + only Teams are supported. + enum: + - Team + type: string + required: + - type + type: object + x-kubernetes-validations: + - message: exactly one of the fields in [id slug] must + be set + rule: '[has(self.id),has(self.slug)].filter(x,x==true).size() + == 1' + required: + - reviewer + type: object + maxItems: 10 + type: array required: - allowedMergeMethods type: object