mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-02 22:01:44 +02:00
Refactor "string truncate" (#32984)
This commit is contained in:
1 parent
594edad213
commit
9bfa9f450d
26 files changed
+199
-140
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user