BranchRule class

Metadata of a BranchRule.

BranchRule is the protection rule to enforce pre-defined rules on designated branches within a repository.

Constructors

BranchRule.new({bool? allowStaleReviews, Map<String, String>? annotations, String? createTime, bool? disabled, String? etag, String? includePattern, int? minimumApprovalsCount, int? minimumReviewsCount, String? name, bool? requireCommentsResolved, bool? requireLinearHistory, bool? requirePullRequest, List<Check>? requiredStatusChecks, String? uid, String? updateTime})
BranchRule.fromJson(Map json_)

Properties

allowStaleReviews bool?
Determines if allow stale reviews or approvals before merging to the branch.
getter/setter pair
annotations Map<String, String>?
User annotations.
getter/setter pair
createTime String?
Create timestamp.
getter/setter pair
disabled bool?
Determines if the branch rule is disabled or not.
getter/setter pair
etag String?
This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
includePattern String?
The pattern of the branch that can match to this BranchRule.
getter/setter pair
minimumApprovalsCount int?
The minimum number of approvals required for the branch rule to be matched.
getter/setter pair
minimumReviewsCount int?
The minimum number of reviews required for the branch rule to be matched.
getter/setter pair
name String?
A unique identifier for a BranchRule.
getter/setter pair
requireCommentsResolved bool?
Determines if require comments resolved before merging to the branch.
getter/setter pair
requiredStatusChecks List<Check>?
List of required status checks before merging to the branch.
getter/setter pair
requireLinearHistory bool?
Determines if require linear history before merging to the branch.
getter/setter pair
requirePullRequest bool?
Determines if the branch rule requires a pull request or not.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uid String?
Unique identifier of the repository.
getter/setter pair
updateTime String?
Update timestamp.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited