Skip to content
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

Gitlab integration #43

Open
wants to merge 17 commits into
base: develop
Choose a base branch
from

Conversation

panta-123
Copy link

@panta-123 panta-123 commented Jul 17, 2024

Description

Closes: #42 #40
This allows gitlab integration.
Added CLI options:

  1. --gitlab : to say that this is gitlab specific repo. (triggers gitlab flow)
  2. --gitlab-url : If not using URl , and using account , repo ,
  3. --gitlab-projectid: specify the project ID as ID or path of url.

Interface to gitlab is made in gitlab.py.
A comman inteferace that pass the info to gitlab or github is made, (githublab.py) , it calls gitlab.py if --gitlab is specified.

Aditonal: closes the rich optionhighlighter issue aswell.

Questions:
In cli help , the text says --account but that option is not there. The available option is --github-account.
Should we change to --account (as this will be not github/gitlab specicifc).

Also there are option --github-token and --github-repo , should this be changed to --git-token and --git-repo repectively. So that we will be NOT be github/gitlab specific.

Software environment

Please include the following information:

  • Version of the software: latest / develop.

Checklist

Please check that the following have been done:

@tmorrell
Copy link
Member

Thanks for the contribution! We likely won’t be able to review until early August

@panta-123
Copy link
Author

@tmorrell any update here ?

@tmorrell tmorrell self-assigned this Aug 22, 2024
@tmorrell
Copy link
Member

We've had some staffing changes, but it's on our list to review soon. Hopefully by the end of the month!

One quick comment, it would be great to add some gitlab tests like https://github.com/caltechlibrary/iga/blob/develop/tests/test_github_mocks.py and https://github.com/caltechlibrary/iga/blob/develop/tests/test_github.py. Since we don't use gitlab at Caltech having tests is important to make sure we don't break anything.

@panta-123
Copy link
Author

working on it. next commit within this week.

@panta-123
Copy link
Author

added the pytest for gitlab.

@panta-123
Copy link
Author

@tmorrell , added the pytest similar to github and github_mocks.
Some extra test on cli as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request feasibility discussion: gitlab integration.
2 participants