silverwind
11f7fc5621
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
8a0da9ea78
[skip ci] Updated translations via Crowdin
5 years ago
zeripath
671d603684
tidy up go.sum ( #10677 )
...
Results of running `go mod tidy`
Signed-off-by: Andrew Thornton <art27@cantab.net>
5 years ago
James Lakin
a9f4489bbc
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 191a20a7389fe5f6256b0ad6aafd04b9b0e295c5.
* 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
b8551f8532
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
33c5e5e7fa
Prevent panic in stopwatch ( #10670 )
...
Signed-off-by: Andrew Thornton <art27@cantab.net>
5 years ago
GiteaBot
1966f421b3
[skip ci] Updated translations via Crowdin
5 years ago
John Olheiser
de63ac046e
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
b40428a50a
Check for tag, not just new tag ( #10663 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years ago
GiteaBot
4901096842
[skip ci] Updated translations via Crowdin
5 years ago
silverwind
9d3e69e867
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
0c2148c037
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
a5281895c7
Fix bug on pull view when required status check no ci result ( #10648 )
5 years ago
6543
57c7a7aa72
Ensure Update button is enabled even when CI has failed ( #10640 )
...
* ignore pull status
* fix css
* fix css
5 years ago
John Olheiser
4a4fc73ee1
Fix migration ( #10641 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years ago
zeripath
f7a6763c58
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
123d386059
Remove admin/nav.tmpl ( #10633 )
5 years ago
Lunny Xiao
345515a2a5
add changelog for v1.10.5 ( #10628 ) ( #10631 )
...
Co-authored-by: zeripath <art27@cantab.net>
5 years ago
GiteaBot
cf7d4109c9
[skip ci] Updated translations via Crowdin
5 years ago
silverwind
334f09d934
Fix makefile syntax error ( #10622 )
...
Fix error found via checkmake. It was the only worthwhile issue it reported.
5 years ago
John Olheiser
3f1c0841cb
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
80db44267c
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
f422a115f4
Issue writers perms can modify issues ( #10623 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years ago
John Olheiser
f5a20250ae
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
35027305d1
Handle deleted base branch in PR ( #10618 )
...
Signed-off-by: Andrew Thornton <art27@cantab.net>
5 years ago
Antoine GIRARD
ae452d024e
Migration for deleting orphaned dependencies ( #10617 )
...
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
5 years ago
John Olheiser
10081f88ed
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
fb76136aec
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
6a57364dc8
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
6420f17fb6
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
37c3db7be6
Add restricted user filter to LDAP authentication ( #10600 )
...
* Add restricted user filter to LDAP authentification
* Fix unit test cases
5 years ago
guillep2k
be544e8e6a
Versions ( #10597 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years ago
Antoine GIRARD
4e65d2b8ea
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
3d5d21133c
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
afa1e1af16
Fix templates ( #10596 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years ago
zeripath
4a2b76d9c8
Update mergebase in pr checker ( #10586 )
5 years ago
zeripath
0b3a9c4f85
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
0e304bbc42
[skip ci] Updated translations via Crowdin
5 years ago
silverwind
fa6ea60c55
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
aa4a297c16
Rename repo size sorting options ( #10587 )
5 years ago
zeripath
009990b0c0
Remove unnecessary parentheses in template ( #10583 )
...
Fix #10552
Co-authored-by: Lauris BH <lauris@nix.lv>
5 years ago
John Olheiser
0e2217bd2d
Logout POST action ( #10582 )
...
* Change logout to POST
* Update for redirect
Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years ago
techknowlogick
bea497ff96
nextcloud oauth ( #10562 )
...
Fix #7078
5 years ago
zeripath
07f6ae30e4
Change default value of DefaultCommandExecutionTimeout to match cheatsheet ( #10581 )
5 years ago
Lunny Xiao
5abe1c52de
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
22b7507024
[skip ci] Updated translations via Crowdin
5 years ago
silverwind
ac4f952f73
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
5e1438ba92
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
b5ecc82d6e
[skip ci] Updated translations via Crowdin
5 years ago
Lunny Xiao
753c0675c1
Fix migration bug on v96.go ( #10572 )
5 years ago