[+] Pull request template
This commit is contained in:
parent
bf0c20b188
commit
953a09b686
2 changed files with 17 additions and 7 deletions
18
.github/PULL_REQUEST_TEMPLATE.md
vendored
18
.github/PULL_REQUEST_TEMPLATE.md
vendored
|
@ -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.
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
# Start the server with:
|
# Start the server with:
|
||||||
#
|
#
|
||||||
# uvicorn tools.gh_moderator:app --reload --port 59523
|
# uvicorn tools.gh_moderator:app --reload --port 59523
|
||||||
|
#
|
||||||
|
# pip install openai pygithub fastapi uvicorn hypy_utils
|
||||||
|
|
||||||
import hashlib
|
import hashlib
|
||||||
import hmac
|
import hmac
|
||||||
|
@ -10,7 +12,7 @@ from datetime import datetime
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import openai
|
import openai
|
||||||
import toml
|
import tomllib as toml
|
||||||
from fastapi import FastAPI, Request, Response
|
from fastapi import FastAPI, Request, Response
|
||||||
from github import Github
|
from github import Github
|
||||||
from hypy_utils import write, json_stringify
|
from hypy_utils import write, json_stringify
|
||||||
|
@ -23,7 +25,7 @@ log = setup_logger()
|
||||||
|
|
||||||
|
|
||||||
def read_config():
|
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)
|
return toml.load(f)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue