0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-22 05:45:10 +01:00
Commit Graph

93 Commits

Author SHA1 Message Date
GiteaBot
145b583631 [skip ci] Updated licenses and gitignores 2024-12-09 00:35:40 +00:00
GiteaBot
6551847aa8 [skip ci] Updated licenses and gitignores 2024-10-07 00:32:39 +00:00
yp05327
70b7df0e5e
Support repo license (#24872)
Close #278
Close #24076

## Solutions:
- Use
[google/licenseclassifier](https://github.com/google/licenseclassifier/)
Test result between
[google/licensecheck](https://github.com/google/licensecheck) and
[go-license-detector](https://github.com/go-enry/go-license-detector):
https://github.com/go-gitea/gitea/pull/24872#issuecomment-1560361167
Test result between
[google/licensecheck](https://github.com/google/licensecheck) and
[google/licenseclassifier](https://github.com/google/licenseclassifier/):
https://github.com/go-gitea/gitea/pull/24872#issuecomment-1576092178
- Generate License Convert Name List to avoid import license templates
with same contents
Gitea automatically get latest license data from[
spdx/license-list-data](https://github.com/spdx/license-list-data).
But unfortunately, some license templates have same contents. #20915
[click here to see the
list](https://github.com/go-gitea/gitea/pull/24872#issuecomment-1584141684)
So we will generate a list of these license templates with same contents
and create a new file to save the result when using `make
generate-license`. (Need to decide the save path)
- Save License info into a new table `repo_license`
Can easily support searching repo by license in the future.

## Screen shot
Single License:

![image](https://github.com/go-gitea/gitea/assets/18380374/41260bd7-0b4c-4038-8592-508706cffa9f)

Multiple Licenses:

![image](https://github.com/go-gitea/gitea/assets/18380374/34ce2f73-7e18-446b-9b96-ecc4fb61bd70)

Triggers:
- [x] Push commit to default branch
- [x] Create repo
- [x] Mirror repo
- [x] When Default Branch is changed, licenses should be updated

Todo:
- [x] Save Licenses info in to DB when there's a change to license file
in the commit
- [x] DB Migration
- [x] A nominal test?
- [x] Select which library to
use(https://github.com/go-gitea/gitea/pull/24872#issuecomment-1560361167)
- [x] API Support
- [x] Add repo license table
- ~Select license in settings if there are several licenses(Not
recommended)~
- License board(later, not in this PR)

![image](https://github.com/go-gitea/gitea/assets/18380374/2c3c3bf8-bcc2-4c6d-8ce0-81d1a9733878)

---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Denys Konovalov <kontakt@denyskon.de>
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: 6543 <m.huber@kithara.com>
Co-authored-by: a1012112796 <1012112796@qq.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.com>
2024-10-01 15:25:08 -04:00
GiteaBot
48cdde98bb [skip ci] Updated licenses and gitignores 2024-09-23 00:31:34 +00:00
GiteaBot
972eae358d [skip ci] Updated licenses and gitignores 2024-09-09 00:31:04 +00:00
GiteaBot
d477dd5e88 [skip ci] Updated licenses and gitignores 2024-08-26 00:28:33 +00:00
GiteaBot
64ef3898e0 [skip ci] Updated licenses and gitignores 2024-08-12 00:29:12 +00:00
GiteaBot
c649a04da1 [skip ci] Updated licenses and gitignores 2024-08-05 00:28:44 +00:00
GiteaBot
88decb6913 [skip ci] Updated licenses and gitignores 2024-07-29 00:28:39 +00:00
GiteaBot
e625813aa9 [skip ci] Updated licenses and gitignores 2024-05-27 00:26:27 +00:00
GiteaBot
82a0c36332 [skip ci] Updated licenses and gitignores 2024-05-20 00:25:39 +00:00
GiteaBot
2442ead680 [skip ci] Updated licenses and gitignores 2024-05-13 00:26:15 +00:00
GiteaBot
e67141756d [skip ci] Updated licenses and gitignores 2024-04-29 00:25:01 +00:00
GiteaBot
31386dc2bb [skip ci] Updated licenses and gitignores 2024-04-22 00:25:56 +00:00
GiteaBot
708e87e17d [skip ci] Updated licenses and gitignores 2024-04-15 02:40:53 +00:00
GiteaBot
0c7b0c5aca [skip ci] Updated licenses and gitignores 2024-04-08 00:25:35 +00:00
GiteaBot
3607f827fb [skip ci] Updated licenses and gitignores 2024-04-01 00:27:21 +00:00
GiteaBot
a4a766f4a2 [skip ci] Updated licenses and gitignores 2024-03-18 00:24:59 +00:00
GiteaBot
2fb917f69e [skip ci] Updated licenses and gitignores 2024-03-04 00:24:22 +00:00
GiteaBot
f04e71f9bc [skip ci] Updated licenses and gitignores 2024-02-19 00:24:35 +00:00
GiteaBot
016c77a833 [skip ci] Updated licenses and gitignores 2024-02-05 00:25:25 +00:00
GiteaBot
2a50d780f9 [skip ci] Updated licenses and gitignores 2024-01-29 00:24:21 +00:00
GiteaBot
692929b628 [skip ci] Updated licenses and gitignores 2024-01-22 00:26:33 +00:00
GiteaBot
f4ea8d9a6c [skip ci] Updated licenses and gitignores 2024-01-08 00:26:06 +00:00
GiteaBot
7396e3618d [skip ci] Updated licenses and gitignores 2023-12-25 00:25:23 +00:00
GiteaBot
5b2bbf1a1f [skip ci] Updated licenses and gitignores 2023-12-11 00:25:45 +00:00
GiteaBot
ec1feedbf5 [skip ci] Updated licenses and gitignores 2023-12-04 00:25:15 +00:00
GiteaBot
024fe11cd3 [skip ci] Updated licenses and gitignores 2023-11-13 00:24:40 +00:00
GiteaBot
d1f85525d0 [skip ci] Updated licenses and gitignores 2023-10-16 00:24:20 +00:00
GiteaBot
c9cc57f130 [skip ci] Updated licenses and gitignores 2023-10-02 00:23:46 +00:00
GiteaBot
558eea69bd [skip ci] Updated licenses and gitignores 2023-09-18 00:23:39 +00:00
GiteaBot
a38cf868c5 [skip ci] Updated licenses and gitignores 2023-09-04 00:23:31 +00:00
GiteaBot
2401e6e121 [skip ci] Updated licenses and gitignores 2023-08-28 00:22:48 +00:00
GiteaBot
049e400327 [skip ci] Updated licenses and gitignores 2023-08-07 00:27:21 +00:00
GiteaBot
7dc2e50113 [skip ci] Updated licenses and gitignores 2023-07-31 00:32:16 +00:00
GiteaBot
eab011db58 [skip ci] Updated licenses and gitignores 2023-07-03 00:30:17 +00:00
GiteaBot
d67e411c26 [skip ci] Updated licenses and gitignores 2023-06-12 00:29:16 +00:00
yp05327
e4f9eb7e12
Fix incorrect git ignore rule and add missing license files (#25135)
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Giteabot <teabot@gitea.io>
2023-06-08 09:36:53 +02:00
GiteaBot
d63d8108b4 [skip ci] Updated licenses and gitignores 2023-06-05 00:27:49 +00:00
GiteaBot
84d93c82cd [skip ci] Updated licenses and gitignores 2023-05-22 00:25:26 +00:00
GiteaBot
3319e9597e [skip ci] Updated licenses and gitignores 2023-05-08 00:23:39 +00:00
GiteaBot
c205d559f9 [skip ci] Updated licenses and gitignores 2023-05-01 00:25:30 +00:00
GiteaBot
357042279b [skip ci] Updated licenses and gitignores 2023-02-26 00:15:26 +00:00
KN4CK3R
b1a4eb40a1 [skip ci] Updated licenses and gitignores 2023-01-01 00:19:35 +00:00
Lunny Xiao
3bd49f7801 [skip ci] Updated licenses and gitignores 2022-12-25 00:19:36 +00:00
zeripath
998fe26051 [skip ci] Updated licenses and gitignores 2022-12-18 00:19:33 +00:00
KN4CK3R
601d126627 [skip ci] Updated licenses and gitignores 2022-12-11 00:19:34 +00:00
KN4CK3R
32590db4ca [skip ci] Updated licenses and gitignores 2022-11-27 00:19:33 +00:00
KN4CK3R
d33b2d473c [skip ci] Updated licenses and gitignores 2022-10-30 00:19:37 +00:00
wxiaoguang
c4742fbea3 [skip ci] Updated licenses and gitignores 2022-09-25 00:20:43 +00:00