mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-01-25 02:08:11 +00:00
fix(skills): fix sync.sh parsing frontmatter delimiter as list item
- Add check for `---` inside getline loop in extract_metadata - Prevents YAML frontmatter delimiter from being parsed as action
This commit is contained in:
@@ -52,8 +52,6 @@ When performing these actions, ALWAYS invoke the corresponding skill FIRST:
|
||||
|
||||
| Action | Skill |
|
||||
|--------|-------|
|
||||
| -- | `jsonapi` |
|
||||
| -- | `prowler-commit` |
|
||||
| Add changelog entry for a PR or feature | `prowler-changelog` |
|
||||
| Adding DRF pagination or permissions | `django-drf` |
|
||||
| Adding new providers | `prowler-provider` |
|
||||
|
||||
@@ -13,8 +13,6 @@ When performing these actions, ALWAYS invoke the corresponding skill FIRST:
|
||||
|
||||
| Action | Skill |
|
||||
|--------|-------|
|
||||
| -- | `jsonapi` |
|
||||
| -- | `prowler-commit` |
|
||||
| Add changelog entry for a PR or feature | `prowler-changelog` |
|
||||
| Adding DRF pagination or permissions | `django-drf` |
|
||||
| Committing changes | `prowler-commit` |
|
||||
|
||||
@@ -8,7 +8,6 @@ When performing these actions, ALWAYS invoke the corresponding skill FIRST:
|
||||
|
||||
| Action | Skill |
|
||||
|--------|-------|
|
||||
| -- | `prowler-commit` |
|
||||
| Add changelog entry for a PR or feature | `prowler-changelog` |
|
||||
| Committing changes | `prowler-commit` |
|
||||
| Create PR that requires changelog entry | `prowler-changelog` |
|
||||
|
||||
@@ -137,6 +137,8 @@ extract_metadata() {
|
||||
|
||||
# On multi-line list, only accept "- item" lines. Anything else ends the list.
|
||||
line = $0
|
||||
# Stop at frontmatter delimiter (getline bypasses pattern matching)
|
||||
if (line ~ /^---$/) break
|
||||
if (line ~ /^[[:space:]]*-[[:space:]]*/) {
|
||||
sub(/^[[:space:]]*-[[:space:]]*/, "", line)
|
||||
line = trim(line)
|
||||
|
||||
@@ -18,7 +18,6 @@ When performing these actions, ALWAYS invoke the corresponding skill FIRST:
|
||||
|
||||
| Action | Skill |
|
||||
|--------|-------|
|
||||
| -- | `prowler-commit` |
|
||||
| Add changelog entry for a PR or feature | `prowler-changelog` |
|
||||
| App Router / Server Actions | `nextjs-15` |
|
||||
| Building AI chat features | `ai-sdk-5` |
|
||||
|
||||
Reference in New Issue
Block a user