User hints: add a license, resource usage etc #414
Labels
No labels
accessibility
bug
bug
infrastructure
Codeberg
contributions welcome
docs
duplicate
enhancement
infrastructure
legal
licence / ToS
please chill
we are volunteers
public relations
question
question
user support
s/Forgejo
s/Forgejo/migration
s/Pages
s/Weblate
s/Woodpecker
security
service
upstream
wontfix
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Codeberg/Community#414
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
In #409 we discussed a way to hint users through Codeberg, with links to the Docs here and there and also nicely asking to follow the ToS here and there, especially when creating repos (and telling they should not eat up all disk space, contain a license file etc).
Transfer:
One idea was to create hints on the repos.
@hw:
Another idea could be to create a Codeberg bot with a fancy name refering to mining or something like that, that opens issues in repos alike "Welcome, don't forget to add a licence" or "Oh, you eat up a lot of disk ..." and stuff like that. It could add much more explanation than a simple help message, it can be implemented using external tools and it could be made in a funny way.
I like the tools idea
Open questions:
Report the findings to an admin for manual review then?
My concept is currently the following:
Although the bot could in theory open issues in private repositories, I'd rather add an annoying notice there. There are some currently 'accepted' use cases for private repos and I think there is close to no value added in this case.
So I'd prefer to add a banner in the template that shows on private repos and explains what they are for. I think, people could accept such a banner for their legitimate use cases 😜
I like this a lot.
nice!
Not sure how many these currently are. @ashimokawa : do you know?
It should be quite cheap to do something like
curl/wget/requests.get("https://codeberg.org/Codeberg/Community/raw/branch/master/$file) for file in ["LICENSE", "LICENSE.md", "LICENSE.rst"]etc, and check if any of these succeed. We could trigger this from a global commit webhook, and run asynchronuously once for all repos older than the launch date.Searching an issue via API is documented in https://codeberg.org/api/swagger#/issue, as this only happens if there is no license file in place, it should not be too expensive?
Yeah, that makes sense. I first thought about a local cache for speed, but this would require that someone keeps it up2date or the bot will open issues again.
So probably better to rely on the issue tracker as data storage and be independent of the bot operator.
A super-hacky workaround that just came to my mind (and I somehow start to like it):
Push a new branch with a descriptive name that just contains a README that explains the matter (no TOS compliance etc) and setting this as the default branch. All repository content is available unmodified, the README could include a note that users can change the branch.
not sure if this is worth the hassle unless we know that these are a significant number
A first step is the added banner to huge private repos (added 2 days ago with Gitea 1.15 deployment)
update?
@fnetX Isn't a license mandatory by the Terms of Use?
Still, it is a good idea to remind users of adding a proper free software license.