question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Any way to set remote repository in cli mode?

See original GitHub issue

My situation may appear a little bit untypically, but perhaps this is already implemented:

  • we have a closed Gitlab instance that we use for internal software development
  • we publish some of our branches/tools to Github, for external code collaboration

So far, I’ve only released releases in Github, because it was not possible in python-semantic-release to setup custom Gitlab instances.

Since GL_TOKEN became available, I’d also like to publish releases to the master branch on our custom Gitlab instance.

However, python-semantic-release seems to only use the remote that is set as default git remote. Is there any way to have it simultaneously publish releases to both Github and Gitlab using GH_TOKEN (e.g. remote origin) and GL_TOKEN (e.g. remote gl_origin)?

Alternatively, manually publishing/updating all releases to Gitlab would be totally ok for me, if there was such an option…

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
relekangcommented, Sep 20, 2019

That sounds like a good idea.

1reaction
relekangcommented, Sep 19, 2019

So is this about having a cli option to the changelog command to be able to push the changelog to gitlab as well?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Add a New Remote to your Git Repo
To add a new remote, use the git remote add command on the terminal, in the directory your repository is stored at. The...
Read more >
About remote repositories - GitHub Docs
You can use the command git remote set-url to change a remote's URL. Choosing a URL for your remote repository. There are several...
Read more >
git-remote Documentation - Git
Add a remote named <name> for the repository at <URL>. The command git fetch <name> can then be used to create and update...
Read more >
Git on the command line - GitLab Docs
Introduction to using Git through the command line.
Read more >
How to Get Started with GIT and work with GIT Remote Repo
On your local repo (let's continue to work on our " hello-git " project), set up the remote repo's name and URL via...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found