gitea-github-sync/tests/gitea-issue-created.py

8 lines
218 B
Python
Raw Permalink Normal View History

import requests
import json
with open("data/gitea-issue-created.json", "r") as file:
data = json.loads(file.read())
r = requests.post("http://127.0.0.1:5000/bridge/endpoints/gitea/issue", json=data)
print(r.text)