gitea icon indicating copy to clipboard operation
gitea copied to clipboard

Feature request: Add unlisted repositories

Open cmarshall108 opened this issue 4 years ago • 19 comments

Add the ability to make repositories unlisted, meaning that these repositories are not listed under your account and are only viewable by users who are given links. For example, this would be very similar to that of unlisted Youtube videos...

cmarshall108 avatar Oct 23 '19 17:10 cmarshall108

This behavior already exists for private repos. You can then give read/write permissions for collaborators. In the case that you mean there exist a special link in which a user would be able to have full read/write (similar to YouTube), what would be the use case?

FullofQuarks avatar Oct 30 '19 16:10 FullofQuarks

My use case is i was applying for a job, they wanted to see source code from my previous projects. I did not want to open source the source code due to unrelated reasons... But i wanted the folks at the company to be able to read over my source code without having to have specific read/write permissions.

cmarshall108 avatar Oct 30 '19 20:10 cmarshall108

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

stale[bot] avatar Dec 29 '19 20:12 stale[bot]

If we could generate an encoded URL for a private repository which has an expired time, and then you can share it with others.

lunny avatar Jan 01 '20 08:01 lunny

Yeah that would certainly work.

cmarshall108 avatar Jan 01 '20 13:01 cmarshall108

Is this still being added?

TheRealJP avatar Aug 30 '20 11:08 TheRealJP

Another use-case is schoolwork. Submitting a link to a repo Professor can access without either creating account or making the repo public. Would be very useful if this feature is added.

miki725 avatar Jan 05 '21 14:01 miki725

I find this pretty usefull when you want to share something with someone that doesn't have an account, without having to make the source code searchable. The miki725 use-case is one of the best I can think of.

This is already added in gogs. I'm talking from the ignorance, but it might be possible to port that idea from there.

ivi9901 avatar Jan 15 '21 15:01 ivi9901

thoughts: I would implement it as another visible level ... Private, Limited, Unlisted, Public

so for why nobody has implemented it ... to do this properly ... you have to refactor a lot :/ more explisit: rewrite the acces model for orgas&repos + migration

6543 avatar Jan 15 '21 17:01 6543

Chiming in here for another use case: occasionally the makers of specialized scientific hardware share their source code with researchers, but don't explicitly license it or post it publicly themselves.

If your team has a customized/patched version of that software, you can't exactly post it openly on GitHub or another searchable public repo, but you often still want to be able to share the code with others and deploy it easily on new machines. Unlisted repositories would solve the issue completely.

a-hurst avatar Feb 22 '21 05:02 a-hurst

This would be really cool, gogs also added this feature reccently

s00500 avatar Aug 20 '21 16:08 s00500

I originally commented to https://github.com/go-gitea/gitea/issues/10375#issuecomment-936096872, but this would be better solution for my scenario.

I have a repository for learning Flask and it doesn't need to be public (anyone interested can find the upstream), but currently I have to make it public to share it to people learning with me unless they are willing to register onto the same Gitea instance that I am using and being public means it takes visibility from my real repositories.

Mikaela avatar Oct 06 '21 12:10 Mikaela

Any updates? That would be good at least for repositories

strlcat avatar Mar 04 '22 22:03 strlcat

Honestly, sounds like you want to have custom share links (otherwise it might be easily guessed) or maybe the ability to assign permissions to a generic "Guest" user representing non-logged-in users for a private repo. If there also was a generic "Authenticated" user, one could do away with Visibility settings completely and manage it all in the "Collaborators" Tab while also solving https://github.com/go-gitea/gitea/issues/15331.

For both of these, rather than Admin/Write/Read the permissions could be Write/Read/Unlisted, with the latter meaning they can read but only with the link.

xeruf avatar Aug 03 '22 21:08 xeruf

This is already added in gogs. I'm talking from the ignorance, but it might be possible to port that idea from there.

Here is the pull request for that feature, in case it helps anyone else with an interest in contributing: https://github.com/gogs/gogs/pull/6176.

I'm also rather ignorant of this stuff, and have no real experience with Go, but I came upon this issue while looking around on AlternativeTo.net for a place to mirror a private GitHub repo with an unlisted URL, hopefully on a more FOSS-forward hosting service that I might migrate to more generally if I found I liked it. I'm encouraged by the fact that these kinds of community discussions and the open development process, as opposed to discussions like this that seem to go nowhere. Kudos, y'all! :pray:

And for my use case, I'm working on spec docs and draft proposals for a coop business model. I don't need absolute secrecy, but mostly don't want people stumbling on it without realizing it's in draft, not even prototype level, and making premature judgments. However, I do want to be able to share it with people who are not programmers (or even very technically savvy at all) with a simple share link that does not require an account with GitHub or any other hosting service. Since the repo's content is mostly markdown that I just wanted rendered as unfussy HTML, I'm realizing as I type this it might make better sense to setup my own unlisted static site for those documents, but I'd be eager to try it out with Gitea if this feature was added.

jgaehring avatar Jan 22 '23 16:01 jgaehring

@jgaehring sounds like a good fit for just setting up an own gitea instance and disabling search engine indexing at the HTTP level

xeruf avatar Jan 25 '23 20:01 xeruf

It would be nice to see some sort of update on this. I would be more than happy to spend my time submitting a pr in order to get this done!

Cystemzz avatar Dec 04 '23 06:12 Cystemzz