mirror of
https://github.com/actions/runner.git
synced 2025-12-11 04:46:58 +00:00
Implement new runner service name convention (#193)
* Limit service name to 80 characters * Add L0 tests * New service name convention * Make RepoOrOrgName a computed property * Add service name sanitizing logic with L0 test
This commit is contained in:
@@ -122,5 +122,10 @@ namespace GitHub.Runner.Sdk
|
||||
return format;
|
||||
}
|
||||
}
|
||||
|
||||
public static string SubstringPrefix(string value, int count)
|
||||
{
|
||||
return value?.Substring(0, Math.Min(value.Length, count));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user