Files
dify-plugin-sdks/python/examples/github
Harry 1fa18bfd1c refactor(trigger): update trigger error handling and response types
- Renamed `WebhookValidationError` to `TriggerValidationError` for consistency in error handling across trigger operations.
- Updated references to the new `TriggerValidationError` in the GitHub provider and trigger interfaces.
- Enhanced the `TriggerProvider` class to raise the new validation error for webhook signature issues.
- Adjusted the `IssueCommentTrigger` to return the correct event response type.
- Improved type hints and imports in various modules for better clarity and organization.
2025-09-03 14:04:33 +08:00
..
2025-07-23 13:49:01 +08:00
2025-07-23 13:49:01 +08:00
2025-07-23 13:49:01 +08:00
2025-07-23 13:49:01 +08:00
2025-07-23 13:49:01 +08:00
2025-07-23 13:49:01 +08:00

GitHub

Overview

GitHub is a web-based platform for version control and collaboration, primarily used for software development. As a tool in Dify, it provides users the ability to search repositories by keywords.

Configuration

1. Apply for API Key and Version

Please apply for an API Key and the API version.

2. Get GitHub tools from Plugin Marketplace

The GitHub tools can be found in the Plugin Marketplace. Please install it first.

3. Fill in the configuration in Dify

On the Dify navigation page, click Tools > GitHub > Authorize and fill in the API Key.

4. Using the tool

You can use the GitHub tool in the following application types:

Chatflow / Workflow applications

Both Chatflow and Workflow applications support adding a GitHub tool node.

Agent applications

Add the GitHub tool in the Agent application, then enter repository search instructions to call this tool.