GiteaBot
|
6551847aa8
|
[skip ci] Updated licenses and gitignores
|
2 months ago |
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>
|
2 months ago |
GiteaBot
|
48cdde98bb
|
[skip ci] Updated licenses and gitignores
|
2 months ago |
GiteaBot
|
972eae358d
|
[skip ci] Updated licenses and gitignores
|
2 months ago |
GiteaBot
|
d477dd5e88
|
[skip ci] Updated licenses and gitignores
|
3 months ago |
GiteaBot
|
64ef3898e0
|
[skip ci] Updated licenses and gitignores
|
3 months ago |
GiteaBot
|
c649a04da1
|
[skip ci] Updated licenses and gitignores
|
4 months ago |
GiteaBot
|
88decb6913
|
[skip ci] Updated licenses and gitignores
|
4 months ago |
GiteaBot
|
e625813aa9
|
[skip ci] Updated licenses and gitignores
|
6 months ago |
GiteaBot
|
82a0c36332
|
[skip ci] Updated licenses and gitignores
|
6 months ago |
GiteaBot
|
2442ead680
|
[skip ci] Updated licenses and gitignores
|
6 months ago |
GiteaBot
|
e67141756d
|
[skip ci] Updated licenses and gitignores
|
7 months ago |
GiteaBot
|
31386dc2bb
|
[skip ci] Updated licenses and gitignores
|
7 months ago |
GiteaBot
|
708e87e17d
|
[skip ci] Updated licenses and gitignores
|
7 months ago |
GiteaBot
|
0c7b0c5aca
|
[skip ci] Updated licenses and gitignores
|
8 months ago |
GiteaBot
|
3607f827fb
|
[skip ci] Updated licenses and gitignores
|
8 months ago |
GiteaBot
|
a4a766f4a2
|
[skip ci] Updated licenses and gitignores
|
8 months ago |
GiteaBot
|
2fb917f69e
|
[skip ci] Updated licenses and gitignores
|
9 months ago |
GiteaBot
|
f04e71f9bc
|
[skip ci] Updated licenses and gitignores
|
9 months ago |
GiteaBot
|
016c77a833
|
[skip ci] Updated licenses and gitignores
|
10 months ago |
GiteaBot
|
2a50d780f9
|
[skip ci] Updated licenses and gitignores
|
10 months ago |
GiteaBot
|
692929b628
|
[skip ci] Updated licenses and gitignores
|
10 months ago |
GiteaBot
|
f4ea8d9a6c
|
[skip ci] Updated licenses and gitignores
|
11 months ago |
GiteaBot
|
7396e3618d
|
[skip ci] Updated licenses and gitignores
|
11 months ago |
GiteaBot
|
5b2bbf1a1f
|
[skip ci] Updated licenses and gitignores
|
12 months ago |
GiteaBot
|
ec1feedbf5
|
[skip ci] Updated licenses and gitignores
|
12 months ago |
GiteaBot
|
024fe11cd3
|
[skip ci] Updated licenses and gitignores
|
1 year ago |
GiteaBot
|
d1f85525d0
|
[skip ci] Updated licenses and gitignores
|
1 year ago |
GiteaBot
|
c9cc57f130
|
[skip ci] Updated licenses and gitignores
|
1 year ago |
GiteaBot
|
558eea69bd
|
[skip ci] Updated licenses and gitignores
|
1 year ago |
GiteaBot
|
a38cf868c5
|
[skip ci] Updated licenses and gitignores
|
1 year ago |
GiteaBot
|
2401e6e121
|
[skip ci] Updated licenses and gitignores
|
1 year ago |
GiteaBot
|
049e400327
|
[skip ci] Updated licenses and gitignores
|
1 year ago |
GiteaBot
|
7dc2e50113
|
[skip ci] Updated licenses and gitignores
|
1 year ago |
GiteaBot
|
eab011db58
|
[skip ci] Updated licenses and gitignores
|
1 year ago |
GiteaBot
|
d67e411c26
|
[skip ci] Updated licenses and gitignores
|
1 year ago |
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>
|
1 year ago |
GiteaBot
|
d63d8108b4
|
[skip ci] Updated licenses and gitignores
|
1 year ago |
GiteaBot
|
84d93c82cd
|
[skip ci] Updated licenses and gitignores
|
2 years ago |
GiteaBot
|
3319e9597e
|
[skip ci] Updated licenses and gitignores
|
2 years ago |
GiteaBot
|
c205d559f9
|
[skip ci] Updated licenses and gitignores
|
2 years ago |
GiteaBot
|
357042279b
|
[skip ci] Updated licenses and gitignores
|
2 years ago |
KN4CK3R
|
b1a4eb40a1
|
[skip ci] Updated licenses and gitignores
|
2 years ago |
Lunny Xiao
|
3bd49f7801
|
[skip ci] Updated licenses and gitignores
|
2 years ago |
zeripath
|
998fe26051
|
[skip ci] Updated licenses and gitignores
|
2 years ago |
KN4CK3R
|
601d126627
|
[skip ci] Updated licenses and gitignores
|
2 years ago |
KN4CK3R
|
32590db4ca
|
[skip ci] Updated licenses and gitignores
|
2 years ago |
KN4CK3R
|
d33b2d473c
|
[skip ci] Updated licenses and gitignores
|
2 years ago |
wxiaoguang
|
c4742fbea3
|
[skip ci] Updated licenses and gitignores
|
2 years ago |
silverwind
|
0887459ac6
|
[skip ci] Updated licenses and gitignores
|
2 years ago |