add browser extension to valid hooks, fix empty desc

This commit is contained in:
simon 2022-12-07 09:54:11 +07:00
parent 420702e7cf
commit ac4141fd19
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
2 changed files with 8 additions and 0 deletions

View File

@ -33,6 +33,11 @@ class WebhookBase:
],
"discord_unstable_hook": environ.get("DOCKER_UNSTABLE_HOOK_URL"),
"discord_release_hook": environ.get("GITHUB_RELEASE_HOOK_URL"),
},
"browser-extension": {
"gh_user": "tubearchivist",
"gh_repo": "browser-extension",
"discord_release_hook": environ.get("GITHUB_RELEASE_HOOK_URL"),
}
}
ROADMAP_HOOK_URL = environ.get("ROADMAP_HOOK_URL")

View File

@ -253,6 +253,9 @@ class CommentNotification:
if self.data["action"] == "closed":
return False
if not html:
return "No description provided."
text = BeautifulSoup(html, features="html.parser").text
if len(text) >= 500: