Skip to content

Commit 8beac25

Browse files
ashleyshawCopilot
andauthored
Update drafts/README.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Ash Shaw <ashley@lightspeedwp.agency>
1 parent eaf13ed commit 8beac25

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drafts/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ This directory contains 13 comprehensive issue drafts for improving community he
5454
cd drafts/
5555

5656
# Create all issues (requires gh CLI installed and authenticated)
57-
gh issue create --title "$(grep '^title:' G01-schema-relocation.md | cut -d':' -f2-)" --body-file G01-schema-relocation.md
58-
gh issue create --title "$(grep '^title:' G02-fix-stale-links.md | cut -d':' -f2-)" --body-file G02-fix-stale-links.md
57+
gh issue create --title "$(grep '^title:' G01-schema-relocation.md | cut -d':' -f2- | sed -e 's/^[[:space:]]*//' -e 's/^["'\'']//;s/["'\'']$//')" --body-file G01-schema-relocation.md
58+
gh issue create --title "$(grep '^title:' G02-fix-stale-links.md | cut -d':' -f2- | sed -e 's/^[[:space:]]*//' -e 's/^["'\'']//;s/["'\'']$//')" --body-file G02-fix-stale-links.md
5959
# ... repeat for each file
6060

6161
# Or use a loop
6262
for file in G*.md; do
63-
title=$(grep '^title:' "$file" | cut -d':' -f2- | xargs)
63+
title=$(grep '^title:' "$file" | cut -d':' -f2- | sed -e 's/^[[:space:]]*//' -e 's/^["'\'']//;s/["'\'']$//' | xargs)
6464
gh issue create --title "$title" --body-file "$file"
6565
done
6666
```

0 commit comments

Comments
 (0)