mirror of
https://github.com/alexhopeoconnor/default.git
synced 2026-10-04 02:58:10 +10:00
Revert "Remove hacf-fr" (#860)
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
This commit is contained in:
co-authored by
Joakim Sørensen
parent
250b8c9cb7
commit
6ff8d29e5c
@@ -64,7 +64,6 @@
|
||||
"enriqg9/dual-thermostat",
|
||||
"fineemb/lynk-co",
|
||||
"futuretense/lock-manager",
|
||||
"hacf-fr/hassRenaultZE",
|
||||
"heinoldenhuis/home_assistant_area_waste",
|
||||
"home-assistant-community-themes/template",
|
||||
"home-assistant-community-themes/theme-request",
|
||||
|
||||
@@ -220,6 +220,7 @@
|
||||
"gregoryduckworth/GoogleGeocode-HASS",
|
||||
"GuySie/ha-meural",
|
||||
"ha0y/xiaomi_miot_raw",
|
||||
"hacf-fr/hassRenaultZE",
|
||||
"hcoohb/hass-yeelightbt",
|
||||
"heinoldenhuis/home_assistant_omnik_solar",
|
||||
"Hellowlol/ha-tide",
|
||||
|
||||
@@ -454,12 +454,6 @@
|
||||
"removal_type": "removal",
|
||||
"link": "https://github.com/hacs/default/pull/841"
|
||||
},
|
||||
{
|
||||
"repository": "hacf-fr/hassRenaultZE",
|
||||
"reason": "Repository is deleted",
|
||||
"removal_type": "remove",
|
||||
"link": "https://community.home-assistant.io/t/error-on-hacs-with-renaut-zoe/288712"
|
||||
},
|
||||
{
|
||||
"repository": "zha-ng/zha-map",
|
||||
"reason": "Deprecated. Available natively now.",
|
||||
|
||||
+1
-10
@@ -7,21 +7,13 @@ from aiogithubapi import GitHub, AIOGitHubAPIException
|
||||
|
||||
TOKEN = os.getenv("GITHUB_TOKEN")
|
||||
|
||||
BLOCKED_OWNERS = ["hacf-fr"]
|
||||
|
||||
|
||||
async def check():
|
||||
print("Information: https://hacs.xyz/docs/publish/include#check-owner")
|
||||
repo = get_repo()
|
||||
repo_owner = repo.split("/")[0]
|
||||
event = get_event()
|
||||
actor = event["pull_request"]["user"]["login"]
|
||||
|
||||
if repo_owner in BLOCKED_OWNERS:
|
||||
exit(
|
||||
f"::error::'{repo_owner}' is not allowed for submission, https://hacs.xyz/docs/publish/remove"
|
||||
)
|
||||
|
||||
if repo.split("/")[0].lower() == actor.lower():
|
||||
print(f"'{actor}' is the owner of '{repo}'")
|
||||
return
|
||||
@@ -29,8 +21,7 @@ async def check():
|
||||
try:
|
||||
async with GitHub(TOKEN) as github:
|
||||
request = await github.client.get(
|
||||
f"/repos/{repo}/contributors",
|
||||
headers={},
|
||||
f"/repos/{repo}/contributors", headers={},
|
||||
)
|
||||
contributors = [
|
||||
{"login": x["login"], "contributions": x["contributions"]}
|
||||
|
||||
Reference in New Issue
Block a user