Files
dify-plugin-sdks/python/examples/github_trigger/triggers/pull_request_edited.yaml
T
Harry b182fd2668 feat(trigger): enhance GitHub trigger event handling and update version
- 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.
2025-09-17 13:46:04 +08:00

131 lines
4.0 KiB
YAML

identity:
name: pull_request_edited
author: langgenius
label:
en_US: Pull Request Edited
zh_Hans: Pull Request 已编辑
pt_BR: Pull Request Editado
description:
human:
en_US: Triggers when a pull request is edited
zh_Hans: 当 pull request 被编辑时触发
pt_BR: Dispara quando um pull request é editado
llm:
en_US: This trigger activates when a pull request is edited on a GitHub repository, providing information about the changes made and the updated pull request.
zh_Hans: 当在 GitHub 仓库中编辑 pull request 时,此触发器会被激活,提供有关所做更改和更新的 pull request 的信息。
pt_BR: Este gatilho é ativado quando um pull request é editado em um repositório do GitHub, fornecendo informações sobre as mudanças feitas e o pull request atualizado.
parameters:
- name: pr_filter
label:
en_US: Pull Request Number Filter
zh_Hans: Pull Request 编号过滤器
pt_BR: Filtro de Número do Pull Request
type: number
required: false
description:
en_US: Filter by specific pull request number (optional)
zh_Hans: 按特定 pull request 编号过滤(可选)
pt_BR: Filtrar por número específico do pull request (opcional)
output_schema:
type: object
properties:
pull_request:
type: object
properties:
number:
type: number
description: The pull request number
title:
type: string
description: The pull request title
body:
type: string
description: The pull request description
state:
type: string
description: The pull request state
html_url:
type: string
description: The URL to view the pull request on GitHub
updated_at:
type: string
description: When the pull request was last updated
draft:
type: boolean
description: Whether the pull request is a draft
author:
type: object
properties:
login:
type: string
description: The username of the pull request author
avatar_url:
type: string
description: The avatar URL of the pull request author
html_url:
type: string
description: The profile URL of the pull request author
changes:
type: object
properties:
title:
type: object
description: Changes to the title (if any)
body:
type: object
description: Changes to the body (if any)
base:
type: object
description: Changes to the base branch (if any)
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 pull request
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/pull_request_edited.py