aboutsummaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorsillyguodong <33891828+sillyguodong@users.noreply.github.com>2023-06-13 22:28:31 +0800
committerGitHub <noreply@github.com>2023-06-13 22:28:31 +0800
commit8228751c55d6a4263f0fec2932ca16181c09c97d (patch)
treefb950371443ccb012c2854a3641f543d45dbeb60 /services
parent6bbccdd177bcbac600e3019062c96339a121851a (diff)
downloadgitea-8228751c55d6a4263f0fec2932ca16181c09c97d.tar.gz
gitea-8228751c55d6a4263f0fec2932ca16181c09c97d.zip
Support changing labels of Actions runner without re-registration (#24806)
close #24540 related: - Protocol: https://gitea.com/gitea/actions-proto-def/pulls/9 - Runner side: https://gitea.com/gitea/act_runner/pulls/201 changes: - Add column of `labels` to table `action_runner`, and combine the value of `agent_labels` and `custom_labels` column to `labels` column. - Store `labels` when registering `act_runner`. - Update `labels` when `act_runner` starting and calling `Declare`. - Users cannot modify the `custom labels` in edit page any more. other changes: - Store `version` when registering `act_runner`. - If runner is latest version, parse version from `Declare`. But older version runner still parse version from request header.
Diffstat (limited to 'services')
-rw-r--r--services/forms/runner.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/services/forms/runner.go b/services/forms/runner.go
index 22dea49e31..6d16cfce49 100644
--- a/services/forms/runner.go
+++ b/services/forms/runner.go
@@ -14,8 +14,7 @@ import (
// EditRunnerForm form for admin to create runner
type EditRunnerForm struct {
- Description string
- CustomLabels string // comma-separated
+ Description string
}
// Validate validates form fields