mirror of
https://github.com/langgenius/dify-plugin-sdks.git
synced 2026-08-26 18:56:41 -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.
167 lines
5.0 KiB
YAML
167 lines
5.0 KiB
YAML
identity:
|
|
name: issue_edited
|
|
author: langgenius
|
|
label:
|
|
en_US: Issue Edited
|
|
zh_Hans: Issue 编辑
|
|
pt_BR: Issue Editada
|
|
|
|
description:
|
|
human:
|
|
en_US: Triggers when an issue is edited (title or body changed)
|
|
zh_Hans: 当 issue 被编辑时触发(标题或内容被更改)
|
|
pt_BR: Dispara quando uma issue é editada (título ou conteúdo alterado)
|
|
llm:
|
|
en_US: This trigger activates when an issue is edited on a GitHub repository, providing information about the issue, changes made, repository, and user who edited it.
|
|
zh_Hans: 当在 GitHub 仓库中编辑 issue 时,此触发器会被激活,提供有关 issue、所做的更改、仓库和编辑它的用户的信息。
|
|
pt_BR: Este gatilho é ativado quando uma issue é editada em um repositório do GitHub, fornecendo informações sobre a issue, alterações feitas, repositório e usuário que a editou.
|
|
|
|
parameters:
|
|
- name: issue_filter
|
|
label:
|
|
en_US: Issue Number Filter
|
|
zh_Hans: Issue 编号过滤器
|
|
pt_BR: Filtro de Número da Issue
|
|
type: number
|
|
required: false
|
|
description:
|
|
en_US: Filter by specific issue number (optional)
|
|
zh_Hans: 按特定 issue 编号过滤(可选)
|
|
pt_BR: Filtrar por número específico da issue (opcional)
|
|
|
|
output_schema:
|
|
type: object
|
|
properties:
|
|
issue:
|
|
type: object
|
|
properties:
|
|
number:
|
|
type: number
|
|
description: The issue number
|
|
title:
|
|
type: string
|
|
description: The issue title (new value)
|
|
body:
|
|
type: string
|
|
description: The issue description (new value)
|
|
state:
|
|
type: string
|
|
description: The issue state
|
|
html_url:
|
|
type: string
|
|
description: The URL to view the issue on GitHub
|
|
created_at:
|
|
type: string
|
|
description: When the issue was created
|
|
updated_at:
|
|
type: string
|
|
description: When the issue was last updated
|
|
labels:
|
|
type: array
|
|
description: Labels attached to the issue
|
|
items:
|
|
type: object
|
|
properties:
|
|
name:
|
|
type: string
|
|
description: Label name
|
|
color:
|
|
type: string
|
|
description: Label color
|
|
description:
|
|
type: string
|
|
description: Label description
|
|
assignees:
|
|
type: array
|
|
description: Users assigned to the issue
|
|
items:
|
|
type: object
|
|
properties:
|
|
login:
|
|
type: string
|
|
description: Assignee username
|
|
avatar_url:
|
|
type: string
|
|
description: Assignee avatar URL
|
|
html_url:
|
|
type: string
|
|
description: Assignee profile URL
|
|
author:
|
|
type: object
|
|
properties:
|
|
login:
|
|
type: string
|
|
description: The username of the issue author
|
|
avatar_url:
|
|
type: string
|
|
description: The avatar URL of the issue author
|
|
html_url:
|
|
type: string
|
|
description: The profile URL of the issue author
|
|
changes:
|
|
type: object
|
|
description: Changes made to the issue
|
|
properties:
|
|
title:
|
|
type: object
|
|
description: Title changes (if any)
|
|
properties:
|
|
from:
|
|
type: string
|
|
description: Previous title
|
|
body:
|
|
type: object
|
|
description: Body changes (if any)
|
|
properties:
|
|
from:
|
|
type: string
|
|
description: Previous body content
|
|
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
|
|
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 edited the issue
|
|
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/issue_edited.py |