[PR #2409] [MERGED] fix(github): remove unused code and parameter from repositories tool #2452

Closed
opened 2026-02-16 11:17:02 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-official-plugins/pull/2409
Author: @Mairuis
Created: 1/12/2026
Status: Merged
Merged: 1/12/2026
Merged by: @crazywoola

Base: mainHead: fix/github-remove-unused-code


📝 Commits (1)

  • b98790f fix(github): remove unused code and parameter from repositories tool

📊 Changes

3 files changed (+31 additions, -76 deletions)

View changed files

📝 tools/github/manifest.yaml (+1 -1)
📝 tools/github/tools/github_repositories.py (+1 -16)
📝 tools/github/tools/github_repositories.yaml (+29 -59)

📄 Description

Related Issues or Context

Clean up GitHub repositories tool by removing:

  • Unused _fetch_parameter_options method and its hardcoded test data
  • Unused username parameter (dynamic-select type) that was not being used
  • Unused imports (I18nObject, ParameterOption)
  • Minor YAML formatting improvements

This PR contains Changes to Non-Plugin

  • Documentation
  • Other

This PR contains Changes to Non-LLM Models Plugin

  • I have Run Comprehensive Tests Relevant to My Changes

This PR contains Changes to LLM Models Plugin

  • My Changes Affect Message Flow Handling (System Messages and User→Assistant Turn-Taking)
  • My Changes Affect Tool Interaction Flow (Multi-Round Usage and Output Handling, for both Agent App and Agent Node)
  • My Changes Affect Multimodal Input Handling (Images, PDFs, Audio, Video, etc.)
  • My Changes Affect Multimodal Output Generation (Images, Audio, Video, etc.)
  • My Changes Affect Structured Output Format (JSON, XML, etc.)
  • My Changes Affect Token Consumption Metrics
  • My Changes Affect Other LLM Functionalities (Reasoning Process, Grounding, Prompt Caching, etc.)
  • Other Changes (Add New Models, Fix Model Parameters etc.)

Version Control (Any Changes to the Plugin Will Require Bumping the Version)

  • I have Bumped Up the Version in Manifest.yaml (Top-Level Version Field, Not in Meta Section)

Version bumped from 0.3.1 to 0.3.2

Dify Plugin SDK Version

  • I have Ensured dify_plugin>=0.3.0,<0.6.0 is in requirements.txt (SDK docs)

Environment Verification (If Any Code Changes)

Local Deployment Environment

  • Dify Version is: , I have Tested My Changes on Local Deployment Dify with a Clean Environment That Matches the Production Configuration.

SaaS Environment

  • I have Tested My Changes on cloud.dify.ai with a Clean Environment That Matches the Production Configuration

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-official-plugins/pull/2409 **Author:** [@Mairuis](https://github.com/Mairuis) **Created:** 1/12/2026 **Status:** ✅ Merged **Merged:** 1/12/2026 **Merged by:** [@crazywoola](https://github.com/crazywoola) **Base:** `main` ← **Head:** `fix/github-remove-unused-code` --- ### 📝 Commits (1) - [`b98790f`](https://github.com/langgenius/dify-official-plugins/commit/b98790fc3ba673d3a5eba33f8ed4afd2772d55d0) fix(github): remove unused code and parameter from repositories tool ### 📊 Changes **3 files changed** (+31 additions, -76 deletions) <details> <summary>View changed files</summary> 📝 `tools/github/manifest.yaml` (+1 -1) 📝 `tools/github/tools/github_repositories.py` (+1 -16) 📝 `tools/github/tools/github_repositories.yaml` (+29 -59) </details> ### 📄 Description ## Related Issues or Context Clean up GitHub repositories tool by removing: - Unused `_fetch_parameter_options` method and its hardcoded test data - Unused `username` parameter (dynamic-select type) that was not being used - Unused imports (`I18nObject`, `ParameterOption`) - Minor YAML formatting improvements ## This PR contains Changes to *Non-Plugin* - [ ] Documentation - [ ] Other ## This PR contains Changes to *Non-LLM Models Plugin* - [x] I have Run Comprehensive Tests Relevant to My Changes ## This PR contains Changes to *LLM Models Plugin* - [ ] My Changes Affect Message Flow Handling (System Messages and User→Assistant Turn-Taking) - [ ] My Changes Affect Tool Interaction Flow (Multi-Round Usage and Output Handling, for both Agent App and Agent Node) - [ ] My Changes Affect Multimodal Input Handling (Images, PDFs, Audio, Video, etc.) - [ ] My Changes Affect Multimodal Output Generation (Images, Audio, Video, etc.) - [ ] My Changes Affect Structured Output Format (JSON, XML, etc.) - [ ] My Changes Affect Token Consumption Metrics - [ ] My Changes Affect Other LLM Functionalities (Reasoning Process, Grounding, Prompt Caching, etc.) - [ ] Other Changes (Add New Models, Fix Model Parameters etc.) ## Version Control (Any Changes to the Plugin Will Require Bumping the Version) - [x] I have Bumped Up the Version in Manifest.yaml (Top-Level `Version` Field, Not in Meta Section) Version bumped from 0.3.1 to 0.3.2 ## Dify Plugin SDK Version - [x] I have Ensured `dify_plugin>=0.3.0,<0.6.0` is in requirements.txt ([SDK docs](https://github.com/langgenius/dify-plugin-sdks/blob/main/python/README.md)) ## Environment Verification (If Any Code Changes) ### Local Deployment Environment - [ ] Dify Version is: <!-- Specify Your Version (e.g., 1.2.0) -->, I have Tested My Changes on Local Deployment Dify with a Clean Environment That Matches the Production Configuration. ### SaaS Environment - [x] I have Tested My Changes on cloud.dify.ai with a Clean Environment That Matches the Production Configuration --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 11:17:02 -05:00
yindo closed this issue 2026-02-16 11:17:02 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#2452