mirror of
https://github.com/alexhopeoconnor/default.git
synced 2026-10-19 09:21:32 +10:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user