gapodo
93d8ed8d94
fix yaml indentation
ci/woodpecker/push/compliance Pipeline is pending
Details
ci/woodpecker/push/docker-linux-amd64-release-version Pipeline is pending
Details
ci/woodpecker/push/release-version Pipeline is pending
Details
ci/woodpecker/push/testing-amd64 Pipeline is pending
Details
ci/woodpecker/tag/compliance Pipeline failed
Details
ci/woodpecker/tag/testing-amd64 unknown status
Details
ci/woodpecker/tag/release-version unknown status
Details
ci/woodpecker/tag/docker-linux-amd64-release-version unknown status
Details
2022-12-03 15:42:21 +01:00
gapodo
03414dd83d
enable sqlite testing
2022-12-03 15:40:57 +01:00
Loïc Dachary
cb32ffbb52
[DOCS] document the forgejo-federation feature branch
...
Also group branches into categories as the F3 branch is motivated
because it contributes to federation.
Signed-off-by: Loïc Dachary <loic@dachary.org>
2022-12-03 12:55:11 +01:00
oliverpool
27b61fe918
split contributing documentation based on audience
2022-12-03 12:55:11 +01:00
Loïc Dachary
d085ae0f40
[DOCS] complete CONTRIBUTING.md
...
Signed-off-by: Loïc Dachary <loic@dachary.org>
2022-12-03 12:55:11 +01:00
Loïc Dachary
c8c8d56353
[DOCS] Forgejo is inspired by Forĝejo not identical
...
Fixes: https://codeberg.org/forgejo/forgejo/issues/55
Signed-off-by: Loïc Dachary <loic@dachary.org>
2022-12-03 12:55:11 +01:00
Loïc Dachary
62837df3e0
[DOCS] the feature-ci branch has commits related to Woodpecker CI
...
Fixes: https://codeberg.org/forgejo/forgejo/issues/32
Signed-off-by: Loïc Dachary <loic@dachary.org>
2022-12-03 12:55:11 +01:00
Loïc Dachary
843c535fe2
[DOCS] document the {v1.18/,}forgejo-{ci,development} branches
...
Fixes: https://codeberg.org/forgejo/forgejo/issues/32
Signed-off-by: Loïc Dachary <loic@dachary.org>
2022-12-03 12:55:11 +01:00
Loïc Dachary
54ae168923
[DOCS] define the Forgejo release number convention
...
Fixes: https://codeberg.org/forgejo/forgejo/issues/43
Signed-off-by: Loïc Dachary <loic@dachary.org>
2022-12-03 12:55:10 +01:00
Caesar Schinas
7c54736682
Add Matrix and Fedi links to Readme
2022-12-03 12:55:10 +01:00
Loïc Dachary
7f125f3f19
CONTRIBUTING.md: merge WORKFLOW.md & RELEASE.md
...
Having the development documentation in a single file may not be the best structure but it is how Gitea does it and there is value in keeping something familiar to existing contributors.
Signed-off-by: Loïc Dachary <loic@dachary.org>
2022-12-03 12:55:08 +01:00
Otto
b4e1e6a84f
Update README as per !21
2022-12-03 12:54:30 +01:00
Otto
d9ca3f5a79
README draft with skeleton
2022-12-03 12:54:30 +01:00
Loïc Dachary
784b4177a8
RELEASE.md: the release GPG key email is now release@forgejo.org
...
Signed-off-by: Loïc Dachary <loic@dachary.org>
2022-12-03 12:54:30 +01:00
Loïc Dachary
da0340dc72
RELEASE.md: document the release process
...
Signed-off-by: Loïc Dachary <loic@dachary.org>
2022-12-03 12:54:30 +01:00
Loïc Dachary
d0314210d5
RELEASE.md: add email of the release-team user
...
Fixes: https://codeberg.org/forgejo/forgejo/issues/6
Signed-off-by: Loïc Dachary <loic@dachary.org>
2022-12-03 12:54:30 +01:00
Caesar Schinas
7513356989
Fix incorrect GPG key in issue template
2022-12-03 12:54:30 +01:00
Caesar Schinas
a2154a4b1a
Update issue templates for Forgejo
2022-12-03 12:54:29 +01:00
Gusted
ad40297f31
Add `--expert` option for subkey creation
...
- If this isn't specified, the ECC option wouldn't be shown.
2022-12-03 12:54:29 +01:00
Loïc Dachary
d90faccf78
delete Gitea specific files that need rewriting for Forgejo
...
Although it would be possible to modify these files, it would create
conflicts when rebasing. Instead, this commit removes them entirely
and another commit can start from scratch, borrowing content from the
original files.
The drawback of this approach is that some content updates from Gitea
that also need updating in Forgejo will have to be copy/pasted
instead of being merged.
Signed-off-by: Loïc Dachary <loic@dachary.org>
2022-12-03 12:54:22 +01:00
Loïc Dachary
2bce6ab3d9
Release management documentation
...
Fixes: https://codeberg.org/Forgejo/forgejo/issues/4
Signed-off-by: Loïc Dachary <loic@dachary.org>
2022-12-03 12:53:33 +01:00
Loïc Dachary
e0c205082d
workaround: deactivate test-sqlite because it is too slow
...
Refs: https://codeberg.org/forgejo/forgejo/issues/31
Signed-off-by: Loïc Dachary <loic@dachary.org>
2022-12-03 10:54:04 +01:00
Loïc Dachary
9a69ea5d2d
workaround: Dockerfile for codeberg.org corrupted container images
...
https://codeberg.org/forgejo/forgejo/issues/26
https://codeberg.org/Codeberg/Community/issues/800
sed -i -e 's|^FROM.*golang.*|FROM codeberg.org/forgejo/golang:1.19-alpine3.17 AS build-env|' Dockerfile
sed -i -e 's|^FROM.*alpine:.*|FROM codeberg.org/forgejo/alpine:3.17.0|' Dockerfile
Signed-off-by: Loïc Dachary <loic@dachary.org>
2022-12-03 10:53:49 +01:00
Loïc Dachary
7fb4e9c4de
implementation: forgejo container images
...
Signed-off-by: Loïc Dachary <loic@dachary.org>
2022-12-03 10:51:39 +01:00
Loïc Dachary
41fabe9784
implementation: Woodpecker based CI
...
Signed-off-by: Loïc Dachary <loic@dachary.org>
2022-12-03 10:49:54 +01:00
Loïc Dachary
19d76aa497
implementation: publish forgejo- binaries instead of gitea-
...
Signed-off-by: Loïc Dachary <loic@dachary.org>
2022-12-03 10:49:54 +01:00
Loïc Dachary
543535ac0f
upstream: remove unstable test
...
Fixes: https://codeberg.org/forgejo/forgejo/issues/30
Signed-off-by: Loïc Dachary <loic@dachary.org>
2022-12-03 10:49:51 +01:00
Lunny Xiao
0a7d3ff786
refactor some functions to support ctx as first parameter ( #21878 )
...
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
Co-authored-by: Lauris BH <lauris@nix.lv>
2022-12-03 10:48:26 +08:00
Chongyi Zheng
8698458f48
Remove deprecated packages & staticcheck fixes ( #22012 )
...
`ioutil` is deprecated and should use `io` instead
2022-12-02 17:06:23 -05:00
xtexChooser
21bcb92926
Add pnpm to packages/overview ( #22008 )
...
[`pnpm`](https://pnpm.io/ ) is a "fast, disk space efficient" node
package manager.
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-12-02 11:23:47 -05:00
flynnnnnnnnnn
350bc83d00
Update to Alpine 3.17 ( #21904 )
...
This pull request is for updating the base docker images to build with
the latest version of Alpine.
2022-12-02 11:23:26 -05:00
Jason Song
f59a74852b
Update gitea-vet to check FSFE REUSE ( #22004 )
...
Related to:
- #21840
- https://gitea.com/gitea/gitea-vet/pulls/21
What it looks like when it's working:
https://drone.gitea.io/go-gitea/gitea/64040/1/5
All available SPDX license identifiers: [SPDX License
List](https://spdx.org/licenses/ ).
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-12-02 22:14:57 +08:00
silverwind
d64063277d
Multiple improvements for comment edit diff ( #21990 )
...
- Use explicit avatar size so when JS copies the HTML, the size gets
copied with it
- Replace icon font use with SVG
- Improve styling and diff rendering
- Sort lists in `svg.js`
Fixes: https://github.com/go-gitea/gitea/issues/21924
<img width="933" alt="Screenshot 2022-11-30 at 17 52 17"
src="https://user-images.githubusercontent.com/115237/204859608-f322a8f8-7b91-45e4-87c0-82694e574115.png ">
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2022-12-02 11:42:34 +02:00
Lunny Xiao
df676a47d0
Remove session in api tests ( #21984 )
...
It's no meaning to request an API route with session.
2022-12-01 22:39:42 -05:00
Mark Ormesher
665d02efaf
Remove duplicate "Actions" label in mobile view ( #21974 )
...
Closes #21973 .
The "Actions" button on the commit view page is labelled twice in mobile
view. No other buttons on the page have a `mobile-only` extra label, so
this PR removes it.
Before:
![before](https://user-images.githubusercontent.com/6496999/204540002-75baa08a-6c06-4b39-847b-34272e09d71e.PNG )
After:
![after](https://user-images.githubusercontent.com/6496999/204539991-a0607765-d5e2-4b1a-84c9-a3e16cbc674e.PNG )
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-12-01 22:39:19 -05:00
Lunny Xiao
f7ade6de7c
Fix generate index failure possibility on postgres ( #21998 )
...
@wxiaoguang Please review
Co-authored-by: silverwind <me@silverwind.io>
2022-12-02 11:15:36 +08:00
zeripath
64973cf18f
Use path not filepath in template filenames ( #21993 )
...
Paths in git are always separated by `/` not `\` - therefore we should
`path` and not `filepath`
Fix #21987
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
2022-12-02 07:56:51 +08:00
silverwind
f0bd219a5e
Update chroma to v2.4.0 ( #22000 )
...
Did a few cursory tests, seems to work well.
2022-12-01 16:44:38 -05:00
Jason Song
f9cbf5a1bc
Util type to parse ref name ( #21969 )
...
Provide a new type to make it easier to parse a ref name.
Actually, it's picked up from #21937 , to make the origin PR lighter.
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-12-01 19:56:04 +08:00
Jason Song
4e5d4d0073
Skip initing LFS storage if disabled ( #21996 )
...
A complement to #21985 .
I overlooked it because the name of the switch is `StartServer`, not
`Enabled`. I believe the weird name is a legacy, but renaming is out of
scope.
2022-12-01 11:02:04 +02:00
Lunny Xiao
b2c4870481
Fix parallel creating commit status bug with tests ( #21911 )
...
This PR is a follow up of #21469
Co-authored-by: Lauris BH <lauris@nix.lv>
2022-12-01 00:41:49 +08:00
Jason Song
67881ae99a
Skip initing disabled storages ( #21985 )
...
If `Attachment` or `Packages` are disabled, we don't have to init the
storages for them.
2022-11-30 21:39:02 +08:00
花墨
7020c4afb7
Fix leaving organization bug on user settings -> orgs ( #21983 )
...
Fix #21772
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2022-11-30 17:00:00 +08:00
luzpaz
fdfd77f478
Fix typos ( #21979 )
...
Found via codespell
2022-11-29 18:41:29 -06:00
Saswat Padhi
715cf46dc4
Normalize `AppURL` according to RFC 3986 ( #21950 )
...
Fixes #21865 .
Scheme-based normalization ([RFC 3986, section
6.2.3](https://www.rfc-editor.org/rfc/rfc3986#section-6.2.3 )) was
already implemented, but only for `defaultAppURL`.
This PR implements the same for `AppURL`.
Signed-off-by: Saswat Padhi <saswatpadhi@protonmail.com>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
2022-11-29 15:30:47 +08:00
Jason Song
f047ee0a40
Use random bytes to generate access token ( #21959 )
2022-11-28 23:37:42 +08:00
Jason Song
9607750b5e
Replace fmt.Sprintf with hex.EncodeToString ( #21960 )
...
`hex.EncodeToString` has better performance than `fmt.Sprintf("%x",
[]byte)`, we should use it as much as possible.
I'm not an extreme fan of performance, so I think there are some
exceptions:
- `fmt.Sprintf("%x", func(...)[N]byte())`
- We can't slice the function return value directly, and it's not worth
adding lines.
```diff
func A()[20]byte { ... }
- a := fmt.Sprintf("%x", A())
- a := hex.EncodeToString(A()[:]) // invalid
+ tmp := A()
+ a := hex.EncodeToString(tmp[:])
```
- `fmt.Sprintf("%X", []byte)`
- `strings.ToUpper(hex.EncodeToString(bytes))` has even worse
performance.
2022-11-28 11:19:18 +00:00
flynnnnnnnnnn
e81ccc406b
Implement FSFE REUSE for golang files ( #21840 )
...
Change all license headers to comply with REUSE specification.
Fix #16132
Co-authored-by: flynnnnnnnnnn <flynnnnnnnnnn@github>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
2022-11-27 18:20:29 +00:00
zeripath
f6fd501841
Correct the fallbacks for mailer configuration ( #21945 )
...
Unfortunately the fallback configuration code for [mailer] that were
added in #18982 are incorrect. When you read a value from an ini section
that key is added. This leads to a failure of the fallback mechanism.
Further there is also a spelling mistake in the startTLS configuration.
This PR restructures the mailer code to first map the deprecated
settings on to the new ones - and then use ini.MapTo to map those on to
the struct with additional validation as necessary.
Ref #21744
Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-11-27 10:08:40 +00:00
KN4CK3R
32590db4ca
[skip ci] Updated licenses and gitignores
2022-11-27 00:19:33 +00:00