diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-12-26 11:56:03 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-26 11:56:03 +0800 |
commit | 9bfa9f450da509bf61c6c762bcb1dc1d6c9bd0bd (patch) | |
tree | 559615153f1580e4f63cc51a99db419ec06b74e3 /routers/api/actions/runner/runner.go | |
parent | 594edad213c2963edfdb6582663a9396ad43a9c0 (diff) | |
download | gitea-9bfa9f450da509bf61c6c762bcb1dc1d6c9bd0bd.tar.gz gitea-9bfa9f450da509bf61c6c762bcb1dc1d6c9bd0bd.zip |
Refactor "string truncate" (#32984)
Diffstat (limited to 'routers/api/actions/runner/runner.go')
-rw-r--r-- | routers/api/actions/runner/runner.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/actions/runner/runner.go b/routers/api/actions/runner/runner.go index 8f365cc926..c55b30f7eb 100644 --- a/routers/api/actions/runner/runner.go +++ b/routers/api/actions/runner/runner.go @@ -69,7 +69,7 @@ func (s *Service) Register( labels := req.Msg.Labels // create new runner - name, _ := util.SplitStringAtByteN(req.Msg.Name, 255) + name := util.EllipsisDisplayString(req.Msg.Name, 255) runner := &actions_model.ActionRunner{ UUID: gouuid.New().String(), Name: name, |