Skip to content

Commit b43b8dd

Browse files
authored
Implement initial Pylon custom app support (#17)
* Implement initial Pylon custom app support * Fix null var * Separate the bigquery function * PylonAPI Wrapper implementation for some automations
1 parent 4671d25 commit b43b8dd

File tree

3 files changed

+393
-1
lines changed

3 files changed

+393
-1
lines changed

BotConfig_tmpl.toml

+3
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,6 @@ token = "{{.GITPOD_TOKEN}}"
7878

7979
[stripe]
8080
api_key = "{{.STRIPE_API_KEY}}"
81+
82+
[pylon]
83+
bearer_token = "{{.PYLON_BEARER_TOKEN}}"

glu/__main__.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from cachetools import LRUCache
77
from gidgethub import aiohttp as gh_aiohttp, routing, sansio
88
from gidgethub.apps import get_installation_access_token, get_jwt
9-
from glu import zendesk
9+
from glu import pylon, zendesk
1010
import glu.events as event
1111
from glu.config_loader import config
1212
from glu import runtime_constants
@@ -66,6 +66,8 @@ async def main():
6666
app = web.Application()
6767
app.router.add_post("/", github_payloads)
6868
app.router.add_post("/zendesk", zendesk.webhook_handler)
69+
app.router.add_post("/pylon", pylon.webhook)
70+
app.router.add_get("/pylon/sidebar", pylon.sidebar)
6971
port = int(config["server"].get("port", 8000))
7072
host = str(config["server"].get("host", "127.0.0.1"))
7173

0 commit comments

Comments
 (0)