mirror of
https://github.com/game-ci/unity-builder.git
synced 2026-02-04 08:09:08 +08:00
* feat: streamline code styles * feat: spacing for comments and return statements * chore: enforce camelcase * fix: remove npm lock file * fix: add integrity test * fix: remove logfile * chore: update node in test workflow
12 lines
406 B
TypeScript
12 lines
406 B
TypeScript
import { customAlphabet } from 'nanoid';
|
|
import CloudRunnerConstants from './cloud-runner-constants';
|
|
|
|
class CloudRunnerNamespace {
|
|
static generateGuid(runNumber: string | number, platform: string) {
|
|
const nanoid = customAlphabet(CloudRunnerConstants.alphabet, 4);
|
|
|
|
return `${runNumber}-${platform.toLowerCase().replace('standalone', '')}-${nanoid()}`;
|
|
}
|
|
}
|
|
export default CloudRunnerNamespace;
|