| 7 | const octokit = new Octokit({ auth: process.env.GITHUB_TOKEN }); |
| 8 | |
| 9 | interface 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 |
| 27 | const FIELD_NAME_MAP: Record<string, keyof IssueFields> = { |
nothing calls this directly
no outgoing calls
no test coverage detected