Commit 664bdbc
authored
major: Add support for
* feat: add centralized action metadata system with proper array parsing
- Add ACTION_INPUTS mapping for all GitHub Action inputs
- Add createConfigFromInputs() function for dynamic config creation
- Implement proper array parsing that distinguishes required vs optional
- Required array inputs throw error on empty string
- Optional array inputs return empty array on empty string
- Add comprehensive type definitions for action metadata
* refactor: update config system to use centralized action metadata
- Replace manual input processing with createConfigFromInputs()
- Add comprehensive validation for tag directory separator
- Add validation for default first tag format
- Simplify config initialization using metadata-driven approach
- Update config mock to use real action metadata system
- Improve error messages with more specific validation details
* test: improve test infrastructure and input helpers
- Refactor input helpers to use centralized ACTION_INPUTS metadata
- Add getActionDefaults() to load defaults from action.yml
- Generate input type arrays dynamically from metadata
- Add getConfigKey() helper for type-safe config access
- Simplify setupTestInputs() to use action.yml defaults
- Remove hardcoded input arrays in favor of metadata-driven approach
* test: add comprehensive config validation test coverage
- Add tests for tag directory separator validation (length and character)
- Add tests for default first tag format validation
- Add tests for required vs optional array input handling
- Add tests for array parsing edge cases and deduplication
- Improve test organization with metadata-driven approach
- Achieve 100% test coverage for config.ts validation logic
* fix: resolve context test environment variable issues
- Set up required GitHub environment variables in context tests
- Fix test isolation by properly clearing context between tests
- Ensure environment variables are set before context initialization
- Resolve test failures caused by missing GitHub Action environment
* fix: correct import paths and type inconsistencies
* chore: update dependencies and action.yml defaults
* chore: update package dependencies to latest versions
* fix: remove unnecessary SSH agent forwarding and update prettier feature
* fix: update super-linter action to specific version for consistency
Fixes: https://app.aikido.dev/repositories/462873?sidebarIssue=3135661
* fix: update create-pull-request action to specific version for stability
https://app.aikido.dev/repositories/462873?sidebarIssue=3135661
* fix: update SonarQube scan action to specific commit SHA for stability
* fix: update package dependencies to latest versions for improved stability
* feat: support optional v prefix with directory separator config
- Removed deprecated action-metadata types and utility functions.
- Introduced new metadata structure for action inputs in `metadata.ts`.
- Updated configuration handling to support dynamic input mapping.
- Enhanced tag processing to accommodate various directory separators.
- Added tests for metadata input handling and error scenarios.
- Improved regex patterns for module tag validation.
- Updated action.yml to include new input parameters for tag directory separator and version prefix usage.
- Refactored TerraformModule class to utilize new configuration settings for versioning.
* fix: update rollup packages to version 4.44.0 for improved compatibility
* feat: enhance tag generation configuration with detailed descriptions and examples for directory separator and version prefix options
* fix: remove eslint directive for throwing literals in metadata tests
* chore: update dependencies
* chore: update dependencies and improve variable naming
- Updated `p-limit` from version 6.2.0 to 7.0.0 in package.json.
- Updated `@biomejs/biome` from version 1.9.4 to 2.2.0 in devDependencies.
- Updated `textlint` from version 14.8.0 to 15.2.1 in devDependencies.
- Refactored variable names in `dev-parse-modules.ts` for clarity: changed `config` to `_config`, `context` to `_context`, and `modules` to `_modules`.
- Improved backward compatibility proxy in `config.ts` and `context.ts` by renaming the target parameter to `_target` for better readability.
* fix: update @types/node to version 22.17.2 for improved compatibility
* fix: update GitHub token reference for CI testing in workflow
* refactor: simplify ACTION_INPUTS metadata definitions using factory functions
* test: enhance ACTION_INPUTS tests for metadata structure and type safety
* fix: formatting
* test: add tests for VALID_TAG_DIRECTORY_SEPARATORS, VERSION_TAG_REGEX, and MODULE_TAG_REGEX
* refactor: remove redundant SonarQube job steps from workflow
* feat: refactor render -> renderTemplate function and update wiki usage template handling
* fix: update changelog script import path in release workflow
refactor: remove redundant release content structure validation from tests
chore: update biome configuration to include all scripts
chore: add new changelog script and remove deprecated action.yml
test: add parse-modules-test script for local testing of parseTerraformModules function
feat: implement changelog generation with GitHub API integration
delete: remove unused development script for parsing modules
* fix: update documentation links and remove test comment in main.tftag-directory-separator and use-version-prefix inputs, with workflow, config, and mock/test improvements (#227)1 parent f02d448 commit 664bdbc
File tree
44 files changed
+2485
-1667
lines changed- .devcontainer
- .github/workflows
- __mocks__
- @actions
- __tests__
- helpers
- utils
- scripts
- src
- types
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
44 files changed
+2485
-1667
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
| |||
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
56 | | - | |
| 55 | + | |
57 | 56 | | |
58 | 57 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
| 52 | + | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | | - | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| 197 | + | |
197 | 198 | | |
198 | 199 | | |
199 | 200 | | |
200 | 201 | | |
201 | | - | |
202 | | - | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
203 | 205 | | |
204 | 206 | | |
205 | 207 | | |
206 | 208 | | |
207 | 209 | | |
208 | | - | |
209 | 210 | | |
210 | 211 | | |
211 | 212 | | |
212 | 213 | | |
213 | 214 | | |
214 | 215 | | |
215 | | - | |
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
232 | 231 | | |
233 | 232 | | |
234 | 233 | | |
235 | 234 | | |
236 | 235 | | |
237 | 236 | | |
238 | 237 | | |
239 | | - | |
240 | 238 | | |
241 | 239 | | |
242 | 240 | | |
| |||
254 | 252 | | |
255 | 253 | | |
256 | 254 | | |
257 | | - | |
258 | 255 | | |
259 | 256 | | |
260 | 257 | | |
261 | 258 | | |
262 | 259 | | |
263 | 260 | | |
264 | 261 | | |
265 | | - | |
266 | 262 | | |
267 | 263 | | |
268 | 264 | | |
| |||
282 | 278 | | |
283 | 279 | | |
284 | 280 | | |
285 | | - | |
| 281 | + | |
286 | 282 | | |
287 | 283 | | |
288 | 284 | | |
289 | 285 | | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
297 | 293 | | |
298 | 294 | | |
299 | 295 | | |
| |||
323 | 319 | | |
324 | 320 | | |
325 | 321 | | |
326 | | - | |
| 322 | + | |
327 | 323 | | |
328 | 324 | | |
329 | 325 | | |
330 | 326 | | |
331 | 327 | | |
332 | 328 | | |
333 | | - | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
334 | 332 | | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
| 333 | + | |
340 | 334 | | |
341 | | - | |
342 | | - | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
343 | 341 | | |
344 | 342 | | |
345 | 343 | | |
346 | | - | |
347 | | - | |
348 | | - | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
349 | 347 | | |
350 | 348 | | |
351 | 349 | | |
| |||
367 | 365 | | |
368 | 366 | | |
369 | 367 | | |
| 368 | + | |
| 369 | + | |
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
378 | 383 | | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | 384 | | |
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
388 | 393 | | |
389 | 394 | | |
390 | 395 | | |
| |||
0 commit comments