langfuse-docs icon indicating copy to clipboard operation
langfuse-docs copied to clipboard

Github Integration doc: The direct repository_dispatch does not work.

Open ja-wxu opened this issue 4 months ago • 1 comments

1st Method: https://github.com/langfuse/langfuse-docs/blob/main/pages/docs/prompt-management/features/github-integration.mdx#trigger-github-actions-trigger-github-actions

2nd Method: https://github.com/langfuse/langfuse-docs/blob/main/pages/docs/prompt-management/features/github-integration.mdx#sync-langfuse-prompts-to-a-repository-sync-langfuse-prompts-to-a-repository

The first method does not work. The webhook always sends messages in the format of the 2nd Method which the github API rejects because it doesn't match what Github is expecting.

{
    "httpStatus": 422,
    "responseBody": {
        "message": "Invalid request.\n\n\"action\", \"apiVersion\", \"id\", \"prompt\", \"timestamp\", \"type\" are not permitted keys.\n\"event_type\" wasn't supplied.",
        "documentation_url": "https://docs.github.com/rest/repos/repos#create-a-repository-dispatch-event",
        "status": "422"
    }
}

ja-wxu avatar Aug 25 '25 06:08 ja-wxu

@ja-wxu thanks for flagging this. We are looking into this!

maxdeichmann avatar Aug 25 '25 08:08 maxdeichmann

Hi all, we added a new integration type which fixes the above issue. We also updated our documentation: https://langfuse.com/docs/prompt-management/features/github-integration

maxdeichmann avatar Dec 07 '25 19:12 maxdeichmann