Skip to content

Github Integration doc: The direct repository_dispatch does not work. #1967

@ja-wxu

Description

@ja-wxu

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"
    }
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions