1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-24 01:22:21 +00:00
forgejo/modules
Earl Warren b47ac73b8a
[F3] Forgejo driver and CLI
user, topic, project, label, milestone, repository, pull_request,
release, asset, comment, reaction, review providers

Signed-off-by: Earl Warren <contact@earl-warren.org>

Preserve file size when creating attachments

Introduced in c6f5029708

repoList.LoadAttributes has a ctx argument now

Rename `repo.GetOwner` to `repo.LoadOwner`

bd66fa586a

upgrade to the latest gof3

(cherry picked from commit c770713656)

[F3] ID remapping logic is in place, remove workaround

(cherry picked from commit d0fee30167)

[F3] it is experimental, do not enable by default

(cherry picked from commit de325b21d0)
(cherry picked from commit 547e7b3c40)
(cherry picked from commit 820df3a56b)
(cherry picked from commit eaba87689b)
(cherry picked from commit 1b86896b3b)
(cherry picked from commit 0046aac1c6)
(cherry picked from commit f14220df8f)
(cherry picked from commit 559b731001)
(cherry picked from commit 801f7d600d)
(cherry picked from commit 6aa76e9bcf)
(cherry picked from commit a8757dcb07)

[F3] promote F3 users to matching OAuth2 users on first sign-in

(cherry picked from commit bd7fef7496)
(cherry picked from commit 07412698e8)
(cherry picked from commit d143e5b2a3)

[F3] upgrade to gof3 50a6e740ac04

Add new methods GetIDString() & SetIDString() & ToFormatInterface()
Change the prototype of the fixture function

(cherry picked from commit d7b263ff8b)
(cherry picked from commit b3eaf2249d)
(cherry picked from commit d492ddd9bb)

[F3] add GetLocalMatchingRemote with a default implementation

(cherry picked from commit 0a22015039)
(cherry picked from commit f1310c38fb)
(cherry picked from commit deb68552f2)

[F3] GetLocalMatchingRemote for user

(cherry picked from commit e73cb837f5)
(cherry picked from commit a24bc0b85e)
(cherry picked from commit 846a522ecc)

[F3] GetAdminUser now has a ctx argument

(cherry picked from commit 37357a92af)
(cherry picked from commit 660bc1673c)
(cherry picked from commit 72d692a767)

[F3] introduce UserTypeF3

To avoid conflicts should UserTypeRemoteUser be used differently by Gitea

(cherry picked from commit 6de2701bb3)

[F3] user.Put: idempotency

(cherry picked from commit 821e38573c)
(cherry picked from commit f7638f5414)

[F3] upgrade to urfave v2

(cherry picked from commit cc3dbdfd1d)

[F3] update gof3

(cherry picked from commit 2eee960751)

[F3] move f3 under forgejo-cli

* simplify the tests by re-using the forgejo-cli helpers to capture
  the output
* unify CmdF3 to be structured in the same way CmdActions is

(cherry picked from commit 4c9fe58b74)

[F3] replace f3 with forgejo-cli f3

(cherry picked from commit 7ba7ceef1b)

[F3] s/ListOptions/Paginator/

[F3] user: add unit tests

[F3] user comparison of F3 managed users is on content

[F3] issue: add unit tests

[F3] gof3 now has one more argument to Put()

[F3] re-use gof3 unit tests for the driver

(cherry picked from commit af7ee6200c)

Conflicts:
	tests/integration/integration_test.go
	because of some code removed in forgejo-development, trivial
	context conflict resolution

[F3] more idempotent tests ()

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/1275
Co-authored-by: Loïc Dachary <loic@dachary.org>
Co-committed-by: Loïc Dachary <loic@dachary.org>

[F3] tests: do SQL update if nothing changes

[F3] tests comment idempotence

[F3] tests milestone idempotence

[F3] tests pull_request idempotence

[F3] tests release idempotence

[F3] tests asset idempotence

[F3] tests project idempotence

[F3] tests review idempotence

(cherry picked from commit 91038bb4e8)
(cherry picked from commit a7d2a65214)
(cherry picked from commit 59a17e5a34)

[F3] sub command of forgejo-cli

(cherry picked from commit 4d098e9b83)

[F3] implement --quiet, --debug, --verbose

(cherry picked from commit 82e2e17b45)

[F3] fix off by one error when importing repositories

(cherry picked from commit 31689b1397)

[F3] upgrade gof3

(cherry picked from commit 87b8cfe5a1)

[F3] set the logger for all drivers

The logger is set for the local Forgejo driver only. Even when --debug
is specified, the other drivers do not display debug
information. Use the gof3 context to set the logger for all of them at
once.

(cherry picked from commit 8aa7de8ba0)

[F3] the closed date of an issue may be nil

(cherry picked from commit 93d3eaf0b5)

[F3] update gof3 to support system users

there now is a workaround to hardcode system users when they are not
supported by the API

(cherry picked from commit 915484daa7)
2023-09-11 18:05:01 +02:00
..
actions [CI] Search .forgejo/workflows first 2023-09-11 15:37:29 +02:00
activitypub move repository deletion to service layer () 2023-09-08 04:51:15 +00:00
analyze Rename code_langauge.go to code_language.go () 2023-08-07 15:00:53 -04:00
assetfs Use Set[Type] instead of map[Type]bool/struct{}. () 2023-08-30 06:55:25 +00:00
auth [SECURITY] default to pbkdf2 with 320,000 iterations 2023-09-11 16:03:11 +02:00
avatar Remove nfnt/resize and oliamb/cutter () 2023-07-20 19:52:42 +08:00
base Replace interface{} with any () 2023-07-04 18:36:08 +00:00
cache improve unit test for caching () 2023-07-27 22:24:40 +02:00
charset Replace interface{} with any () 2023-07-04 18:36:08 +00:00
container Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
context Fix the display of org level badges () 2023-09-06 14:38:14 +08:00
contexttest Avoid double-unescaping of form value () 2023-09-01 12:01:36 +00:00
csv Refactor locale number () 2023-04-17 11:37:23 +08:00
doctor Add fix incorrect can_create_org_repo for org owner team () 2023-08-29 01:11:23 +00:00
emoji Update emoji set to Unicode 15 () 2023-06-29 16:29:48 +00:00
eventsource Less naked returns () 2023-07-07 05:31:56 +00:00
generate Handle base64 decoding correctly to avoid panic () 2023-08-14 10:30:16 +00:00
git Clarify the git command Stdin hanging problem () 2023-09-08 13:20:38 +00:00
gitgraph Add context cache as a request level cache () 2023-02-15 21:37:34 +08:00
graceful Allow the use of alternative net.Listener implementations by downstreams () 2023-07-24 07:18:17 +00:00
hcaptcha Consume hcaptcha and pwn deps () 2023-01-29 09:49:51 -06:00
highlight Upgrade go dependencies () 2023-07-14 11:00:31 +08:00
hostmatcher Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
html Refactor backend SVG package and add tests () 2023-08-05 04:34:59 +00:00
httpcache Less naked returns () 2023-07-07 05:31:56 +00:00
httplib Less naked returns () 2023-07-07 05:31:56 +00:00
indexer [CI] disable meilisearch/elasticsearch test, no server yet in CI 2023-09-11 15:37:29 +02:00
issue/template Replace interface{} with any () 2023-07-04 18:36:08 +00:00
json Replace interface{} with any () 2023-07-04 18:36:08 +00:00
label Make label templates have consistent behavior and priority () 2023-04-10 16:44:02 +08:00
lfs Rewrite logger system () 2023-05-21 22:35:11 +00:00
log Reduce some allocations in type conversion () 2023-08-29 00:43:16 +08:00
markup Make user-content-* consistent with github () 2023-08-09 09:30:31 +00:00
mcaptcha Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
metrics Use a separate admin page to show global stats, remove actions stat () 2023-06-03 22:03:41 +08:00
migration Replace interface{} with any () 2023-07-04 18:36:08 +00:00
nosql Update tool dependencies, lock govulncheck and actionlint () 2023-07-09 11:58:06 +00:00
options Use a general approach to access custom/static/builtin assets () 2023-04-12 18:16:45 +08:00
packages Use docs.gitea.com instead of docs.gitea.io () 2023-08-27 11:59:12 +00:00
paginator Use more specific test methods () 2023-04-22 17:56:27 -04:00
pprof Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
private [CLI] implement forgejo-cli 2023-09-11 15:37:29 +02:00
process Less naked returns () 2023-07-07 05:31:56 +00:00
proxy Use proxy for pull mirror () 2023-02-11 08:39:50 +08:00
proxyprotocol Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
public Serve pre-defined files in "public", add "security.txt", add CORS header for ".well-known" () 2023-07-21 12:14:20 +00:00
queue [CI] disable redis test, no redis server yet in CI 2023-09-11 15:37:29 +02:00
recaptcha Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
references Use correct captured group range when parsing cross-reference () 2023-01-31 10:08:05 +01:00
regexplru Upgrade go dependencies () 2023-07-14 11:00:31 +08:00
repository Fix context cache bug & enable context cache for dashabord commits' authors () 2023-09-11 10:14:01 +00:00
secret Improve decryption failure message () 2023-05-07 19:29:43 +08:00
session Replace interface{} with any () 2023-07-04 18:36:08 +00:00
setting [F3] Forgejo driver and CLI 2023-09-11 18:05:01 +02:00
sitemap Fix sitemap () 2022-12-30 23:31:00 +08:00
ssh restrict certificate type for builtin SSH server () 2023-09-01 13:45:22 +00:00
storage [CI] Forgejo Actions based CI for PR & branches 2023-09-11 15:37:29 +02:00
structs [FEAT] allow setting the update date on issues and comments 2023-09-11 16:41:14 +02:00
svg Refactor backend SVG package and add tests () 2023-08-05 04:34:59 +00:00
sync Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
system Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
templates Replace util.SliceXxx with slices.Xxx () 2023-09-07 09:37:47 +00:00
test Move web/api context related testing function into a separate package () 2023-09-01 11:26:07 +00:00
testlogger Replace interface{} with any () 2023-07-04 18:36:08 +00:00
timeutil Fix incorrect webhook time and use relative-time to display it () 2023-05-03 19:53:43 -04:00
translation Replace interface{} with any () 2023-07-04 18:36:08 +00:00
turnstile Add new captcha: cloudflare turnstile () 2023-02-05 15:29:03 +08:00
typesniffer Detect ogg mime-type as audio or video () 2023-08-15 10:31:25 +08:00
updatechecker Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
upload Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
uri Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
user Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
util Replace util.SliceXxx with slices.Xxx () 2023-09-07 09:37:47 +00:00
validation Check blocklist for emails when adding them to account () 2023-08-30 10:46:49 -05:00
web Update tool dependencies () 2023-08-20 22:59:19 +00:00
webhook New webhook trigger for receiving Pull Request review requests () 2023-05-24 22:06:27 -04:00