mirror of
https://github.com/langgenius/dify-plugin-sdks.git
synced 2026-07-23 19:05:24 -04:00
b182fd2668
- Refactored `TriggerInvokeResponse` to use `Mapping[str, Any]` for event representation. - Renamed `properties` to `variables` in the `Event` class for clarity and updated the description accordingly. - Expanded the event options in the GitHub trigger configuration to allow selection of all events. - Removed the deprecated `issue_comment` trigger implementation and its associated files. - Bumped version in `manifest.yaml` to 0.0.9 to reflect these changes. These updates improve the flexibility and clarity of the GitHub trigger integration, allowing for a broader range of event handling.
115 lines
3.5 KiB
YAML
115 lines
3.5 KiB
YAML
identity:
|
|
name: create
|
|
author: langgenius
|
|
label:
|
|
en_US: Create
|
|
zh_Hans: 创建
|
|
pt_BR: Criar
|
|
|
|
description:
|
|
human:
|
|
en_US: Triggers when a branch or tag is created
|
|
zh_Hans: 当创建分支或标签时触发
|
|
pt_BR: Dispara quando um branch ou tag é criado
|
|
llm:
|
|
en_US: This trigger activates when a branch or tag is created on a GitHub repository, providing information about the created reference and repository.
|
|
zh_Hans: 当在 GitHub 仓库中创建分支或标签时,此触发器会被激活,提供有关创建的引用和仓库的信息。
|
|
pt_BR: Este gatilho é ativado quando um branch ou tag é criado em um repositório do GitHub, fornecendo informações sobre a referência criada e o repositório.
|
|
|
|
parameters:
|
|
- name: ref_type_filter
|
|
label:
|
|
en_US: Reference Type Filter
|
|
zh_Hans: 引用类型过滤器
|
|
pt_BR: Filtro de Tipo de Referência
|
|
type: string
|
|
required: false
|
|
description:
|
|
en_US: Filter by ref type (branch, tag) (optional)
|
|
zh_Hans: 按引用类型过滤(分支、标签)(可选)
|
|
pt_BR: Filtrar por tipo de referência (branch, tag) (opcional)
|
|
- name: ref_filter
|
|
label:
|
|
en_US: Reference Name Filter
|
|
zh_Hans: 引用名称过滤器
|
|
pt_BR: Filtro de Nome da Referência
|
|
type: string
|
|
required: false
|
|
description:
|
|
en_US: Filter by specific ref name (optional)
|
|
zh_Hans: 按特定引用名称过滤(可选)
|
|
pt_BR: Filtrar por nome específico da referência (opcional)
|
|
|
|
output_schema:
|
|
type: object
|
|
properties:
|
|
create:
|
|
type: object
|
|
properties:
|
|
ref:
|
|
type: string
|
|
description: The name of the created reference (branch/tag)
|
|
ref_type:
|
|
type: string
|
|
description: The type of reference created (branch or tag)
|
|
master_branch:
|
|
type: string
|
|
description: The repository's default branch
|
|
description:
|
|
type: string
|
|
description: The repository description
|
|
pusher_type:
|
|
type: string
|
|
description: The type of pusher (user or deploy key)
|
|
repository:
|
|
type: object
|
|
properties:
|
|
name:
|
|
type: string
|
|
description: The repository name
|
|
full_name:
|
|
type: string
|
|
description: The full repository name (owner/repo)
|
|
html_url:
|
|
type: string
|
|
description: The repository URL
|
|
description:
|
|
type: string
|
|
description: The repository description
|
|
private:
|
|
type: boolean
|
|
description: Whether the repository is private
|
|
default_branch:
|
|
type: string
|
|
description: The default branch of the repository
|
|
owner:
|
|
type: object
|
|
properties:
|
|
login:
|
|
type: string
|
|
description: Repository owner username
|
|
avatar_url:
|
|
type: string
|
|
description: Repository owner avatar URL
|
|
html_url:
|
|
type: string
|
|
description: Repository owner profile URL
|
|
sender:
|
|
type: object
|
|
properties:
|
|
login:
|
|
type: string
|
|
description: The username who created the reference
|
|
avatar_url:
|
|
type: string
|
|
description: The avatar URL of the sender
|
|
html_url:
|
|
type: string
|
|
description: The profile URL of the sender
|
|
type:
|
|
type: string
|
|
description: The type of the sender (User, Bot, etc.)
|
|
|
|
extra:
|
|
python:
|
|
source: triggers/create.py |