mirror of
https://github.com/coleam00/Archon.git
synced 2025-12-30 21:49:30 -05:00
fix: Remove template parameter from bug report URL to enable field pre-filling
GitHub's issue creation URL does not support the 'template' parameter for pre-filling fields. When a template is specified, GitHub ignores other URL parameters like title and body, preventing user-submitted data from being pre-filled in the issue form. Changes: - Remove 'template=bug_report.yml' parameter (non-existent template) - Remove 'labels' parameter (not supported via URL) - Keep only 'title' and 'body' parameters for proper pre-filling - Add explanatory comment about GitHub's URL parameter limitations - Update tests to verify URL structure (no template parameter) Now when users click "Report Bug", the GitHub issue form will be properly pre-filled with their title and detailed bug report information. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -119,6 +119,10 @@ def test_manual_submission_url_uses_correct_repo(client, mock_bug_report):
|
||||
# Ensure old repository is NOT in URL
|
||||
assert "dynamous-community" not in data["issue_url"]
|
||||
assert "Archon-V2-Alpha" not in data["issue_url"]
|
||||
# Verify URL contains title and body parameters (not template)
|
||||
assert "title=" in data["issue_url"]
|
||||
assert "body=" in data["issue_url"]
|
||||
assert "template=" not in data["issue_url"]
|
||||
|
||||
|
||||
def test_api_submission_with_token(client, mock_bug_report):
|
||||
|
||||
Reference in New Issue
Block a user