woodpecker/server/forge
Alconety 07479dd645
Retrieve all user repo perms with a single API call (#3211)
This pull request addresses the issue https://github.com/woodpecker-ci/woodpecker/issues/3210.

Ideally, the Bitbucket API should include repository permissions when
utilizing the 'get all repositories' endpoint. However, as it currently
does not provide this information, a viable solution is to fetch all
permissions for every repository and then employ a dictionary to
associate each repository with its respective permissions.

Without implementing this fix, logging in becomes problematic for users
with access to a substantial number of repositories (300+), as the
process takes over 2 minutes to complete.

---------

Co-authored-by: Alberto Alcón <albertoalcon@bit2me.com>
2024-01-19 04:15:47 +01:00
..
bitbucket Retrieve all user repo perms with a single API call (#3211) 2024-01-19 04:15:47 +01:00
common Use assert for test (#3201) 2024-01-14 19:33:58 +01:00
gitea Enable golangci linter forcetypeassert (#3168) 2024-01-12 02:01:02 +01:00
github fix(deps): update module github.com/google/go-github/v57 to v58 (#3187) 2024-01-13 08:13:22 +01:00
gitlab Use assert for test (#3201) 2024-01-14 19:33:58 +01:00
mocks Make PipelineConfig unique again (#3215) 2024-01-18 23:50:29 +02:00
types Enable nolintlint (#3158) 2024-01-10 12:11:18 +01:00
configFetcher.go Lowercase all log strings (#3173) 2024-01-11 19:17:07 +01:00
configFetcher_test.go Enable golangci linter stylecheck (#3167) 2024-01-10 22:56:42 +01:00
forge.go Update go module path for major version 2 (#2905) 2023-12-08 08:15:08 +01:00
refresh.go Update go module path for major version 2 (#2905) 2023-12-08 08:15:08 +01:00