From 27f96ea86da64cf6865a33bb0fba929d881d46a4 Mon Sep 17 00:00:00 2001 From: CherrelleTucker <106271365+CherrelleTucker@users.noreply.github.com> Date: Sat, 7 Dec 2024 15:44:00 -0600 Subject: [PATCH] #78 --- .../DynamicDocToGitHubIssue_index_html | 1929 +++-------------- 1 file changed, 254 insertions(+), 1675 deletions(-) diff --git a/DynamicDocToGitHubIssue/DynamicDocToGitHubIssue_index_html b/DynamicDocToGitHubIssue/DynamicDocToGitHubIssue_index_html index 774cc09..98d6b0a 100644 --- a/DynamicDocToGitHubIssue/DynamicDocToGitHubIssue_index_html +++ b/DynamicDocToGitHubIssue/DynamicDocToGitHubIssue_index_html @@ -1,1723 +1,302 @@ - +/** Contains web app specific functions (doGet, handling web requests) + - Contains doGet function for serving the web app + - Has endpoint functions called directly by the frontend + - Handles web-specific error reporting + - Acts as a bridge between the frontend and core functionality +**/ - - - - - - - - - - - - - - - - - - - - - - - - - + // Get document metadata + const docMetadata = { + title: doc.getName(), + url: docUrl + }; -
-

Google Doc to GitHub Transfer Tool

+ // First use the working parser to get the basic structure + const content = doc.getBody().getText(); + const basicParsed = parseDocContent(content, docMetadata); - -
- - -
- - - - -
- -
-

This tool helps you convert Google Docs into GitHub issues. Please follow these guidelines to ensure smooth processing:

-
    -
  • Document Formatting: Ensure that your Google Doc includes clear markers such as "New Issue:" or "Update Issue:" followed by the title of the issue. These markers are used to identify and categorize the issues.
  • -
  • Supported Content: The tool will parse headings, bullet points, and basic text formatting (e.g., bold, italics). Make sure the content is structured logically to maintain clarity when creating issues.
  • -
  • Limitations: Currently, complex tables, images, or embedded media are not supported. Text-based content will be processed, but special formatting or elements might be lost.
  • -
  • Adjustments: After the document is processed, you will be able to make repository selections and assign users to each issue directly within the app interface.
  • -
  • Access Permissions: The tool requires access to your Google Doc and GitHub account. Make sure that your document permissions allow access, and that your GitHub token is configured correctly.
  • -
- -
Creating New Issues
-
- New Issue: [Issue Title] -
[Issue description and details go here] -
-
- -
Updating Existing Issues
-
- Update Issue: [GitHub Issue Comment content goes here] -
-
-
- - - - -
+ // Now use parseDocContentWithFormatting to get formatted versions + const formattedParsed = parseDocContentWithFormatting(doc.getBody(), docMetadata); - - - -
-
- - -
- -
- -
-
- -
-
-

New Issues

- -
- -
-

Update Issues

- -
- - -
- - - - - - - - - - - -