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

How to run other scm in my local dev? #470

Open
wd2010 opened this issue Jan 9, 2023 · 3 comments
Open

How to run other scm in my local dev? #470

wd2010 opened this issue Jan 9, 2023 · 3 comments

Comments

@wd2010
Copy link

wd2010 commented Jan 9, 2023

In my local runtime, I use yarn watch to run github, But i want to use gitlab, how to run or what command to use?

@welcome
Copy link

welcome bot commented Jan 9, 2023

Hello there!👋 Welcome to the project!💖 Thank you and congrats🎉for opening your very first issue in this project.Be patient while we get back to you.😄

@github-actions
Copy link

github-actions bot commented Jan 9, 2023

Hello there wd2010 👋

Welcome to github1s !!💖🥳

Thank you and congratulations 🎉 for opening your very first issue in this project. github1s fosters an open and welcoming environment for all our contributors.🌸

Incase you want to claim this issue, please comment down below! We will try to get back to you as soon as we can.👀

Feel free to visit github1s.com. 👩‍💻 If you have any interesting ideas, just open an issue. We would love to hear you and engage in discussions.

@conwnet
Copy link
Owner

conwnet commented Jan 11, 2023

You can add a entry in /etc/hosts:

127.0.0.1 gitlab1s.com

The relevant code is implemented here:

if (window.location.hostname.match(/\.?gitlab1s\.com$/i)) {
const dashIndex = pathParts.indexOf('-');
const repository = (dashIndex < 0 ? pathParts : pathParts.slice(0, dashIndex)).join('/');
platformName = 'GitLab';
platformConfig = {
hideTextFileLabelDecorations: !!repository,
windowIndicator: createWindowIndicator(repository),
configurationDefaults: createConfigurationDefaults(!!repository),
workspace: repository ? createFolderWorkspace('gitlab1s') : undefined,
workspaceId: repository ? 'gitlab1s:' + repository : '',
workspaceLabel: repository,
logo: {
title: 'Open on GitLab',
icon: staticAssetsPrefix + '/config/gitlab.svg',
onClick: () => (repository ? openOfficialPage('https://gitlab.com') : openGitHub1sPage()),
},
};

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

No branches or pull requests

3 participants
@wd2010 @conwnet and others