mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
[PR #2597] [MERGED] fix(github): resolve 422 error when fetching repositories #2598
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/2597
Author: @kodamami
Created: 2/16/2026
Status: ✅ Merged
Merged: 2/16/2026
Merged by: @crazywoola
Base:
main← Head:fix/github-make-type-optional📝 Commits (1)
180fc63fix(github): make type parameter optional📊 Changes
2 files changed (+3 additions, -3 deletions)
View changed files
📝
datasources/github/datasources/github.py(+2 -2)📝
datasources/github/manifest.yaml(+1 -1)📄 Description
Related Issues or Context
Fixes GitHub datasource 422 error when fetching repositories.
Error:
GitHub API error: 422 - {"message":"If you specify visibility or affiliation, you cannot specify type."}
Cause:
Default values for
visibility,affiliation, andtypeparameters are all sent to GitHub API, buttypecannot be used withvisibility/affiliation(mutually exclusive).Reference:
GitHub API: List repositories for the authenticateduser
Fix:
Remove default value for
typeparameter:This PR contains Changes to Non-Plugin
This PR contains Changes to Non-LLM Models Plugin
This PR contains Changes to LLM Models Plugin
Version Control (Any Changes to the Plugin Will Require Bumping the Version)
VersionField, Not in Meta Section)Dify Plugin SDK Version
dify_plugin>=0.3.0,<0.6.0is in requirements.txt (SDK docs)Environment Verification (If Any Code Changes)
Local Deployment Environment
SaaS Environment
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.