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

Other git hosting platform link #25

Closed
AuroreRoma opened this issue Jun 24, 2022 · 9 comments
Closed

Other git hosting platform link #25

AuroreRoma opened this issue Jun 24, 2022 · 9 comments
Labels
feature request New feature or request

Comments

@AuroreRoma
Copy link

I think it could be pretty cool if we could add our username on other git-based hosting platform (especially self-hosted one).
A few exemple would be gitea, sourcehut or gogs, to name only a few.

@AuroreRoma AuroreRoma added the feature request New feature or request label Jun 24, 2022
@FreekBes
Copy link
Owner

I'm not a big fan of allowing custom URLs in profiles on Intra, so self-hosted ones are out of the question for now. However, different git platforms are totally doable. Do you by any chance have any sample URLs to profiles on these services?

@AuroreRoma
Copy link
Author

I don't think i have any sample URLs.

@harm-smits
Copy link
Collaborator

harm-smits commented Jul 26, 2022

@FreekBes We could set up a little warning on the server side telling people that they are being redirected to an unknown third party website and to proceed with caution, whereas this warning would not show with github, gitlab and sourcehut.

@AuroreRoma
Copy link
Author

I think it would be a great way to incorporate it

@FreekBes
Copy link
Owner

@harm-smits sounds like a plan. Currently different services are saved in a specific format: service@username. I'm not sure currently how to implement third party services in that manner, but maybe a good time to implement that would be with a complete serverside rewrite. I'm planning on doing that in the near future.

@harm-smits
Copy link
Collaborator

The services would be rather easy to handle. We can use PHP's parse_url to grab just the hostname + url path. This way no funky stuff can happen really. Of course we also enforce HTTPS.

@FreekBes
Copy link
Owner

FreekBes commented Aug 28, 2022

Status update! I just finished writing the new back-end for the extension, where git usernames will instead be stored in the following format in the new DB: domain@username. So github.com@FreekBes or gitlab.com@FreekBes. This way we can whitelist new domains and add functionality on the client-side, making sure only git services are linked.

Additionally, I plan on also including a 'portfolio' link on profiles, where you can basically link any website you want.

These changes will be rolled out once the front-end has been rewritten to work with the new back-end, so probably within a month.

@Vusk42
Copy link

Vusk42 commented Oct 31, 2022

Hey! Is it possbile to add https://codeberg.org/ profile's link ?
It is powered by Gitea

@FreekBes FreekBes pinned this issue Nov 12, 2022
@FreekBes
Copy link
Owner

This feature has been added in release v4.0.0: https://github.com/FreekBes/improved_intra/releases/tag/v4.0.0

@FreekBes FreekBes changed the title Other hosting platform link Other git hosting platform link Dec 11, 2022
@FreekBes FreekBes unpinned this issue Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants