Skip to main content

PartialOwnersConfig

Defines ownership of source code within the current project, by mapping file paths and globs to owners. An owner is either a user, team, or group.

Index

Properties

optionalcustomGroups

customGroups?: null | Record<string, string[]>

Bitbucket only. A mapping of custom groups (prefixed with @@@), to a list of user and normal groups.

optionaldefaultOwner

defaultOwner?: null | string

The default owner for paths.

optionaloptional

optional?: null | boolean

GitLab only. Marks the code owners section as optional.

optionalpaths

paths?: null | PartialOwnersPaths

A mapping of file paths and file globs to owners. When a list, the defaultOwner is the owner, and each item is a path. When an object, the key is a path, and the value is a list of owners.

optionalrequiredApprovals

requiredApprovals?: null | number

Bitbucket and GitLab only. The number of approvals required for the request to be satisfied. For Bitbucket, utilizes the Check() condition. For GitLab, marks the code owners section as required.