Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Is it possible to set remote URLs for a project's Git/VCS settings with the API? (Similarly to the way you can adjust the Git settings of plugins with the API)
Looking to aide our team's creation and association of repos by integrating a project's git settings into a macro.
Hi, @pilotjohn4! Can you provide any further details on the thread to assist users in helping you find a solution (insert examples like DSS version etc.) Also, can you let us know if you’ve tried any fixes already?This should lead to a quicker response from the community.
I have not tried any fixes. The documentation shows git remote control via API for plugins, but only pushing to the remote repo for projects.
Currently we're using DSS 8.0.3 but working on getting to 8.0.5.
I would like to develop a plugin to:
1. Use Python to create a Gitlab Repo with an API.
2. Get that ssh clone URL and set the remote URL of the Version Control for the project via the DSS API or Python API.
This is not currently possible using the API - we've logged it as a feature request.
In the meantime, you can do it from the command line (which can be sent from the python script in a DSS macro) - git remote add origin YOUR_URL.
Feel free to reach out to your Customer Success Manager for more detailed assistance with the implementation.