mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
[PR #1410] [MERGED] fix: Gitlab Plugin - Incorrect arg passsed to get_project_id in files tool
#1874
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/1410
Author: @austinbcdev
Created: 8/4/2025
Status: ✅ Merged
Merged: 8/8/2025
Merged by: @crazywoola
Base:
main← Head:bugfix/gitlabplugin-incorrect-arg📝 Commits (2)
4b4e04efix incorrect arg passsed to get project id in gitlab file tool invocation3b1d8ffbump plugin version📊 Changes
2 files changed (+5 additions, -4 deletions)
View changed files
📝
tools/gitlab/manifest.yaml(+1 -1)📝
tools/gitlab/tools/gitlab_files.py(+4 -3)📄 Description
An incorrect variable was passed to the helper method
get_project_idon line 34 in./tools/gitlab/tools/gitlab_files.py.Two paths are taken:
repositoryis a non-empty string, then retrieve the Gitlab file via request using repository name.Path 2) incorrectly passed the
repositoryvariable as an argument to theget_project_idhelper method.This PR simply swaps the incorrect argument
repositoryto theprojectvariable defined in theGitlabFilesTool_invokemethod.Related Issues or Context
Related Issue
fix https://github.com/langgenius/dify-official-plugins/issues/1401
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.5.0is in requirements.txt (SDK docs)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.