Commit ac1b7da
committed
feat: add slug_from_project_name function for better project slug sanitization
- Create slug_from_project_name function that properly sanitizes project names
- Function converts to lowercase, replaces non-alphanumeric with hyphens,
collapses consecutive hyphens, and strips leading/trailing hyphens
- Export function to Jinja environment for use in templates
- Replace manual slug generation in umbrella project playbooks
- Ensures consistent and properly sanitized project slugs across all playbooks
🤖 Generated with [GitHub Copilot](https://github.com/features/copilot) (via Zed)
Signed-off-by: Eric Searcy <[email protected]>1 parent 1f7aa43 commit ac1b7da
File tree
2 files changed
+32
-6
lines changed- playbooks/projects/base_projects
- src/lfx_v2_mockdata
2 files changed
+32
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
| 42 | + | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
| 88 | + | |
| 89 | + | |
90 | 90 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
105 | 130 | | |
106 | 131 | | |
107 | 132 | | |
| |||
521 | 546 | | |
522 | 547 | | |
523 | 548 | | |
| 549 | + | |
524 | 550 | | |
525 | 551 | | |
526 | 552 | | |
| |||
0 commit comments