-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add GitLab support with API utilities and accompanying test suite. #379
Conversation
…issue and repository tasks similar to GitHub utilities.
…ality using the `python-gitlab` library.
Please also update requirements.txt git-bob implement this |
…rom 'send_pull_request' to 'create_merge_request'.
… corresponds to a non-existent function in `_gitlab_utilities.py`.
This message was generated by git-bob (version: 0.9.2, model: gpt-4o-2024-08-06, log), an experimental AI-based assistant. It can make mistakes and has limitations. Check its messages carefully. I updated the function name from 'send_pull_request' to 'create_merge_request' in the file src/git_bob/_gitlab_utilities.py. The test function |
In _gitlab_utilities.py the function "list_repository_files(repository)" only lists top-level files. Make sure it also lists files in sub-folders. Do not change anything else. git-bob solve |
… in subdirectories.
…dition of 'python-gitlab' was already completed.
This message was generated by git-bob (version: 0.9.2, model: gpt-4o-2024-08-06, log), an experimental AI-based assistant. It can make mistakes and has limitations. Check its messages carefully. In the recent updates, the |
Ok until here everything is great. Do not do above actions again. Now add the following functions from _github_utilities.py and put them into _gitlab_utilities.py. change the code so that the copied functions use the gitlab API instead of the github api.
git-bob solve |
This message was generated by git-bob (version: 0.9.2, model: gpt-4o-2024-08-06, log), an experimental AI-based assistant. It can make mistakes and has limitations. Check its messages carefully. The function |
This message was generated by git-bob (version: 0.9.2, model: gpt-4o-2024-08-06, log), an experimental AI-based assistant. It can make mistakes and has limitations. Check its messages carefully.
This update introduces the
_gitlab_utilities.py
file, implementing functions analogous to GitHub utilities but adapted for GitLab using the GitLab API. Key functionalities include obtaining repository information, manipulating issues and comments, managing files, and handling merge requests. Accompanying these utilities is a comprehensive test suite intest_gitlab_utilities.py
, ensuring robust verification of each function usingunittest.mock
andpytest
.closes #378