Expand description
CODEOWNERS sync providers.
This module provides a trait-based abstraction for syncing CODEOWNERS files.
Provider implementations live in platform crates (e.g., cuenv-github, cuenv-gitlab).
§Provider Implementations
cuenv-github: GitHub CODEOWNERS (.github/CODEOWNERS, comment sections)cuenv-gitlab: GitLab CODEOWNERS (CODEOWNERS, bracket sections)
§Example
ⓘ
use cuenv_codeowners::provider::{CodeOwnersProvider, ProjectOwners};
use cuenv_github::GitHubCodeOwnersProvider;
use std::path::Path;
let provider = GitHubCodeOwnersProvider;
let projects = vec![/* ... */];
let result = provider.sync(Path::new("."), &projects, false)?;Structs§
- Check
Result - Result of a check operation.
- Project
Owners - Project with its owners configuration and relative path.
- Sync
Result - Result of a sync operation.
Enums§
- Provider
Error - Error type for provider operations.
- Sync
Status - Status of a sync operation.
Traits§
- Code
Owners Provider - Trait for CODEOWNERS sync providers.
Functions§
- generate_
aggregated_ content - Generate aggregated CODEOWNERS content from multiple projects.
- prefix_
pattern - Prefix a pattern with the project’s relative path.
- write_
codeowners_ file - Write content to a file, creating parent directories as needed.
Type Aliases§
- Result
- Result type for provider operations.