RunOctoGuideRulesOptions
Settings for running runOctoGuideRules.
Only entity is required.
Example
Section titled “Example”import { runOctoGuideRules } from "octoguide";
// Using a URL string - will fetch data from GitHub APIawait runOctoGuideRules({ auth: "ghp_...", entity: "https://github.com/OctoGuide/bot/issues/19",});
// Using pre-existing Entity data - avoids API callsconst existingEntity = { data: { }, number: 19, type: "issue",};
await runOctoGuideRules({ auth: "ghp_...", entity: existingEntity,});Properties
Section titled “Properties”
optionalauth:string
GitHub authentication token.
If not provided, retrieved with get-github-auth-token.
entity
Section titled “entity”entity:
string|Entity
GitHub entity to run rules on. Can be either:
- A string URL (e.g.,
"https://github.com/owner/repo/issues/123") - will fetch entity data via GitHub API - An
Entityobject with pre-fetched data - avoids additional API calls when data is already available
settings?
Section titled “settings?”
optionalsettings:Settings
Settings for the run, including rules to enable.