mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-21 00:24:57 +02:00
Fix type cast and signature issues after rebase onto upstream/main
- Cast org.Visibility.String() to api.UserVisibility in ToOrganization - Cast t.AccessMode.ToString() to api.AccessLevelName in ToTeams - Update webhook notifier to pass repo to ToActionWorkflowRun Co-Authored-By: Claude Sonnet 4.6 <claude-sonnet-4-6@anthropic.com>
This commit is contained in:
parent
4bdfb2ecde
commit
2975f8be8f
@ -705,7 +705,7 @@ func ToOrganization(ctx context.Context, org *organization.Organization) *api.Or
|
|||||||
Description: org.Description,
|
Description: org.Description,
|
||||||
Website: org.Website,
|
Website: org.Website,
|
||||||
Location: org.Location,
|
Location: org.Location,
|
||||||
Visibility: org.Visibility.String(),
|
Visibility: api.UserVisibility(org.Visibility.String()),
|
||||||
RepoAdminChangeTeamAccess: org.RepoAdminChangeTeamAccess,
|
RepoAdminChangeTeamAccess: org.RepoAdminChangeTeamAccess,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -734,7 +734,7 @@ func ToTeams(ctx context.Context, teams []*organization.Team, loadOrgs bool) ([]
|
|||||||
Description: t.Description,
|
Description: t.Description,
|
||||||
IncludesAllRepositories: t.IncludesAllRepositories,
|
IncludesAllRepositories: t.IncludesAllRepositories,
|
||||||
CanCreateOrgRepo: t.CanCreateOrgRepo,
|
CanCreateOrgRepo: t.CanCreateOrgRepo,
|
||||||
Permission: t.AccessMode.ToString(),
|
Permission: api.AccessLevelName(t.AccessMode.ToString()),
|
||||||
Units: t.GetUnitNames(),
|
Units: t.GetUnitNames(),
|
||||||
UnitsMap: t.GetUnitsMap(),
|
UnitsMap: t.GetUnitsMap(),
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1043,8 +1043,7 @@ func (*webhookNotifier) WorkflowRunStatusUpdate(ctx context.Context, repo *repo_
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
run.Repo = repo
|
convertedRun, err := convert.ToActionWorkflowRun(ctx, repo, run, nil)
|
||||||
convertedRun, err := convert.ToActionWorkflowRun(ctx, run, nil)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error("ToActionWorkflowRun: %v", err)
|
log.Error("ToActionWorkflowRun: %v", err)
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user