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
This commit is contained in:
Joakim Sørensen
2020-05-28 16:53:45 +02:00
committed by GitHub
parent 51639d6624
commit 9e8788c060
19 changed files with 135 additions and 89 deletions
+3 -3
View File
@@ -18,15 +18,15 @@ async def check():
repo = repository.attributes
if not repo["has_issues"]:
issues.append("Issues not enabled.")
issues.append("::error::Issues not enabled.")
if not repo["description"]:
issues.append(
"No description. (https://hacs.xyz/docs/publish/start#description)"
"::error::No description. (https://hacs.xyz/docs/publish/start#description)"
)
if not repo["topics"]:
issues.append("No topics. (https://hacs.xyz/docs/publish/start#topics)")
issues.append("::error::No topics. (https://hacs.xyz/docs/publish/start#topics)")
if issues:
for issue in issues: