Files
hacs_default/scripts/helpers/event.py
Joakim Sørensen 9e8788c060 Add preflight (#490)
* Add preflight

* fix syntax

* move check

* get event

* print

* return event

* use path

* tt

* move to helper

* add issue_comment

* remove should run

* check owner

* add more information to the logs

* test

* add finished

* move keys

* Update errors

* remove repo

* fix JQ run

* filter
2020-05-28 16:53:45 +02:00

10 lines
171 B
Python

import os
import json
def get_event():
with open(os.getenv("GITHUB_EVENT_PATH"), "r") as event_data:
event = json.loads(event_data.read())
return event