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.
119 lines
3.7 KiB
YAML
119 lines
3.7 KiB
YAML
identity:
|
|
name: pull_request_locked
|
|
author: langgenius
|
|
label:
|
|
en_US: Pull Request Locked
|
|
zh_Hans: Pull Request 锁定
|
|
pt_BR: Pull Request Bloqueado
|
|
|
|
description:
|
|
human:
|
|
en_US: Triggers when a pull request is locked
|
|
zh_Hans: 当 pull request 被锁定时触发
|
|
pt_BR: Dispara quando um pull request é bloqueado
|
|
llm:
|
|
en_US: This trigger activates when a pull request is locked on a GitHub repository, providing information about the pull request, repository, and user who locked it.
|
|
zh_Hans: 当在 GitHub 仓库中锁定 pull request 时,此触发器会被激活,提供有关 pull request、仓库和锁定它的用户的信息。
|
|
pt_BR: Este gatilho é ativado quando um pull request é bloqueado em um repositório do GitHub, fornecendo informações sobre o pull request, repositório e usuário que o bloqueou.
|
|
|
|
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
|
|
html_url:
|
|
type: string
|
|
description: The URL to view the pull request on GitHub
|
|
locked:
|
|
type: boolean
|
|
description: Whether the pull request is locked (always true for locked events)
|
|
active_lock_reason:
|
|
type: string
|
|
description: The reason the pull request was locked
|
|
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 locked 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_locked.py |