mirror of
https://github.com/langgenius/dify-marketplace-toolkit.git
synced 2026-07-01 19:54:03 -04:00
feat: add supports for checking trigger plugins (#2)
This commit is contained in:
committed by
GitHub
parent
c0e63b06d5
commit
94a5a3196a
@@ -6,9 +6,9 @@ def get_prefix(file_path):
|
||||
|
||||
files = json.loads(os.environ['PR_FILES'])
|
||||
|
||||
# only tools/ models/ extensions/ agent-strategies/ datasources/
|
||||
files = [file for file in files if file['path'].startswith('tools/') or file['path'].startswith('models/') or file['path'].startswith('extensions/') or file['path'].startswith('agent-strategies/')
|
||||
or file['path'].startswith('datasources/')]
|
||||
# only tools/ models/ extensions/ agent-strategies/
|
||||
prefixes = ('tools/', 'models/', 'extensions/', 'agent-strategies/', 'datasources/', 'triggers/')
|
||||
files = [file for file in files if file['path'].startswith(prefixes)]
|
||||
|
||||
previous_prefix = get_prefix(files[0]['path'])
|
||||
for file in files:
|
||||
|
||||
Reference in New Issue
Block a user