0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-09-24 22:16:27 -04:00

chore(runner): create runner token table

Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi.Wu
2022-10-10 14:43:38 +08:00
committed by Jason Song
parent 4dd135580f
commit 0993c40c4f
4 changed files with 53 additions and 32 deletions

View File

@@ -8,6 +8,7 @@ import (
"context"
"fmt"
"code.gitea.io/gitea/core"
"code.gitea.io/gitea/models/db"
repo_model "code.gitea.io/gitea/models/repo"
user_model "code.gitea.io/gitea/models/user"
@@ -44,6 +45,8 @@ type Runner struct {
RepoRange string // glob match which repositories could use this runner
Token string
// instance status (idle)
Status core.RunnerStatus
// Store OS and Artch.
AgentLabels []string
// Store custom labes use defined.