From 54b521f19e00bea52304f7379ca59de0c2e20962 Mon Sep 17 00:00:00 2001 From: Dawid Rycerz Date: Wed, 28 May 2025 15:44:40 +0200 Subject: feat(gitlab_glab): add CI pipeline functionality with glab ci run - Add new run_ci_pipeline method to GitLabServer class - Support all glab ci run options including variables, branch, and web mode - Auto-detect current branch using git branch --show-current when -b is missing - Implement web mode that overrides CI_PIPELINE_SOURCE=web - Add comprehensive test coverage with 9 new test cases - Update README.md with complete documentation and usage examples - Maintain 95% test coverage and pass all 53 tests - Follow project standards with proper error handling and type hints Closes: Add CI job runner functionality as requested --- servers/gitlab_glab/tests/test_integration.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'servers/gitlab_glab/tests/test_integration.py') diff --git a/servers/gitlab_glab/tests/test_integration.py b/servers/gitlab_glab/tests/test_integration.py index b7d1005..1e55b46 100644 --- a/servers/gitlab_glab/tests/test_integration.py +++ b/servers/gitlab_glab/tests/test_integration.py @@ -29,7 +29,8 @@ class TestIntegration: # - search_issues # - create_issue # - get_mr_diff - assert mock_server.tool.call_count == 5 + # - run_ci_pipeline + assert mock_server.tool.call_count == 6 # Verify that the tool decorator was called with functions that have # working_directory parameter. We can't directly access the decorated functions -- cgit v1.2.3