diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index f5d1e076..1bd4e658 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,10 +1,18 @@ -## Description -Only fill in the fields below if relevant. + +### Description +Describe the goals that the pull request accomplishes. -## Features +### Relevant Links +If there are related issues, please link them here. -## Issues +Please also include links relevant to the changes. -## TODO +e.g. For new distros, include a link to the distro's official website, download link, or development repository. + +### Screenshots +If applicable, please include screenshots before and after your changes. + +### Additional context +Add any other context about the problem or changes here. diff --git a/tools/gh_moderator.py b/tools/gh_moderator.py index 0b46c39f..247f5418 100644 --- a/tools/gh_moderator.py +++ b/tools/gh_moderator.py @@ -1,6 +1,8 @@ # Start the server with: # # uvicorn tools.gh_moderator:app --reload --port 59523 +# +# pip install openai pygithub fastapi uvicorn hypy_utils import hashlib import hmac @@ -10,7 +12,7 @@ from datetime import datetime from pathlib import Path import openai -import toml +import tomllib as toml from fastapi import FastAPI, Request, Response from github import Github from hypy_utils import write, json_stringify @@ -23,7 +25,7 @@ log = setup_logger() def read_config(): - with open(Path.home() / ".config/gh_moderator.toml") as f: + with open(Path.home() / ".config/gh_moderator.toml", "rb") as f: return toml.load(f)