UNPKG

gaunt-sloth-assistant

Version:

[![Tests and Lint](https://github.com/Galvanized-Pukeko/gaunt-sloth-assistant/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/Galvanized-Pukeko/gaunt-sloth-assistant/actions/workflows/unit-tests.yml) [![Integration Tests](https://github.co

26 lines (25 loc) 1.19 kB
import type { GthConfig } from '#src/config.js'; /** * Requirements providers. Expected to be in `.providers/` dir. * Aliases are mapped to actual providers in this file */ export declare const REQUIREMENTS_PROVIDERS: { readonly 'jira-legacy': "jiraIssueLegacyProvider.js"; readonly jira: "jiraIssueProvider.js"; readonly github: "ghIssueProvider.js"; readonly text: "text.js"; readonly file: "file.js"; }; export type RequirementsProviderType = keyof typeof REQUIREMENTS_PROVIDERS; /** * Content providers. Expected to be in `.providers/` dir. * Aliases are mapped to actual providers in this file */ export declare const CONTENT_PROVIDERS: { readonly github: "ghPrDiffProvider.js"; readonly text: "text.js"; readonly file: "file.js"; }; export type ContentProviderType = keyof typeof CONTENT_PROVIDERS; export declare function getRequirementsFromProvider(requirementsProvider: RequirementsProviderType | undefined, requirementsId: string | undefined, config: GthConfig): Promise<string>; export declare function getContentFromProvider(contentProvider: ContentProviderType | undefined, contentId: string | undefined, config: GthConfig): Promise<string>;