Skip to content

Commit fa10c08

Browse files
committed
Remove config.yml and improve review button URL handling
Remove config.yml which interferes with direct template loading. Update comments and improve body text formatting in review button URL. Ensures template loads correctly when clicking review buttons.
1 parent 7cb6d8b commit fa10c08

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Graph Analysis/unified_analysis.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -343,12 +343,13 @@ def ensure_iterable_records(data: Any) -> List[Any]:
343343

344344
def _review_button(method_name: str) -> str:
345345
"""Generate HTML for a review button linking to GitHub Issues."""
346-
# GitHub uses template name without .yml extension
347-
# Note: GitHub doesn't support pre-filling form fields via URL params,
348-
# but we include method in body text for reference
349-
body_text = f"Method: {method_name}\n\nFile: docs/index.html\n\n"
346+
# GitHub Issue Forms: use template name WITHOUT .yml extension
347+
# The template parameter should load the form template
348+
# Note: If config.yml exists, GitHub may show template chooser first
349+
body_text = f"**Method:** {method_name}\n\n**File:** docs/index.html\n\n---\n\n"
350350
# URL encode the body text properly
351351
encoded_body = urllib.parse.quote(body_text)
352+
# Template name without extension - GitHub's standard format
352353
url = f"https://github.com/SingularityNET-Archive/Graph-Python-scripts/issues/new?template=analysis_review&body={encoded_body}"
353354
return f'<a href="{url}" class="review-button" target="_blank">Review This Analysis</a>'
354355

0 commit comments

Comments
 (0)