Giter Site home page Giter Site logo

Atlassian Stash support about git-open HOT 9 OPEN

paulirish avatar paulirish commented on May 20, 2024
Atlassian Stash support

from git-open.

Comments (9)

derimagia avatar derimagia commented on May 20, 2024 1

How much of this can be solved with the git-open config?

https://github.com/paulirish/git-open/blob/4b1e8601a70d281a3e366f6824593e9e129b8660/git-open.1.md#gitlab-options

It says Gitlab options, but we should rename that since it works with any repo

from git-open.

nwinkler avatar nwinkler commented on May 20, 2024 1

We should also rename the issue to "Bitbucket" instead of "Stash".

And yes, I agree, the config options for URL mapping should help with this. That should be the preferred option if the URL does not contain any hints about the type of server. I guess we could fire off a dummy request to the server and evaluate the response to figure out what server we're dealing with, but that sounds like overkill.

Maybe we could add an option that allows to set the kind of server for a given URL. So instead of setting up the URL mapping, we could configure that https://example.com/git/ is of type "Bitbucket" or something like that. Thoughts?

from git-open.

nwinkler avatar nwinkler commented on May 20, 2024

While you're right that the current version of git-open does not seem to support Stash SSH URLs, you're slightly off on the usage of HTTP URLs.

You can have write access on HTTP URLs as well (which will use authentication in that case), just like you have write access using SSH.

You can enable and configure HTTP/SSH access in your Stash configuration.

This is probably not relevant to your question, but I wanted to clear that up anyway 😄

from git-open.

kenahoo avatar kenahoo commented on May 20, 2024

Oh - thanks for the clarification. Would still be great to get support for Stash (which is becoming BitBucket) SSH urls. =)

from git-open.

ixisio avatar ixisio commented on May 20, 2024

+1

from git-open.

davidosomething avatar davidosomething commented on May 20, 2024

was this fixed by #36 ? anyone here confirm?

Please provide sample URLs if still broken and I'll add to backlog

from git-open.

JoakimLofgren avatar JoakimLofgren commented on May 20, 2024

#36 just fixed it for the hosted bitbucket.org, not the self-hosted stash/bitbucket server for SSH. (http/https is supported already).

Using @kenahoo's example, the git remotes could look like:
https://[email protected]/scm/foo/ken-homedir.git
or:
ssh://[email protected]:7999/foo/ken-homedir.git

And then you would open this URL in your browser:
https://stash.server.local/projects/FOO/repos/ken-homedir/browse

I guess you would need to configure this similar to what is done with Gitlab.

from git-open.

derimagia avatar derimagia commented on May 20, 2024

Is this still an issue?

from git-open.

davidosomething avatar davidosomething commented on May 20, 2024

^ yes
there are assumptions being made, such as repos always having scm in the url to distinguish them as stash, which is not valid

adding a check for port 7990 and 7999 (stash specific defaults for http and ssh) would be a good idea, but still does not catch proxied cases. It isn't possible to catch everything since stash URLs are under each individual organization's control

from git-open.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.