mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
[PR #2302] [MERGED] fix(github_trigger): improve error handling in webhook unsubscribe #2391
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langgenius/dify-official-plugins/pull/2302
Author: @Mairuis
Created: 12/19/2025
Status: ✅ Merged
Merged: 12/21/2025
Merged by: @hjlarry
Base:
main← Head:fix/github-trigger-unsubscribe-error-handling📝 Commits (1)
2127241fix(github_trigger): improve error handling in webhook unsubscribe📊 Changes
2 files changed (+31 additions, -26 deletions)
View changed files
📝
triggers/github_trigger/manifest.yaml(+1 -1)📝
triggers/github_trigger/provider/github.py(+30 -25)📄 Description
Summary
UnsubscribeErrorwith returningUnsubscribeResultfor graceful error handlingsubscription.propertiesto prevent potentialNoneTypeerrorsparametersif not found inpropertiesBackground
The previous implementation would raise exceptions when encountering errors during webhook unsubscription, which could cause issues in the trigger management flow. This change makes the error handling more robust by returning result objects instead of throwing exceptions.
Test plan
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.