Skip to content

Commit 813dd68

Browse files
rushilpatel0github-actions[bot]
authored andcommitted
Automated pre-commit update
1 parent 2470a56 commit 813dd68

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
LINEAR_ACCESS_TOKEN="..."
22
LINEAR_SIGNING_SECRET="..."
3-
LINEAR_TEAM_ID="..."
3+
LINEAR_TEAM_ID="..."

codegen-examples/examples/linear_webhooks/pyproject.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@ name = "linear-webhook-example"
33
version = "0.1.0"
44
description = "Linear webhook example for Codegen"
55
requires-python = ">=3.13"
6-
dependencies = [
7-
"modal>=0.73.25",
8-
"codegen",
9-
]
6+
dependencies = ["modal>=0.73.25", "codegen"]
107

118
[tool.uv.sources]
129
codegen = { git = "https://github.com/codegen-sh/codegen-sdk", rev = "rpatel/wip-events-decorator" }

codegen-examples/examples/linear_webhooks/webhooks.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
import os
21
import modal.running_app
32
from codegen.extensions.events.app import CodegenApp
43
import modal
54

6-
image = modal.Image.debian_slim(python_version="3.13").apt_install("git").pip_install("fastapi[standard]","codegen>=0.5.30")
5+
image = modal.Image.debian_slim(python_version="3.13").apt_install("git").pip_install("fastapi[standard]", "codegen>=0.5.30")
76

87
app = CodegenApp(name="test-linear", modal_api_key="", image=image)
98

109
# Here is an example implementation of setting up an endpoint for receiving webhook events from Linear.
1110
# The @app.linear.event() decorator takes care of subscribing to the webhook and also unsubscribing when the deployment spun
1211

12+
1313
@app.cls(secrets=[modal.Secret.from_dotenv()])
1414
class LinearEventHandlers:
1515
@modal.enter()
@@ -27,4 +27,3 @@ def test(self, data: dict):
2727
# handle webhook event
2828
# data is the payload of the webhook event
2929
print(data)
30-

0 commit comments

Comments
 (0)