mirror of
https://github.com/go-gitea/gitea.git
synced 2026-03-12 10:39:38 -05:00
Gist like repo type #7681
Open
opened 2025-11-02 07:33:19 -06:00 by GiteaMirror
·
37 comments
No Branch/Tag Specified
main
release/v1.25
release/v1.24
release/v1.23
release/v1.22
release/v1.21
release/v1.20
release/v1.19
release/v1.18
release/v1.17
release/v1.16
release/v1.15
release/v1.14
release/v1.13
release/v1.12
release/v1.11
release/v1.10
release/v1.9
release/v1.8
v1.25.3
v1.25.2
v1.25.1
v1.25.0
v1.24.7
v1.25.0-rc0
v1.26.0-dev
v1.24.6
v1.24.5
v1.24.4
v1.24.3
v1.24.2
v1.24.1
v1.24.0
v1.23.8
v1.24.0-rc0
v1.25.0-dev
v1.23.7
v1.23.6
v1.23.5
v1.23.4
v1.23.3
v1.23.2
v1.23.1
v1.23.0
v1.23.0-rc0
v1.24.0-dev
v1.22.6
v1.22.5
v1.22.4
v1.22.3
v1.22.2
v1.22.1
v1.22.0
v1.23.0-dev
v1.22.0-rc1
v1.21.11
v1.22.0-rc0
v1.21.10
v1.21.9
v1.21.8
v1.21.7
v1.21.6
v1.21.5
v1.21.4
v1.21.3
v1.21.2
v1.20.6
v1.21.1
v1.21.0
v1.21.0-rc2
v1.21.0-rc1
v1.20.5
v1.22.0-dev
v1.21.0-rc0
v1.20.4
v1.20.3
v1.20.2
v1.20.1
v1.20.0
v1.19.4
v1.21.0-dev
v1.20.0-rc2
v1.20.0-rc1
v1.20.0-rc0
v1.19.3
v1.19.2
v1.19.1
v1.19.0
v1.19.0-rc1
v1.20.0-dev
v1.19.0-rc0
v1.18.5
v1.18.4
v1.18.3
v1.18.2
v1.18.1
v1.18.0
v1.17.4
v1.18.0-rc1
v1.19.0-dev
v1.18.0-rc0
v1.17.3
v1.17.2
v1.17.1
v1.17.0
v1.17.0-rc2
v1.16.9
v1.17.0-rc1
v1.18.0-dev
v1.16.8
v1.16.7
v1.16.6
v1.16.5
v1.16.4
v1.16.3
v1.16.2
v1.16.1
v1.16.0
v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2
v1.3.1
v1.3.0
v1.3.0-rc2
v1.3.0-rc1
v1.2.3
v1.2.2
v1.2.1
v1.2.0
v1.2.0-rc3
v1.2.0-rc2
v1.1.4
v1.2.0-rc1
v1.1.3
v1.1.2
v1.1.1
v1.1.0
v1.0.2
v1.0.1
v1.0.0
v0.9.99
Labels
Clear labels
$20
$250
$50
$500
backport/done
💎 Bounty
docs-update-needed
good first issue
hacktoberfest
issue/bounty
issue/confirmed
issue/critical
issue/duplicate
issue/needs-feedback
issue/not-a-bug
issue/regression
issue/stale
issue/workaround
lgtm/need 2
modifies/api
modifies/translation
outdated/backport/v1.18
outdated/theme/markdown
outdated/theme/timetracker
performance/bigrepo
performance/cpu
performance/memory
performance/speed
pr/breaking
proposal/accepted
proposal/rejected
pr/wip
pull-request
reviewed/wontfix
💰 Rewarded
skip-changelog
status/blocked
topic/accessibility
topic/api
topic/authentication
topic/build
topic/code-linting
topic/commit-signing
topic/content-rendering
topic/deployment
topic/distribution
topic/federation
topic/gitea-actions
topic/issues
topic/lfs
topic/mobile
topic/moderation
topic/packages
topic/pr
topic/projects
topic/repo
topic/repo-migration
topic/security
topic/theme
topic/ui
topic/ui-interaction
topic/ux
topic/webhooks
topic/wiki
type/bug
type/deprecation
type/docs
type/enhancement
type/feature
type/miscellaneous
type/proposal
type/question
type/refactoring
type/summary
type/testing
type/upstream
Mirrored from GitHub Pull Request
No Label
type/proposal
Milestone
No items
No Milestone
Projects
Clear projects
No project
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/gitea#7681
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @crapStone on GitHub (Aug 11, 2021).
Originally assigned to: @techknowlogick on GitHub.
TLDR: GitHub gist feature for Gitea
Long Version:
Add a new repo type named "Gist" and show them in the webui like a GitHub Gist:
Proposals for implementation:
<base-url>/<user_or_organization>/gists/<uuid>(gistsmust be a blacklisted repo name)RepoTypefield to database)gistsand go to gist handling; else go to user repo handling@techknowlogick commented on GitHub (Aug 11, 2021):
+1 for the above.
In addition to this, IIRC, GH gists also use hooks to block binary files. Perhaps that is also something for us to consider
Edit: Also no folders are allowed either.
@crueber commented on GitHub (Aug 11, 2021):
I feel like this isn't even really necessary, myself. Certainly a nicety though.
@lunny commented on GitHub (Aug 12, 2021):
So that we also need a new column in repository table named
uuid.@techknowlogick commented on GitHub (Aug 12, 2021):
We won't, as we can use repo_name with and populate it with uuid
@OhYee commented on GitHub (Aug 31, 2021):
Is it possible to implement anonymous code paste?
Like https://paste.ubuntu.com/
It seems that in the current design, an account must be logged in
@crapStone commented on GitHub (Sep 6, 2021):
Gists are a way to share information with one or a few files.
You want a pastebin-like service and there is another issue where this is discussed (#693).
@lunny commented on GitHub (Sep 7, 2021):
Just close this and please discuss further in #693
@crapStone commented on GitHub (Sep 8, 2021):
This is not a duplicate of #693. I want to have gists and not an anonymous text sharing service.
@crapStone commented on GitHub (Sep 8, 2021):
Btw: the discussion in #693 is closed
@6543 commented on GitHub (Sep 10, 2021):
@lunny did close old issue -> see reason - this proposal here is a better aproach and wont add much extra code etc ...
@psjbeisler commented on GitHub (Feb 1, 2022):
Gists / Snippets always had a social aspect to them and with Federation coming up, the thought of a (possibly Federated) Gitea snippet feed is cool.
https://gitlab.com/explore/snippets
https://gist.github.com/discover
@bryanpedini commented on GitHub (Feb 5, 2022):
⁉️ ⁉️ ⁉️
repo_nameis "gists"...also, my 2c, I think GH uses the commit ID as URL, which IMO is actually easier to handle than "actual routing"
PS: please (if possible, dunno, not a Gitea coder) use
.gistsor.somethingelseas reserved repo name, I mean, something that nobody would possibly think to use, with a dot before or an underscore or something, not something "plaintext"...@techknowlogick commented on GitHub (Feb 5, 2022):
@bryanpedini Github uses a fresh repo for each gist, as otherwise when cloning people could discover secret gists, as well if using the commit ID the gist would change location on each change
@realaravinth commented on GitHub (Feb 18, 2022):
Hello,
I'm working on a gist program which will have features very similar GitHub Gists but with subtle differences:
Currently, it has a standalone authentication/user management mechanism(i.e people can signup using email IDs), but OAuth integration with Gitea is planned. The full feature list is available on the repository's README.
I would appreciate any inputs you might have :)
@ptman commented on GitHub (Feb 18, 2022):
@realaravinth are the features listed already implemented or is that a feature-todo in the readme?
@realaravinth commented on GitHub (Feb 18, 2022):
@ptman it's a todo list :)
The project is less than a week old but I hope to get posting gists and commenting on it from the web UI working by the end of next week.
The following things are implemented so far:
But all of the above features are implemented using REST API only. Web UI is in progress.
@Kcalb35 commented on GitHub (Apr 5, 2022):
Are there any news or progress?
@RokkuCode commented on GitHub (May 16, 2022):
@realaravinth @ptman would you mind to discuss this outside of this issue. i am not interested in a third party tool but i want to see gists in gitea. thanks.
@bryanpedini commented on GitHub (Sep 26, 2022):
Cool, good for you, you seem to have time to waste here instead of hands-on the code then...
"want"? do it yourself then :)
"desire"? you can pay somebody to do it for you
"would like"? you can wait like everybody else since here nobody's at your service
Keep the drama for yourself, I'm not capable of programming at this level of Go, hence I'm not here complaining about "when this will be avaaaailableee sob sob sob"...
Thanks.
@squirrelroad commented on GitHub (Nov 25, 2022):
Hello, I put up an bounty for this request. Hopefully, more users can chip in and incentivize the devs to prioritize this :)
https://app.bountysource.com/issues/100356521-gist-like-repo-type
(PS: I understand gitea is meant to be as lean as possible, this feature may be out of scope, however does gitea supports plugins so that new features can be added?)
@tahaghafuri commented on GitHub (Nov 25, 2022):
UP+
@tahaghafuri commented on GitHub (Dec 7, 2022):
https://github.com/go-gitea/gitea/issues/22039
@techknowlogick commented on GitHub (Dec 7, 2022):
@tahaghafuri thank you for your enthusiasm for this ticket. Please keep discussion of the ticket limited to this issue, no need to open multiple other tickets.
@splashsky commented on GitHub (Apr 6, 2023):
How is this looking at the moment?
@ptman commented on GitHub (Apr 12, 2023):
https://github.com/thomiceli/opengist
@crueber commented on GitHub (Apr 13, 2023):
I want to applaud you for just going and getting it done. I'll definitely be using yours for the time being. I would prefer that it was tied in to the Gitea auth system, but for my current needs, that's great. Thanks for the advert here.
@ptman commented on GitHub (Apr 20, 2023):
Not mine but @thomiceli . I would also prefer that it was integrated to gitea instead of separate and duplicating lots of functionality. But it can auth via gitea.
@realies commented on GitHub (Jul 11, 2023):
A few years ago, I wondered if this was being worked on. I am surprised not to see it in Gitea today.
@Mai-Lapyst commented on GitHub (Jul 12, 2023):
No, currently no-one is working on this. And tbh please on all you out there: if you want it so badly for years then start working on it yourself instead of pinging this issue every few months.
@crapStone commented on GitHub (Jan 15, 2024):
This works perfectly and can be registered as OAuth application in Gitea
@Mai-Lapyst commented on GitHub (Jan 15, 2024):
@crapStone
... once more: please only bump this issue if this feature is being added into gitea. All people following this issue are well aware that there are 3rd party tools you can plug into it and it kinda works. But we want this as first-party solution inside gitea. Thanks.
@6543 commented on GitHub (Jan 15, 2024):
I emphasize not bloating gitea ... so this is a perfect solution in my eyes.
why add more maintenance burden if you gain nothing beside copy paste something who is already easy to host too ?!?
@Mai-Lapyst commented on GitHub (Jan 15, 2024):
Easy: From a administration side, I dont want to run, maintain, configure, test multiple services if I dont have to. Espc checking for updates, diffing config settings, doing the actual update + maybe managing downtime with users.
Also from a user point of view, I hate it to logging into multiple sites, remember multiple urls. It also is a problem when you want a consistent style between the gitea and the gist service; espc when it comes to editing experience. This is better handled inside gitea itself imo.
And if we argue of maintenance burden, we also could argue gitea should not have a ci tool as well, as it might not be needed by everyone, yet it is added since it is a sensefull and good addition. Same applies to gists imho.
@6543 commented on GitHub (Jan 15, 2024):
AS a gitea maintainer, i dont want to maintain something who i can also run it on a raspbery pi and is setup in exactly 5 minutes - just did so.
and yes I also was against adding ci, just see my profile ...
but in terms of adoption more maintainers voted for adding it - but have it equal to other solutions, so on can decide how bloated a gitea installation should get
@techknowlogick commented on GitHub (Jan 15, 2024):
I’m going to re-open this, as unlike adding CI, the suggested route for snippets is a repo with a different template and a bit more rules around them. Similar to our wiki setup (where it’s an enum in a db row). It’s on my 2024 list of things I’d like to accomplish (not guaranteeing it make it in, as I’d need to work on the PR, but also get reviews, and receive approval from other maintainers).
@delvh commented on GitHub (Jan 15, 2024):
Okay, I'll go grab some 🍿 and let you fight over it.
@techknowlogick commented on GitHub (Jan 16, 2024):
All in good spirits :) I think once my PR is seen, then it'll help fully articulate what I'm thinking, and if not it can be closed.