MCPcopy
hub / github.com/YouMind-OpenLab/awesome-gpt-image-2 / IssueFields

Interface IssueFields

scripts/sync-approved-to-cms.ts:9–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7const octokit = new Octokit({ auth: process.env.GITHUB_TOKEN });
8
9interface IssueFields {
10 prompt_title?: string;
11 prompt?: string;
12 need_reference_images?: string; // Boolean field, value from dropdown is string "true" or "false"
13 need_reference_images_?: string; // Field name converted from "Need Reference Images" label
14 description?: string;
15 image_urls?: string;
16 generated_image_urls?: string; // Field name converted from "Generated Image URLs" label
17 author_name?: string;
18 original_author?: string; // Field name converted from "Original Author" label
19 author_link?: string;
20 author_profile_link?: string; // Field name converted from "Author Profile Link" label
21 source_link?: string;
22 language?: string;
23 prompt_language?: string; // Field name converted from "Prompt Language" label
24}
25
26// Field name mapping: maps label-converted field names to actual field IDs
27const FIELD_NAME_MAP: Record<string, keyof IssueFields> = {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected