mirror of
https://github.com/langgenius/dify-plugin-sdks.git
synced 2026-07-22 10:25:23 -04:00
22f156e9b2
- Updated `IssueCommentTrigger` and `GithubProvider` to support multiple event selections for GitHub triggers. - Introduced a new `multiple` field in the trigger parameters to allow users to select multiple events. - Implemented dynamic fetching of repository options based on OAuth credentials. - Bumped version in `manifest.yaml` to 0.0.7 to reflect these enhancements. This update improves the flexibility and usability of the GitHub trigger integration.
137 lines
4.4 KiB
YAML
137 lines
4.4 KiB
YAML
credentials_schema:
|
||
access_tokens:
|
||
help:
|
||
en_US: Get your Access Tokens from GitHub
|
||
pt_BR: Obtenha sua chave da API do Google no Google
|
||
zh_Hans: 从 GitHub 获取您的 Access Tokens
|
||
label:
|
||
en_US: Access Tokens
|
||
pt_BR: Tokens de acesso
|
||
zh_Hans: Access Tokens
|
||
placeholder:
|
||
en_US: Please input your GitHub Access Tokens
|
||
pt_BR: Insira seus Tokens de Acesso do GitHub
|
||
zh_Hans: 请输入你的 GitHub Access Tokens
|
||
required: true
|
||
type: secret-input
|
||
url: https://github.com/settings/tokens?type=beta
|
||
|
||
oauth_schema:
|
||
client_schema:
|
||
- name: "client_id"
|
||
type: "secret-input"
|
||
required: true
|
||
url: https://github.com/settings/applications/new
|
||
placeholder:
|
||
en_US: "Please input your Client ID"
|
||
zh_Hans: "请输入你的 Client ID"
|
||
pt_BR: "Insira seu Client ID"
|
||
help:
|
||
en_US: "Client ID is used to authenticate requests to the GitHub API."
|
||
zh_Hans: "Client ID 用于认证请求到 GitHub API。"
|
||
pt_BR: "Client ID é usado para autenticar solicitações à API do GitHub."
|
||
label:
|
||
zh_Hans: "Client ID"
|
||
en_US: "Client ID"
|
||
- name: "client_secret"
|
||
type: "secret-input"
|
||
required: true
|
||
url: https://github.com/settings/applications/new
|
||
placeholder:
|
||
en_US: "Please input your Client Secret"
|
||
zh_Hans: "请输入你的 Client Secret"
|
||
pt_BR: "Insira seu Client Secret"
|
||
help:
|
||
en_US: "Client Secret is used to authenticate requests to the GitHub API."
|
||
zh_Hans: "Client Secret 用于认证请求到 GitHub API。"
|
||
pt_BR: "Client Secret é usado para autenticar solicitações à API do GitHub."
|
||
label:
|
||
zh_Hans: "Client Secret"
|
||
en_US: "Client Secret"
|
||
credentials_schema:
|
||
- name: "access_tokens"
|
||
type: "secret-input"
|
||
label:
|
||
zh_Hans: "Access Token"
|
||
en_US: "Access Token"
|
||
|
||
subscription_schema:
|
||
parameters_schema:
|
||
- name: "repository"
|
||
label:
|
||
en_US: "Repository"
|
||
zh_Hans: "仓库"
|
||
pt_BR: "Repositório"
|
||
type: "dynamic-select"
|
||
required: true
|
||
placeholder:
|
||
en_US: "owner/repo"
|
||
zh_Hans: "owner/repo"
|
||
pt_BR: "owner/repo"
|
||
help:
|
||
en_US: "GitHub repository in format owner/repo (e.g., microsoft/vscode)"
|
||
zh_Hans: "GitHub 仓库,格式为 owner/repo(例如:microsoft/vscode)"
|
||
pt_BR: "Repositório do GitHub no formato owner/repo (ex: microsoft/vscode)"
|
||
- name: "events"
|
||
type: "select"
|
||
required: true
|
||
default: ["issue_comment", "issues"]
|
||
multiple: true
|
||
options:
|
||
- value: "issue_comment"
|
||
label:
|
||
en_US: "Issue Comments"
|
||
zh_Hans: "Issue 评论"
|
||
- value: "issues"
|
||
label:
|
||
en_US: "Issues"
|
||
zh_Hans: "Issues"
|
||
- value: "pull_request"
|
||
label:
|
||
en_US: "Pull Requests"
|
||
zh_Hans: "Pull Requests"
|
||
- value: "push"
|
||
label:
|
||
en_US: "Push"
|
||
zh_Hans: "推送"
|
||
label:
|
||
zh_Hans: "监听事件"
|
||
en_US: "Events to Listen"
|
||
help:
|
||
en_US: "Select which GitHub events to subscribe to"
|
||
pt_BR: "Selecione quais eventos do GitHub inscrever-se"
|
||
zh_Hans: "选择要订阅的 GitHub 事件"
|
||
properties_schema:
|
||
- name: "webhook_secret"
|
||
type: "secret-input"
|
||
required: false
|
||
label:
|
||
zh_Hans: "Webhook Secret"
|
||
en_US: "Webhook Secret"
|
||
help:
|
||
en_US: "Optional webhook secret for validating GitHub webhook requests"
|
||
pt_BR: "Segredo opcional do webhook para validar solicitações do webhook do GitHub"
|
||
zh_Hans: "可选的用于验证 GitHub webhook 请求的 webhook 密钥"
|
||
|
||
triggers:
|
||
- triggers/issue_comment.yaml
|
||
|
||
identity:
|
||
author: langgenius
|
||
description:
|
||
en_US: GitHub is an online software source code hosting service with webhook trigger support.
|
||
pt_BR:
|
||
GitHub é uma plataforma online para serviços de hospedagem de código fonte
|
||
de software com suporte a triggers de webhook.
|
||
zh_Hans: GitHub 是一个在线软件源代码托管服务平台,支持 webhook 触发器。
|
||
icon: icon.svg
|
||
label:
|
||
en_US: GitHub Triggers
|
||
pt_BR: GitHub Triggers
|
||
zh_Hans: GitHub 触发器
|
||
name: github_trigger
|
||
|
||
extra:
|
||
python:
|
||
source: provider/github.py
|