package
0.0.0-20240808200918-904b98b3c052
Repository: https://github.com/ossf/allstar.git
Documentation: pkg.go.dev
# Functions
Function ClearInstLoc clears any saved config locations for an org/installation.
FetchConfig grabs a yaml config file from github and writes it to out.
GetAppConfigs gets the Allstar configurations for both Org and Repo level.
IsBotEnabled determines if allstar is enabled overall on the provided repo.
IsEnabled determines if a repo is enabled by interpreting the provided org-level, org-repo-level, and repo-level OptConfigs.
# Constants
OrgLevel is the organization level config that is defined in the .allstar or .github config repo.
OrgRepoLevel is the repo level config that is defined in the .allstar or .github config repo.
RepoLevel is the repo level config that is defined in the .allstar folder of the repo being checked.
# Structs
OrgConfig is the org-level config definition for Allstar.
OrgOptConfig is used in Allstar and policy-specific org-level config to define the opt in/out configuration.
RepoConfig is the repo-level config definition for Allstar.
RepoOptConfig is used in Allstar and policy-specific repo-level config to opt in/out of enforcement.
ScheduleConfig is used to disable notifications during specific days, such as weekends.
# Type aliases
ConfigLevel is an enum to indicate which level config to retrieve for the particular policy.