Skip to content

Commit

Permalink
chore: Update postgen script to remove created by info.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ceridan committed Jun 24, 2024
1 parent 7f39052 commit 745d834
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/post_gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ tags: ${post_tags[*]}
EOF


########################################
# Generate body #
########################################
Expand All @@ -110,7 +109,8 @@ for number in "${issues[@]}"; do
issue=$(gh issue view "$number" --json title,body,labels --repo $REPO)

raw_title=$(echo "$issue" | jq -r ".title")
raw_body=$(echo "$issue" | jq ".body" | sed "s/\\\r//g" | sed "s/\\\n/|/g")

raw_body=$(echo "$issue" | jq ".body" | sed "s/\\\r//g" | sed "s/\\\n/|/g" | sed "s/__Created by:__ DE or DIE Bot.*//g")
raw_body=${raw_body:1}
raw_body=${raw_body%?}

Expand Down

0 comments on commit 745d834

Please sign in to comment.