mirror of
https://github.com/langgenius/dify-plugin-sdks.git
synced 2026-07-22 18:35:29 -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.
200 lines
6.2 KiB
YAML
200 lines
6.2 KiB
YAML
identity:
|
|
name: pull_request_reopened
|
|
author: langgenius
|
|
label:
|
|
en_US: Pull Request Reopened
|
|
zh_Hans: Pull Request 重新打开
|
|
pt_BR: Pull Request Reaberto
|
|
|
|
description:
|
|
human:
|
|
en_US: Triggers when a pull request is reopened
|
|
zh_Hans: 当 pull request 重新打开时触发
|
|
pt_BR: Dispara quando um pull request é reaberto
|
|
llm:
|
|
en_US: This trigger activates when a pull request is reopened on a GitHub repository, providing information about the pull request, repository, and user who reopened it.
|
|
zh_Hans: 当在 GitHub 仓库中重新打开 pull request 时,此触发器会被激活,提供有关 pull request、仓库和重新打开它的用户的信息。
|
|
pt_BR: Este gatilho é ativado quando um pull request é reaberto em um repositório do GitHub, fornecendo informações sobre o pull request, repositório e usuário que o reabriu.
|
|
|
|
parameters:
|
|
- name: pr_filter
|
|
label:
|
|
en_US: PR Number Filter
|
|
zh_Hans: PR 编号过滤器
|
|
pt_BR: Filtro de Número do PR
|
|
type: number
|
|
required: false
|
|
description:
|
|
en_US: Filter by specific PR number (optional)
|
|
zh_Hans: 按特定 PR 编号过滤(可选)
|
|
pt_BR: Filtrar por número específico do PR (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 (always "open" for reopened events)
|
|
html_url:
|
|
type: string
|
|
description: The URL to view the pull request on GitHub
|
|
created_at:
|
|
type: string
|
|
description: When the pull request was created
|
|
updated_at:
|
|
type: string
|
|
description: When the pull request was last updated
|
|
merged:
|
|
type: boolean
|
|
description: Whether the pull request has been merged
|
|
mergeable:
|
|
type: boolean
|
|
description: Whether the pull request can be merged
|
|
draft:
|
|
type: boolean
|
|
description: Whether the pull request is a draft
|
|
head:
|
|
type: object
|
|
properties:
|
|
ref:
|
|
type: string
|
|
description: The head branch name
|
|
sha:
|
|
type: string
|
|
description: The head commit SHA
|
|
repo:
|
|
type: object
|
|
properties:
|
|
name:
|
|
type: string
|
|
description: The head repository name
|
|
full_name:
|
|
type: string
|
|
description: The head repository full name
|
|
html_url:
|
|
type: string
|
|
description: The head repository URL
|
|
base:
|
|
type: object
|
|
properties:
|
|
ref:
|
|
type: string
|
|
description: The base branch name
|
|
sha:
|
|
type: string
|
|
description: The base commit SHA
|
|
repo:
|
|
type: object
|
|
properties:
|
|
name:
|
|
type: string
|
|
description: The base repository name
|
|
full_name:
|
|
type: string
|
|
description: The base repository full name
|
|
html_url:
|
|
type: string
|
|
description: The base repository URL
|
|
labels:
|
|
type: array
|
|
description: Labels attached to the pull request
|
|
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 pull request
|
|
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 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
|
|
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 reopened 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_reopened.py |