Skip to content

Commit

Permalink
chore: updated pkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
Morriz committed Dec 12, 2024
1 parent eac0410 commit ea862e1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
9 changes: 7 additions & 2 deletions api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
import os
from functools import cache
from logging import info
from typing import Any, Dict, List
from typing import Any, List

import dotenv
import uvicorn
from fastapi import BackgroundTasks, Depends
from fastapi.datastructures import Headers, QueryParams
from github_webhooks import create_app
from github_webhooks.schemas import WebhookHeaders

from lib.auth import verify_apikey
from lib.data import (
Expand Down Expand Up @@ -81,7 +83,10 @@ async def github_ping_handler(

@app.hooks.register("workflow_job", WorkflowJobPayload)
async def github_workflow_job_handler(
payload: WorkflowJobPayload, query_params: Dict[str, str], background_tasks: BackgroundTasks, **_: Any
payload: WorkflowJobPayload,
query_params: QueryParams,
background_tasks: BackgroundTasks,
**_: Any,
) -> None:
"""Handle incoming github webhook requests for workflow_job events to update ourselves or an upstream"""
if payload.workflow_job.status == "completed" and payload.workflow_job.conclusion == "success":
Expand Down
6 changes: 3 additions & 3 deletions requirements-prod.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
fastapi==0.109.2
github-webhooks-framework2==0.2.1
github-webhooks-framework2==0.2.2
jinja2-cli==0.8.2
python-dotenv==1.0.1
PyYAML==6.0.1
uvicorn==0.27.1
PyYAML==6.0.2
uvicorn==0.32.1

0 comments on commit ea862e1

Please sign in to comment.