Github Integration doc: The direct repository_dispatch does not work.
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 thanks for flagging this. We are looking into this!
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