acl

package
v0.28.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const OKToTestCommentRegexp = `(^|\n)\/ok-to-test(\r\n|\r|\n|$)`

Variables

This section is empty.

Functions

func MatchRegexp

func MatchRegexp(reg, comment string) bool

MatchRegexp Match a regexp to a string.

func UserInOwnerFile

func UserInOwnerFile(ownersContent, ownersAliasesContent, sender string) (bool, error)

UserInOwnerFile Parse OWNERS and OWNERS_ALIASES files and return true if the sender is in there. Support OWNERS simple configs (approvers, reviewers) and filters. When filters are used, only match against the ".*" filter.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL