mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-17 23:52:34 +00:00
8 lines
256 B
Rust
8 lines
256 B
Rust
use anyhow::anyhow;
|
|
use fabro_github::GitHubAppCredentials;
|
|
|
|
pub(crate) fn build_github_app_credentials(
|
|
app_id: Option<&str>,
|
|
) -> anyhow::Result<Option<GitHubAppCredentials>> {
|
|
GitHubAppCredentials::from_env(app_id).map_err(|err| anyhow!(err))
|
|
}
|