mirror of
https://github.com/bapung/gitea-runner-operator.git
synced 2026-06-21 23:48:43 +00:00
fix: handle case if owner is a user, take priority over org
This commit is contained in:
@@ -131,6 +131,9 @@ func (c *HTTPClient) GetRunnerStats(
|
||||
) (*RunnerStats, error) {
|
||||
switch scope {
|
||||
case v1alpha1.RunnerGroupScopeRepo:
|
||||
if user != "" {
|
||||
return c.getRunnerStatsForRepo(ctx, giteaURL, authToken, user, repo, labels)
|
||||
}
|
||||
return c.getRunnerStatsForRepo(ctx, giteaURL, authToken, org, repo, labels)
|
||||
case v1alpha1.RunnerGroupScopeOrg:
|
||||
return c.getRunnerStatsForOrg(ctx, giteaURL, authToken, org, labels)
|
||||
|
||||
Reference in New Issue
Block a user