Skip to main content

OwnersConfig

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

customGroups

customGroups: Record<string, string[]>

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

defaultOwner

defaultOwner: null | string

The default owner for paths.

optional

optional: boolean

GitLab only. Marks the code owners section as optional.

paths

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.

requiredApprovals

requiredApprovals: number = ```ts 1 ```

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.