Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultGitHubTokenRef = "${DARK_FACTORY_GITHUB_TOKEN}" // #nosec G101 -- env var reference, not a credential
DefaultGitHubTokenRef is the default env var reference for the GitHub token.
Variables ¶
View Source
var AvailableWorkflows = Workflows{WorkflowDirect, WorkflowPR, WorkflowWorktree}
AvailableWorkflows contains all valid workflow values.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ProjectName string `yaml:"projectName"`
Workflow Workflow `yaml:"workflow"`
InboxDir string `yaml:"inboxDir"`
QueueDir string `yaml:"queueDir"`
CompletedDir string `yaml:"completedDir"`
LogDir string `yaml:"logDir"`
ContainerImage string `yaml:"containerImage"`
Model string `yaml:"model"`
DebounceMs int `yaml:"debounceMs"`
ServerPort int `yaml:"serverPort"`
AutoMerge bool `yaml:"autoMerge"`
AutoRelease bool `yaml:"autoRelease"`
GitHub GitHubConfig `yaml:"github"`
}
Config holds the dark-factory configuration.
func (Config) ResolvedGitHubToken ¶ added in v0.15.0
ResolvedGitHubToken returns the GitHub token with environment variables resolved. Logs a warning if a non-default token is configured but the env var is empty.
type GitHubConfig ¶ added in v0.15.0
type GitHubConfig struct {
Token string `yaml:"token"`
}
GitHubConfig holds GitHub-specific configuration.
Click to show internal directories.
Click to hide internal directories.