Skip to content

Commit

Permalink
Remove unnecessary tags from generated release posts
Browse files Browse the repository at this point in the history
  • Loading branch information
dmuelle authored May 17, 2024
1 parent 95f7cb3 commit ac7bc23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gen_blog.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ def make_blog(issues, is_beta):

# Get the issue body. First look for tags, then for linked issues, and finally the issue itself
body = ""
# For now, just be greedy and grab everything between "<GHA-BLOG-RELATED-FEATURES>" and "</GHA-BLOG-SUMMARY>"
if "<GHA-BLOG-RELATED-FEATURES>" in issue['body'] and "</GHA-BLOG-SUMMARY>" in issue['body'] :
# Grab everything between "<GHA-BLOG-SUMMARY>" and "</GHA-BLOG-SUMMARY>"
if "<GHA-BLOG-SUMMARY>" in issue['body'] and "</GHA-BLOG-SUMMARY>" in issue['body'] :
body = issue['body'].partition("<GHA-BLOG-RELATED-FEATURES>")[2].partition("</GHA-BLOG-SUMMARY>")[0]
else:
body = linked_issue['body'] if (linked_issue != None and linked_issue['body']) else issue['body']
Expand Down

0 comments on commit ac7bc23

Please sign in to comment.