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

Feature request: Add unlisted repositories #8649

Open
cmarshall108 opened this issue Oct 23, 2019 · 19 comments
Open

Feature request: Add unlisted repositories #8649

cmarshall108 opened this issue Oct 23, 2019 · 19 comments
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@cmarshall108
Copy link

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...

@FullofQuarks
Copy link
Contributor

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?

@cmarshall108
Copy link
Author

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.

@stale
Copy link

stale bot commented Dec 29, 2019

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 stale bot added the issue/stale label Dec 29, 2019
@lunny lunny added type/proposal The new feature has not been accepted yet but needs to be discussed first. issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented labels Jan 1, 2020
@stale stale bot removed the issue/stale label Jan 1, 2020
@lunny
Copy link
Member

lunny commented Jan 1, 2020

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

@cmarshall108
Copy link
Author

Yeah that would certainly work.

@TheRealJP
Copy link

Is this still being added?

@miki725
Copy link

miki725 commented Jan 5, 2021

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.

@ivi9901
Copy link

ivi9901 commented Jan 15, 2021

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.

@6543
Copy link
Member

6543 commented Jan 15, 2021

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

@a-hurst
Copy link

a-hurst commented Feb 22, 2021

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.

@6543 6543 added this to the 1.15.0 milestone Feb 22, 2021
@zeripath zeripath removed this from the 1.15.0 milestone Jun 26, 2021
@s00500
Copy link

s00500 commented Aug 20, 2021

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

@Mikaela
Copy link
Contributor

Mikaela commented Oct 6, 2021

I originally commented to #10375 (comment), 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.

@strlcat
Copy link

strlcat commented Mar 4, 2022

Any updates? That would be good at least for repositories

@xeruf
Copy link

xeruf commented Aug 3, 2022

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 #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.

@jgaehring
Copy link

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: gogs/gogs#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! 🙏

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.

@xeruf
Copy link

xeruf commented Jan 25, 2023

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

@Cystemzz
Copy link

Cystemzz commented Dec 4, 2023

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!

@ZandercraftGames
Copy link

Just came across this and I think it would be a pretty good feature to have. Any progress on it?

@EchtVanMij
Copy link

second that..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

No branches or pull requests