Skip to content

Commit 424ee22

Browse files
committed
fix FindRunnerOptions comment to match behavior
1 parent 7ab099a commit 424ee22

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

models/actions/runner.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,10 @@ func init() {
174174

175175
// FindRunnerOptions
176176
// ownerID == 0 and repoID == 0 means any runner including global runners
177-
// repoID != 0 means any runner for the given repo
178-
// ownerID != 0 and repoID == 0 means any runner for the given user/org
177+
// repoID != 0 and WithAvailable == false means any runner for the given repo
178+
// repoID != 0 and WithAvailable == true means any runner for the given repo, parent user/org, and global runners
179+
// ownerID != 0 and repoID == 0 and WithAvailable == false means any runner for the given user/org
180+
// ownerID != 0 and repoID == 0 and WithAvailable == true means any runner for the given user/org and global runners
179181
type FindRunnerOptions struct {
180182
db.ListOptions
181183
IDs []int64

0 commit comments

Comments
 (0)