pub struct ManifestFile {
pub name: String,
pub install_target: InstallTarget,
pub owner: String,
pub install_repos: Vec<String>,
pub sink: SinkConfig,
pub github: GitHubManifest,
}Expand description
Top-level YAML structure consumed by github-app-forge create.
Combines the GitHub manifest itself with github-app-forge-specific knobs:
where to install (org or user), where to write credentials, what label/path
to use in the chosen sink. Manifest fields are nested under github so the
outer keys remain stable as the GitHub schema grows.
Fields§
§name: StringFriendly name used for filenames + log lines (e.g. pleme-arc-rio).
install_target: InstallTargetorg for org-installed apps, user for personal-account apps.
owner: StringGitHub org or username the app belongs to.
install_repos: Vec<String>Optional initial install scope. After app creation, the tool will open the install URL pre-selecting these repos.
sink: SinkConfigSink config. Default = stdout.
github: GitHubManifestThe GitHub manifest body — fields here are sent to GitHub verbatim.
Implementations§
Source§impl ManifestFile
impl ManifestFile
Sourcepub fn manifest_url(&self) -> String
pub fn manifest_url(&self) -> String
URL for opening the manifest creation UI on GitHub.
redirect_url is appended to the manifest body so GitHub redirects
the operator’s browser back to our localhost listener after they click
“Create from manifest”.
Sourcepub fn manifest_json(&self, redirect_url: &str) -> Result<String>
pub fn manifest_json(&self, redirect_url: &str) -> Result<String>
Render the GitHub-facing manifest JSON, embedding the redirect URL.
Trait Implementations§
Source§impl Clone for ManifestFile
impl Clone for ManifestFile
Source§fn clone(&self) -> ManifestFile
fn clone(&self) -> ManifestFile
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more