eb69c7ec8c
Allow default branch to be inferred on compare page ( #17908 )
...
* Allow default branch to be inferred
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Add test for inferred default branch
Signed-off-by: jolheiser <john.olheiser@gmail.com >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2021-12-06 11:04:07 -06:00
John Olheiser and GitHub
c59afa752d
Allow mocking timeutil ( #17354 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2021-10-18 21:12:26 +01:00
John Olheiser and GitHub
760d61b411
Add specific event type to header ( #17222 )
...
* Add specific event type to header
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Change single to type
2021-10-05 12:12:17 -05:00
John Olheiser and GitHub
648464b504
Add bundle download for repository ( #14538 )
...
* Add bundle download
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Fix fmt
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Fix build tags
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Download specific commit
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2021-08-24 11:47:09 -05:00
622f1e764c
Add better errors for disabled account recovery ( #15117 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
Co-authored-by: Andrew Thornton <art27@cantab.net >
Co-authored-by: 6543 <6543@obermui.de >
2021-06-25 23:16:36 -05:00
John Olheiser and GitHub
2f65c6b2f0
Add err to log ( #15813 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2021-05-10 20:48:23 +01:00
John Olheiser and GitHub
2bd5408e5f
MySQL 5 FAQ ( #15729 )
...
* MySQL 5
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Wording
2021-05-05 05:39:09 +01:00
John Olheiser and GitHub
078df7a392
quick fix ( #15464 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2021-04-14 18:54:54 +01:00
John Olheiser and GitHub
426ebbfc3b
Fix CanCreateRepo check ( #15311 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2021-04-07 09:26:41 +02:00
John Olheiser and GitHub
f1da46622e
Signed-off-by: jolheiser <john.olheiser@gmail.com> ( #14898 )
2021-03-05 21:00:15 +00:00
19fccdc45d
Fix locale init ( #14582 )
...
just log if lang is already loaded since we can not reload it
Co-authored-by: jolheiser <john.olheiser@gmail.com >
Co-authored-by: 6543 <6543@obermui.de >
Co-authored-by: zeripath <art27@cantab.net >
2021-02-05 22:41:45 +01:00
e92552abb4
noop ( #14521 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2021-01-29 23:52:13 +08:00
John Olheiser and GitHub
a33db35b38
Fully qualify cloudron CSP ( #13892 )
...
* Wildcard cloudron
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Just use FQDN
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2020-12-07 16:17:27 -06:00
John Olheiser and GitHub
991ab899ff
Add cloudron to img-src CSP ( #13887 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2020-12-07 10:33:22 -06:00
John Olheiser and GitHub
f0cc29761d
Make sure email recipients can see issue ( #13820 )
...
* Initial pass
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Remove over-op
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2020-12-03 14:25:49 -06:00
e306c292ac
Expose default theme in meta and API ( #13809 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
Co-authored-by: 6543 <6543@obermui.de >
2020-12-03 13:53:21 +01:00
979fbe086c
Increment skip to avoid infini-loop ( #13703 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
Co-authored-by: Lauris BH <lauris@nix.lv >
2020-11-27 22:00:52 +02:00
John Olheiser and GitHub
172eca1cd3
Add docs command ( #13429 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2020-11-07 08:32:57 +08:00
John Olheiser and GitHub
7c68ac8f7d
Tags cleanup ( #13428 )
...
* Tags cleanup
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* fmt
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2020-11-05 08:20:42 -06:00
b5e974c8a5
Delete tag API ( #13358 )
...
* Delete tag API
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Wording
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Add conflict response and fix API tests
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Fix other test
Signed-off-by: jolheiser <john.olheiser@gmail.com >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2020-10-30 20:56:34 -05:00
John Olheiser and GitHub
1d6b565de4
Refactor docs ( #13275 )
...
* First pass
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* More changes
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Redirects
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2020-10-23 11:59:45 -04:00
John Olheiser and GitHub
21d621301e
Remove PAM from auth dropdown when unavailable ( #13276 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2020-10-23 11:10:29 +01:00
72636fd664
hCaptcha Support ( #12594 )
...
* Initial work on hCaptcha
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Use module
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Format
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* At least return and debug log a captcha error
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Pass context to hCaptcha
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Add context to recaptcha
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* fix lint
Signed-off-by: Andrew Thornton <art27@cantab.net >
* Finish hcaptcha
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Update example config
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Apply error fix for recaptcha
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Change recaptcha ChallengeTS to string
Signed-off-by: jolheiser <john.olheiser@gmail.com >
Co-authored-by: Andrew Thornton <art27@cantab.net >
2020-10-02 23:37:53 -04:00
b428f9feb5
Changelog 1.12.5 ( #13002 ) ( #13003 )
...
* Changelog 1.12.5
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Update CHANGELOG.md
* Update CHANGELOG.md
Co-authored-by: techknowlogick <matti@mdranta.net >
* Apply suggestions from code review
Co-authored-by: techknowlogick <matti@mdranta.net >
Co-authored-by: techknowlogick <matti@mdranta.net >
Co-authored-by: techknowlogick <matti@mdranta.net >
2020-10-01 14:47:54 -04:00
ec6a35aeb1
Hopefully support GH enterprise ( #12863 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2020-09-21 10:36:51 -04:00
d9085fe176
Fix anonymous GL migration ( #12862 )
...
* Fix anonymous GL migration
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Rely on password instead
Signed-off-by: jolheiser <john.olheiser@gmail.com >
Co-authored-by: zeripath <art27@cantab.net >
2020-09-15 15:32:14 -04:00
b2bda11595
Fix markdown meta parsing ( #12817 )
...
* Fix meta parsing and add minimal test
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Add license
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Require first separator and add more tests
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Make fmt
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Go lets this work gracefully 🙏
Signed-off-by: jolheiser <john.olheiser@gmail.com >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2020-09-12 21:48:47 -04:00
26c4a049da
Issue templates directory ( #11450 )
...
* Issue templates
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Add some comments, appease the linter
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Add docs and re-use dir candidates
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Add default labels to issue templates
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Generate swagger
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Suggested changes
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Update issue.go
* Suggestions
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Extract metadata from legacy if possible
Signed-off-by: jolheiser <john.olheiser@gmail.com >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
2020-09-11 10:48:39 -04:00
c3e8c9441a
Add check for LDAP group membership ( #10869 )
...
This is a port of gogs/gogs#4398
The only changes made by myself are:
Add locales
Add some JS to the UI
Otherwise all code credit goes to @aboron
Resolves #10829
Signed-off-by: jolheiser <john.olheiser@gmail.com >
Co-authored-by: zeripath <art27@cantab.net >
2020-09-10 16:30:07 +01:00
c6e4bc53aa
Check passwords against HaveIBeenPwned ( #12716 )
...
* Implement pwn
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Update module
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Apply suggestions mrsdizzie
Co-authored-by: mrsdizzie <info@mrsdizzie.com >
* Add link to HIBP
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Add more details to admin command
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Add context to pwn
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Consistency and making some noise ;)
Signed-off-by: jolheiser <john.olheiser@gmail.com >
Co-authored-by: mrsdizzie <info@mrsdizzie.com >
Co-authored-by: zeripath <art27@cantab.net >
2020-09-08 17:06:39 -05:00
211321fb93
Git migration UX ( #12619 )
...
* Initial work
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Implementation
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Fix gitlab and token cloning
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Imports and JS
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Fix test
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Linting
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Generate swagger
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Move mirror toggle and rename options
Signed-off-by: jolheiser <john.olheiser@gmail.com >
Co-authored-by: Lauris BH <lauris@nix.lv >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2020-08-28 09:36:37 +08:00
John Olheiser and GitHub
b611ae1908
Mark Cache with ini tag ( #12605 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2020-08-26 02:04:18 +03:00
43a397ce9a
Initial support for push options ( #12169 )
...
* Initial support for push options
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Fix misspelling 🤦
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Fix formatting after conflict resolution
* defer close git repo
* According the GitLab documentation, git >= 2.10
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Words are hard. Thanks @mrsdizzie 😅
Co-authored-by: mrsdizzie <info@mrsdizzie.com >
* Only update if there are push options
Signed-off-by: jolheiser <john.olheiser@gmail.com >
Co-authored-by: mrsdizzie <info@mrsdizzie.com >
2020-08-23 17:02:35 +01:00
John Olheiser and GitHub
aaff47ad75
Fix reply octicon ( #11821 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2020-06-09 10:13:00 -05:00
ac07418011
Add compare link to releases ( #11752 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
Co-authored-by: Lauris BH <lauris@nix.lv >
2020-06-05 14:44:54 -04:00
a6fd2f23f7
Allow site admin to disable mirrors ( #11740 )
...
* Allow site admin to disable mirrors
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* No need to run through Safe
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Clarify only disabling NEW mirrors
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Apply suggestions from @guillep2k
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com >
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com >
2020-06-02 21:21:38 -04:00
c8f0613741
Add localization docs ( #11411 )
...
* Add localization docs
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Clarify bleeding edge vs release
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Capitalize Crowdin
Signed-off-by: jolheiser <john.olheiser@gmail.com >
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
2020-05-14 17:33:52 -04:00
John Olheiser and GitHub
41be230867
Add awesome-gitea reference on install from package docs ( #11405 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2020-05-14 01:58:49 +03:00
0ba610011b
Change install description ( #11395 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: Lauris BH <lauris@nix.lv >
2020-05-13 12:08:44 +03:00
4f597b1866
Add single release page and latest redirect ( #11102 )
...
* Add single release and latest release routes
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Update API and move latest search to models
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Fix swagger
Signed-off-by: jolheiser <john.olheiser@gmail.com >
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com >
2020-04-18 11:47:15 -03:00
John Olheiser and GitHub
4ec7a659ce
Add git hook tooltip ( #11030 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2020-04-09 18:15:09 -05:00
John Olheiser and GitHub
1648bf2b60
Turn off go modules for xgo and gxz ( #10963 )
...
* Turn off go modules for xgo and gxz
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Add test release for PR
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Try with go modules off
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Revert Makefile, force a release test
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Turn on GOPROXY for release
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* CI
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* CI
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Final commit
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2020-04-06 12:48:55 +08:00
John Olheiser and GitHub
baadb51445
Add gitea-vet ( #10948 )
...
* Add copyright
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Add gitea-vet and fix non-compliance
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Combine tools.go into build.go and clean up
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Remove extra GO111MODULE=on
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2020-04-05 07:20:50 +01:00
John Olheiser and GitHub
36d9237e60
Add accordion to release list and compact non-latest ( #10910 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2020-03-31 17:39:54 -05:00
John Olheiser and GitHub
3f0cb8b33a
Remove test from installation directions ( #10873 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2020-03-29 11:07:40 +01:00
John Olheiser and GitHub
ad6f2323b7
Fix milestone template ( #10824 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2020-03-25 18:08:00 +01:00
John Olheiser and GitHub
7225453d5f
Update Gitea version in docs ( #10772 )
2020-03-19 16:05:19 -04:00
John Olheiser and GitHub
c7f3d1627f
Prevent default for linkAction ( #10742 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2020-03-16 16:13:41 -05:00
984b85c1a7
Remove old vendored dropzone from serviceworker ( #10703 )
...
* Remove dropzone from serviceworker
* Remove CSS as well
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2020-03-11 08:11:19 +00:00
John Olheiser and GitHub
de63ac046e
Make PR message on pushes configurable ( #10664 )
...
* Make PR message on pushes configurable
* Make fmt
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2020-03-08 08:34:38 -05:00
John Olheiser and GitHub
b40428a50a
Check for tag, not just new tag ( #10663 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2020-03-08 13:27:11 +08:00
John Olheiser and GitHub
4a4fc73ee1
Fix migration ( #10641 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2020-03-06 17:43:37 +02:00
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 >
2020-03-06 07:10:48 +02:00
John Olheiser and GitHub
f422a115f4
Issue writers perms can modify issues ( #10623 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2020-03-06 09:57:18 +08:00
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 >
2020-03-05 16:36:22 -06:00
John Olheiser and GitHub
10081f88ed
Add FAQ for markdown ( #10611 )
...
* Add FAQ for markdown
* Expand explanation @guillep2k
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2020-03-05 09:05:18 -06:00
John Olheiser and GitHub
afa1e1af16
Fix templates ( #10596 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2020-03-04 08:56:53 +02:00
John Olheiser and GitHub
0e2217bd2d
Logout POST action ( #10582 )
...
* Change logout to POST
* Update for redirect
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2020-03-02 22:50:31 -06:00
John Olheiser and GitHub
15fbf509d3
Org action fixes and form cleanup ( #10512 )
...
* More org fixes
* Move form action query to inputs
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2020-02-27 16:00:13 -06:00
John Olheiser and GitHub
78585b1cd7
Fix double PR notification from API ( #10482 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2020-02-26 12:12:34 -06:00
John Olheiser and GitHub
bcd16cec63
Fix admin notices ( #10480 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2020-02-26 10:25:54 -06:00
John Olheiser and GitHub
e5944a9521
Change admin dashboard to POST ( #10465 )
...
* Add form and convert to POST
* Redirect for flash
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2020-02-25 16:54:13 -06:00
c161bb013e
Change action GETs to POST ( #10462 )
...
* Change action GETs to POST
* submite = submit + smite
* No more # href
* Fix test
* Match other tests
* Explicit csrf
Signed-off-by: jolheiser <john.olheiser@gmail.com >
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com >
2020-02-25 14:28:47 -06:00
f4370639be
Fix profile page CSS ( #10406 )
...
* Fix profile page
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Remove redundant CSS
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Fix .username and change em to rem
Signed-off-by: jolheiser <john.olheiser@gmail.com >
Co-authored-by: Lauris BH <lauris@nix.lv >
2020-02-22 16:06:07 +02:00
ac18c3f6f2
Fixes ( #10386 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
Co-authored-by: techknowlogick <matti@mdranta.net >
2020-02-20 17:44:13 -06:00
John Olheiser and GitHub
dc822d5291
Re-order GPG signing docs and fix code blocks ( #10349 )
...
* Move chunk and format
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* word
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2020-02-19 02:23:45 +01:00