View Source Codeowners.Rule (Codeowners v0.2.1)

Contains types and functions related to individual CODEOWNERS rules.

Summary

Functions

Build a Codeowners.Rule for the given CODEOWNERS line.

Compile a Regex for the given pattern string.

Types

@type t() :: %Codeowners.Rule{
  owners: [String.t()],
  pattern: String.t() | nil,
  regex: Regex.t() | nil
}

Functions

@spec build(String.t()) :: t() | nil

Build a Codeowners.Rule for the given CODEOWNERS line.

@spec regex(String.t()) :: Regex.t()

Compile a Regex for the given pattern string.