using Robust.Shared.Configuration;
namespace Content.Shared.CCVar;
public sealed partial class CCVars
{
///
/// Marker, for if the GitHub api is enabled. If it is not enabled, any actions that require GitHub API will be ignored.
/// To fully set up the API, you also need to set , ,
/// and .
///
public static readonly CVarDef GithubEnabled =
CVarDef.Create("github.github_enabled", true, CVar.SERVERONLY);
///
/// GitHub app private keys location. PLEASE READ THIS CAREFULLY!!
///
/// -
/// Its highly recommend to create a new (private) repository specifically for this app. This will help avoid
/// moderation issues and also allow you to ignore duplicate or useless issues. You can just transfer legitimate
/// issues from the private repository to the main public one.
///
/// -
/// Only create the auth token with the MINIMUM required access (Specifically only give it access to one
/// repository - and the minimum required access for your use case).
///
If this token is only for forwarding issues then you should only need to grant read and write
/// permission to "Issues" and read only permissions to "Metadata".
///
///
/// Also remember to use the testgithubapi command to test if you set everything up correctly.
/// [Insert YouTube video link with walkthrough here]
///
///
/// (If your on linux): /home/beck/key.pem
///
public static readonly CVarDef GithubAppPrivateKeyPath =
CVarDef.Create("github.github_app_private_key_path", "", CVar.SERVERONLY | CVar.CONFIDENTIAL);
///
/// The GitHub apps app id. Go to https://github.com/settings/apps/APPNAME to find the app id.
///
///
/// 1009555
///
public static readonly CVarDef GithubAppId =
CVarDef.Create("github.github_app_id", "", CVar.SERVERONLY | CVar.CONFIDENTIAL);
///
/// Name of the targeted GitHub repository.
///
///
/// If your URL was https://github.com/space-wizards/space-station-14 the repo name would be "space-station-14".
/// >
public static readonly CVarDef GithubRepositoryName =
CVarDef.Create("github.github_repository_name", string.Empty, CVar.SERVERONLY | CVar.CONFIDENTIAL);
///
/// Owner of the GitHub repository.
///
///
/// If your URL was https://github.com/space-wizards/space-station-14 the owner would be "space-wizards".
///
public static readonly CVarDef GithubRepositoryOwner =
CVarDef.Create("github.github_repository_owner", string.Empty, CVar.SERVERONLY | CVar.CONFIDENTIAL);
///
/// The maximum number of times the api will retry requests before giving up.
///
public static readonly CVarDef GithubMaxRetries =
CVarDef.Create("github.github_max_retries", 3, CVar.SERVERONLY | CVar.CONFIDENTIAL);
}