// Copyright 2026 The Gitea Authors. All rights reserved. // SPDX-License-Identifier: MIT package structs import "time" // OrgPushPolicy represents an organization's push policy (one per org) type OrgPushPolicy struct { OrgID int64 `json:"org_id"` BranchNamePattern string `json:"branch_name_pattern"` TagNamePattern string `json:"tag_name_pattern"` RequireSecretBlock bool `json:"require_secret_block"` MaxFileSize int64 `json:"max_file_size"` BlockedFilePatterns string `json:"blocked_file_patterns"` // swagger:strfmt date-time Created time.Time `json:"created_at"` // swagger:strfmt date-time Updated time.Time `json:"updated_at"` } // EditOrgPushPolicyOption options for editing an organization's push policy. Only // fields that are set will be changed. type EditOrgPushPolicyOption struct { BranchNamePattern *string `json:"branch_name_pattern"` TagNamePattern *string `json:"tag_name_pattern"` RequireSecretBlock *bool `json:"require_secret_block"` MaxFileSize *int64 `json:"max_file_size"` BlockedFilePatterns *string `json:"blocked_file_patterns"` }