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

feat: default visibility #155

Merged
merged 1 commit into from
Dec 15, 2023
Merged

Conversation

jolheiser
Copy link
Contributor

Resolves #152

Feel free to use or discard any parts of this PR, it was a worthwhile exercise for me to look at the code more closely either way. 🙂

The formatting is a result of my setup using goimports and gofumpt, I am willing to cherry-pick out the changes without the formatting noise if you prefer it that way as well.

@thomiceli
Copy link
Owner

Thanks for the PR :)

Please see my comment in #152 where I find it better to have visibilities tied to client side, what do you think about it ?

Although I really like the changes about the Visibility type in the code, if you're willing to cherry pick only those changes then i'm fine with it for now

@jolheiser
Copy link
Contributor Author

I like that idea as well, would be more than happy to change the implementation. 🤝

Signed-off-by: jolheiser <john.olheiser@gmail.com>
@jolheiser
Copy link
Contributor Author

This should address it on the web UI. The terminal will take a bit more thought, as the URL doesn't work well with query params due to how git sends packs/etc. based on the URL

An alternative solution is to use push options, for example

git push -o visibility=unlisted

and then handling that on the server end.

@thomiceli thomiceli changed the base branch from master to dev-1.6 December 15, 2023 01:14
@thomiceli thomiceli merged commit 22c5732 into thomiceli:dev-1.6 Dec 15, 2023
8 checks passed
@jolheiser jolheiser deleted the default-visibility branch December 15, 2023 01:54
thomiceli pushed a commit that referenced this pull request Jan 4, 2024
Signed-off-by: jolheiser <john.olheiser@gmail.com>
jiriks74 pushed a commit to jiriks74/opengist that referenced this pull request Apr 28, 2024
Signed-off-by: jolheiser <john.olheiser@gmail.com>
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

Successfully merging this pull request may close these issues.

[Feature] Change Default Gist Visibility
2 participants