mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
Gitlab Plugin - Gitlab Files - Incorrect argument passed to get_project_id #508
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?
Originally created by @austinbcdev on GitHub (Aug 1, 2025).
Self Checks
Dify version
v1.7.1
Plugin version
0.0.4
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
Install Gitlab Plugin and Authorize with Proper Credentials
Create Node for Gitlab Tool in Chatflow Project
Choose the Gitlab Files tool
Attempt to retreive Gitlab File with repository field empty
You will get nothing in return
Cause
On line 33 in https://github.com/langgenius/dify-official-plugins/blob/main/tools/gitlab/tools/gitlab_files.py you will see that for the branch of the if block checking if
repositoryis not an empty string that executes whenrepository = "", that it incorrectly passes therepositoryvariable as an argument for theproject_nameparameter ofget_project_idmethod.Fix
Simply modify the
repositoryargument in the callself.get_project_idon line 33 inside./tools/gitlab/tools/gitlab_files.pytoproject.✔️ Error log
No response