silverwind
3ecaacce26
Use whitelist to find go files, run find only once ( #10594 )
- Use a whitelist-based approach to find *.go files so we can use
standard find syntax. Also included is a change that files no
longer pass a leading './' which should help performance further.
- Instead of running `find` multiple times in make because of the
lazy evaluation, run it only once and add the bindata files when
the bindata tag is present
This is another huge speedup on my machine of around 2000%.
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
5 years ago
GiteaBot
6fbcf82aaa
[skip ci] Updated translations via Crowdin
5 years ago
zeripath
9813998f2d
tidy up go.sum ( #10677 )
Results of running `go mod tidy`
Signed-off-by: Andrew Thornton <art27@cantab.net>
5 years ago
James Lakin
16f96e2abc
System-wide webhooks ( #10546 )
* Create system webhook column (and migration)
* Create system webhook DB methods
Based on the default webhook ones
* Modify router to handle system webhooks and default ones
* Remove old unused admin nav template
* Adjust orgRepoCtx to differentiate system and default webhook URLs
* Assign IsSystemWebhook when creating webhooks
* Correctly use booleans for IsSystemWebhook
* Use system webhooks when preparing webhooks for payload
* Add UI and locale changes
* Use router params to differentiate admin hook pages
* Fix deleting admin webhooks and rename method
* Add clarity to webhook docs
* Revert "Remove old unused admin nav template"
This reverts commit 191a20a738
.
* Rename WebHooksNewPost to GiteaHooksNewPost for clarity
* Reintroduce blank line lost during merge conflict
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
5 years ago
Alexander Scheel
95182d5a00
Fix task-list checkbox styling ( #10668 )
* Fix task-list checkbox styling
The pandoc renderer will append the class "task-list" to the ul element
wrapping a li with one or more check-boxes. This allows us to select for
them, removing their list-style-type property. However, goldmark and the
gfm spec doesn't specify the "task-list" class name, so we can't use
that to fix the issue there.
Signed-off-by: Alexander Scheel <alexander.m.scheel@gmail.com>
* Update to goldmark v1.1.25
This version adds the missing space after a checkbox.
Resolves : #9656
Signed-off-by: Alexander Scheel <alexander.m.scheel@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
5 years ago
zeripath
697f4ac398
Prevent panic in stopwatch ( #10670 )
Signed-off-by: Andrew Thornton <art27@cantab.net>
5 years ago
GiteaBot
c2e5f799e9
[skip ci] Updated translations via Crowdin
5 years ago
John Olheiser
8fc7a9396d
Make PR message on pushes configurable ( #10664 )
* Make PR message on pushes configurable
* Make fmt
Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years ago
John Olheiser
68f056e081
Check for tag, not just new tag ( #10663 )
Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years ago
GiteaBot
d5e234d07d
[skip ci] Updated translations via Crowdin
5 years ago
silverwind
11e618c199
Move dropzone.js to npm/webpack ( #10645 )
- unvendor dropzone and upgrade it from 4.2.0 to 5.7.0
- make `csrf` available on window.config
5 years ago
silverwind
3b93b7ce65
Workaround fomantic build issue ( #10655 )
This blows up the fomantic CSS by around 500kB, but I see no other way.
Ref: https://github.com/go-gitea/gitea/issues/10653
5 years ago
Lunny Xiao
1f09802d8c
Fix bug on pull view when required status check no ci result ( #10648 )
5 years ago
6543
d433cca866
Ensure Update button is enabled even when CI has failed ( #10640 )
* ignore pull status
* fix css
* fix css
5 years ago
John Olheiser
1f01f3927b
Fix migration ( #10641 )
Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years ago
zeripath
019e9590bd
Changelog for v1.11.2 ( #10627 ) ( #10634 )
Forward port Changelog for v1.11.2 (#10627 )
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: 6543 <6543@obermui.de>
5 years ago
James Lakin
859730877e
Remove admin/nav.tmpl ( #10633 )
5 years ago
Lunny Xiao
bbd02c694a
add changelog for v1.10.5 ( #10628 ) ( #10631 )
Co-authored-by: zeripath <art27@cantab.net>
5 years ago
GiteaBot
f3233346b3
[skip ci] Updated translations via Crowdin
5 years ago
silverwind
e2a37484ae
Fix makefile syntax error ( #10622 )
Fix error found via checkmake. It was the only worthwhile issue it reported.
5 years ago
John Olheiser
ffc33714dc
Granular webhook events ( #9626 )
* Initial work
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add PR reviews and API coverage
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Split up events
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add migration and locale
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Format
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Revert IsPull
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix comments
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix tests
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix PR reviews
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix issue_comment
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Make fmt
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Migrations
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Backwards compatible API
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix feishu
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Move session commit
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
5 years ago
zeripath
030a54b319
Add Approval Counts to pulls list ( #10238 )
* Add Approval Counts to pulls list
Add simple approvals counts to pulls lists
* Remove non-official counts
* Add PR features to milestone_issues.tmpl
5 years ago
John Olheiser
c6f9bd8435
Issue writers perms can modify issues ( #10623 )
Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years ago
John Olheiser
8163d21d3c
Add node version variable to docs ( #10620 )
Also adjusted other version mentions so go version is always mentioned
as major.minor and node only as major.
Co-authored-by: silverwind <me@silverwind.io>
5 years ago
zeripath
75c3227dd9
Handle deleted base branch in PR ( #10618 )
Signed-off-by: Andrew Thornton <art27@cantab.net>
5 years ago
Antoine GIRARD
988c577795
Migration for deleting orphaned dependencies ( #10617 )
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
5 years ago
John Olheiser
d7188ecdb8
Add FAQ for markdown ( #10611 )
* Add FAQ for markdown
* Expand explanation @guillep2k
Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years ago
Lauris BH
b19ea4f944
Add notice for awesome-gitea ( #10612 )
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
5 years ago
Lauris BH
5d67cccfd3
Delete dependencies when deleting a repository ( #10608 )
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
5 years ago
Lauris BH
7e94445e05
Add migration to fix the old broken merge-bases ( #10604 )
* Add migration
* Fix migration
* Update models/migrations/v128.go
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
5 years ago
Lauris BH
0486b6fe45
Add restricted user filter to LDAP authentication ( #10600 )
* Add restricted user filter to LDAP authentification
* Fix unit test cases
5 years ago
guillep2k
e5d274694c
Versions ( #10597 )
Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years ago
Antoine GIRARD
e8d407b761
Ensure executable bit is kept on the web editor ( #10607 )
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
5 years ago
Lauris BH
8609599ee4
OAuth2: add Yandex provider ( #8335 ) ( #10564 )
* OAuth2: add Yandex provider (#8335 )
* remove changes from locale ru-RU
* fmt modules/auth/oauth2/oauth2.go
Co-Authored-By: 6543 <6543@obermui.de>
* fix fmt
* Update templates/admin/auth/new.tmpl
* fix fmt
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
5 years ago
John Olheiser
57b8b04bcb
Fix templates ( #10596 )
Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years ago
zeripath
cb54f6dc8a
Update mergebase in pr checker ( #10586 )
5 years ago
zeripath
7121cc0b85
Fix LFS max file size enforcement ( #10593 )
Unfortunately the batch handler also needs to enforce max file size.
Enforce max file size in batch handler
5 years ago
GiteaBot
844bb7dbd7
[skip ci] Updated translations via Crowdin
5 years ago
silverwind
10fde19198
Frontend build improvements, fix Fomantic build ( #10576 )
- add package-lock.json to webpack/fomantic prereqs making them always rebuild when dependencies change.
- remove FOMANTIC_EVIDENCE. It seemed better to just track a few output files instead.
- delete fomantic output files before build to prevent possible bugs in fomantic's build.
- resolve WEBPACK_SOURCES only once for performance
- reorder variables for clarity
- use clean-all in Dockerfile
- detect busybox for find syntax
Fixes: https://github.com/go-gitea/gitea/issues/10569
Fixes: https://github.com/go-gitea/gitea/issues/10565
Fixes: https://github.com/go-gitea/gitea/issues/10570
Fixes: https://github.com/go-gitea/gitea/issues/10568
5 years ago
Felix W. Dekker
d9be3a11ff
Rename repo size sorting options ( #10587 )
5 years ago
zeripath
3d4d6ce030
Remove unnecessary parentheses in template ( #10583 )
Fix #10552
Co-authored-by: Lauris BH <lauris@nix.lv>
5 years ago
John Olheiser
bc3c71aee1
Logout POST action ( #10582 )
* Change logout to POST
* Update for redirect
Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years ago
techknowlogick
b1bdd4462e
nextcloud oauth ( #10562 )
Fix #7078
5 years ago
zeripath
e81c66a53b
Change default value of DefaultCommandExecutionTimeout to match cheatsheet ( #10581 )
5 years ago
Lunny Xiao
e16aa269a1
Display pull request head branch even the branch deleted or repository deleted ( #10413 )
* Display pull request head branch even the branch deleted or repository deleted
* Merge getHeadRepo/loadHeadRepo and getBaseRepo/loadBaseRepo on pull and fill repo when pr.Issue.Repo is available
* retrieve sha from pull head when pull request branch deleted and fix tests
* Fix test
* Ensure MustHeadRepoName returns empty string if no head repo
Co-authored-by: zeripath <art27@cantab.net>
5 years ago
GiteaBot
c889694165
[skip ci] Updated translations via Crowdin
5 years ago
silverwind
1fc7b52f24
Fix make find command ( #10580 )
Continuation of https://github.com/go-gitea/gitea/pull/10577
This version also includes an additional fix for Darwin and FreeBSD
which do not accept the `-regextype` option, but only `-E` and the
argument order is specifically required like this for `-E` to work.
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
5 years ago
guillep2k
3756c986cf
Admin page for managing user e-mail activation ( #10557 )
* Implement mail activation admin panel
* Add export comments
* Fix another export comment
* again...
* And again!
* Apply suggestions by @lunny
* Add UI for user activated emails
* Make new activation UI work
* Fix lint
* Prevent admin from self-deactivate; add modal
Co-authored-by: zeripath <art27@cantab.net>
5 years ago
GiteaBot
b8df2b1e50
[skip ci] Updated translations via Crowdin
5 years ago
Lunny Xiao
0dd29474c5
Fix migration bug on v96.go ( #10572 )
5 years ago