@devries-cameron20 / composio Mirror · read-only
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 21, 03:37 UTC

next
sh 16 lines 487 Bytes
Raw
1 #!/usr/bin/env bash
2 # Reads changelog paths from stdin and prints those that are not generated SDK release entries,
3 # which carry `sdkRelease:` in their frontmatter.
4 set -euo pipefail
5
6 while IFS= read -r path; do
7 [ -n "$path" ] || continue
8 if ! awk '
9 NR == 1 { if ($0 !~ /^---\r?$/) exit 1; next }
10 /^---\r?$/ { exit 1 }
11 /^sdkRelease[[:space:]]*:[[:space:]]*[^[:space:]]/ { found = 1; exit 0 }
12 END { exit !found }
13 ' "$path"; then
14 printf '%s\n' "$path"
15 fi
16 done