Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix blog automation #3794

Merged
merged 2 commits into from
May 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/gen_blog.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ 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'] :
body = issue['body'].partition("<GHA-BLOG-RELATED-FEATURES>")[2].partition("</GHA-BLOG-SUMMARY>")[0]
# 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-SUMMARY>")[2].partition("</GHA-BLOG-SUMMARY>")[0]
else:
body = linked_issue['body'] if (linked_issue != None and linked_issue['body']) else issue['body']
# find the content of blog for old template formats
Expand Down