Skip to content

Commit

Permalink
Implement initial Pylon custom app support (#17)
Browse files Browse the repository at this point in the history
* Implement initial Pylon custom app support

* Fix null var

* Separate the bigquery function

* PylonAPI Wrapper implementation for some automations
  • Loading branch information
axonasif authored Nov 30, 2024
1 parent 4671d25 commit b43b8dd
Show file tree
Hide file tree
Showing 3 changed files with 393 additions and 1 deletion.
3 changes: 3 additions & 0 deletions BotConfig_tmpl.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,6 @@ token = "{{.GITPOD_TOKEN}}"

[stripe]
api_key = "{{.STRIPE_API_KEY}}"

[pylon]
bearer_token = "{{.PYLON_BEARER_TOKEN}}"
4 changes: 3 additions & 1 deletion glu/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from cachetools import LRUCache
from gidgethub import aiohttp as gh_aiohttp, routing, sansio
from gidgethub.apps import get_installation_access_token, get_jwt
from glu import zendesk
from glu import pylon, zendesk
import glu.events as event
from glu.config_loader import config
from glu import runtime_constants
Expand Down Expand Up @@ -66,6 +66,8 @@ async def main():
app = web.Application()
app.router.add_post("/", github_payloads)
app.router.add_post("/zendesk", zendesk.webhook_handler)
app.router.add_post("/pylon", pylon.webhook)
app.router.add_get("/pylon/sidebar", pylon.sidebar)
port = int(config["server"].get("port", 8000))
host = str(config["server"].get("host", "127.0.0.1"))

Expand Down
Loading

0 comments on commit b43b8dd

Please sign in to comment.