CoolFace
Apppublic

RustSa/linux_documentation_support_chatbot

sourceHugging Facemitupdated 1y agoView on Hugging Face
0likes
ticket_system.py12 linesDownload Raw Back to root
1from github import Github2import os3 4GITHUB_TOKEN = os.getenv("GITHUB_TOKEN")       # GitHub personal access token5GITHUB_REPO = os.getenv("GITHUB_REPO")         # e.g., "username/linux-support-tickets"6 7def create_github_issue(title: str, body: str) -> str:8    """Create a GitHub issue and return its URL."""9    gh = Github(GITHUB_TOKEN)10    repo = gh.get_repo(GITHUB_REPO)11    issue = repo.create_issue(title=title, body=body)12    return issue.html_url