Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-22 09:54:24 +01:00

Add default owner team to privated_org and limited_org in unit test (#23109)

Related to https://github.com/go-gitea/gitea/pull/22705 's CI result
[here](https://drone.gitea.io/go-gitea/gitea/68043/2/16)
> IsOrganizationOwner() [E] [63f61849-7] Organization does not have
owner team: 23
This commit is contained in:
yp05327 2023-03-05 04:23:51 +09:00 committed by GitHub
parent b6d2c94966
commit 6864583957
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 2 deletions

View file

@ -151,3 +151,25 @@
num_members: 1 num_members: 1
includes_all_repositories: false includes_all_repositories: false
can_create_org_repo: true can_create_org_repo: true
-
id: 15
org_id: 22
lower_name: owners
name: Owners
authorize: 4 # owner
num_repos: 0
num_members: 0
includes_all_repositories: false
can_create_org_repo: true
-
id: 16
org_id: 23
lower_name: owners
name: Owners
authorize: 4 # owner
num_repos: 0
num_members: 0
includes_all_repositories: false
can_create_org_repo: true

View file

@ -807,7 +807,7 @@
num_following: 0 num_following: 0
num_stars: 0 num_stars: 0
num_repos: 2 num_repos: 2
num_teams: 0 num_teams: 1
num_members: 0 num_members: 0
visibility: 1 visibility: 1
repo_admin_change_team_access: false repo_admin_change_team_access: false
@ -844,7 +844,7 @@
num_following: 0 num_following: 0
num_stars: 0 num_stars: 0
num_repos: 2 num_repos: 2
num_teams: 0 num_teams: 1
num_members: 0 num_members: 0
visibility: 2 visibility: 2
repo_admin_change_team_access: false repo_admin_change_team_access: false