Skip to content

slug

import "github.com/ananth/codespace-zed/internal/slug"

Package slug converts free-form work labels into URL-friendly slugs and composes codespace display names from repo, branch, and label parts.

Index

func BuildDisplayName

func BuildDisplayName(repository, branch, workLabel, fallback string) string

BuildDisplayName composes a codespace display name from repo, branch, and work label. The result is truncated to 48 characters (GitHub Codespaces limit).

func SlugifyWorkLabel

func SlugifyWorkLabel(value string) string

SlugifyWorkLabel converts a free-form label into a URL-friendly slug.

Generated by gomarkdoc