Commit graph

14 commits

Author SHA1 Message Date
6543
055c3f2ebf
nits 2023-02-14 03:55:09 +01:00
6543
161739e35d
rm unrelated remove 2023-02-11 03:51:56 +01:00
6543
e3b10685f0 Merge branch 'main' into issue115 2023-01-04 05:39:56 +00:00
jklippel
caeb1a4acb Return a 404 if there is no repository ()
If no repository is found the user expects a 404 status code
instead of a dependency failed status code (as it was before).

Signed-off-by: Jan Klippel <c0d3b3rg@kl1pp3l.de>

Fixes: https://codeberg.org/Codeberg/Community/issues/809

Co-authored-by: Jan Klippel <c0d3b3rg@kl1pp3l.de>
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/141
Reviewed-by: 6543 <6543@obermui.de>
Co-authored-by: jklippel <jklippel@noreply.codeberg.org>
Co-committed-by: jklippel <jklippel@noreply.codeberg.org>
2022-11-22 21:26:10 +00:00
Gusted
f2f943c0d8 Remove unnecessary conversion ()
- Remove unnecessary type conversion.
- Enforce via CI

Co-authored-by: Gusted <williamzijl7@hotmail.com>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/139
Reviewed-by: 6543 <6543@obermui.de>
Co-authored-by: Gusted <gusted@noreply.codeberg.org>
Co-committed-by: Gusted <gusted@noreply.codeberg.org>
2022-11-15 16:15:11 +01:00
Simon Vieille
51954417cd
defined branches are requested before the default branch on the default repo 2022-11-14 15:46:48 +01:00
Simon Vieille
a04ca09d8c
add missing targeted branch 2022-11-13 18:24:53 +01:00
6543
bbf85590c4
Merge branch 'main' into issue115 2022-11-12 21:17:22 +01:00
6543
4565481643
refactor: finish use default const for defaultPagesBranch and defaultPagesRepo 2022-11-12 21:16:11 +01:00
6543
c827a28dd8
defaultPagesBranch 2022-11-12 21:13:13 +01:00
6543
9a48680948
Merge branch 'main' into issue115 2022-11-12 21:12:14 +01:00
6543
aa90356f0a
use a const for defaultPagesRepo 2022-11-12 21:10:16 +01:00
6543
516cb6677c
Merge branch 'main' into issue115 2022-11-12 21:02:19 +01:00
6543
6c63b66ce4 Refactor split long functions ()
we have big functions that handle all stuff ... we should split this into smaler chuncks so we could test them seperate and make clear cuts in what happens where

Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/135
2022-11-12 20:43:44 +01:00