[+] Pull request template

This commit is contained in:
Azalea Gui 2023-05-09 10:46:23 -04:00
parent bf0c20b188
commit 953a09b686
No known key found for this signature in database
GPG key ID: 788D7588559AF1D9
2 changed files with 17 additions and 7 deletions

View file

@ -1,10 +1,18 @@
## Description
Only fill in the fields below if relevant.
<!-- Thank you so much for contributing! ❤️ -->
### 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.

View file

@ -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)