File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -54,13 +54,13 @@ This directory contains 13 comprehensive issue drafts for improving community he
5454cd 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
6262for 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 "
6565done
6666```
You can’t perform that action at this time.
0 commit comments