.context("GITHUB_REPOSITORY environment not defined")
.suggestion("Try adding '--repo <OWNER>/<REPO>' if running from the command line.")?,
)
.server(
std::env::var("GITHUB_SERVER_URL")
.or_else(|_|args.site.as_ref().map(|url|url.to_string()).context("--site <URL> not provided"))
.context("GITHUB_SERVER_URL environment not defined")
.suggestion("Try adding '--site https://<FORGEJO_HOSTNAME>' if running from the command line. Use the URL of the Forgejo instance where the issues are held.")?,