Skip to content

Commit 0720647

Browse files
committed
Add style guide
Signed-off-by: Reshma Abdul Rahim <reshmarahim.abdul@microsoft.com>
1 parent 26cce67 commit 0720647

File tree

2 files changed

+7
-14
lines changed

2 files changed

+7
-14
lines changed

.github/workflows/auto-blog-post.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -76,23 +76,16 @@ jobs:
7676
done
7777
fi
7878
79-
# Get contribution guide content from re/ab branch
80-
echo "Fetching contribution guide from re/ab branch..."
81-
HTTP_STATUS=$(curl -s -w "%{http_code}" "https://raw.githubusercontent.com/radius-project/blog/re%2Fab/radblog/guide/contribution-guide.md" -o contribution-guide.md)
79+
# Get contribution guide content from main branch
80+
echo "Fetching contribution guide from GitHub main branch..."
81+
HTTP_STATUS=$(curl -s -w "%{http_code}" "https://raw.githubusercontent.com/radius-project/blog/main/radblog/guide/contribution-guide.md" -o contribution-guide.md)
8282
8383
if [ "$HTTP_STATUS" = "200" ] && [ -f "contribution-guide.md" ] && [ -s "contribution-guide.md" ]; then
8484
STYLE_GUIDE=$(cat contribution-guide.md)
85-
echo "✅ Contribution guide fetched successfully (HTTP $HTTP_STATUS)"
85+
echo "✅ Contribution guide fetched successfully from GitHub (HTTP $HTTP_STATUS)"
8686
else
87-
echo "❌ Failed to fetch contribution guide (HTTP $HTTP_STATUS), trying alternative method..."
88-
# Try using git show as fallback
89-
if git show re/ab:radblog/guide/contribution-guide.md > contribution-guide.md 2>/dev/null; then
90-
STYLE_GUIDE=$(cat contribution-guide.md)
91-
echo "✅ Contribution guide fetched via git show"
92-
else
93-
echo "❌ All methods failed, using fallback style guide"
94-
STYLE_GUIDE="Follow Radius blog style guide: conversational, user-focused, technical depth over marketing, evidence-based content only."
95-
fi
87+
echo "❌ Failed to fetch contribution guide (HTTP $HTTP_STATUS), using fallback"
88+
STYLE_GUIDE="WRITING GUIDELINES: Conversational, user-focused, technical depth, no marketing language, evidence-based content only from release notes."
9689
fi
9790
9891
# Create AI prompt from template using safer approach

scripts/blog-prompt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ CONTENT REQUIREMENTS:
3030
STRUCTURE REQUIREMENTS:
3131
- Start immediately with introductory content, NO heading. Include a link to the latest Radius release notes.
3232
- Use ## headings for main features (not # headings)
33-
- Include breaking changes in a note or as a highlight within relevant feature sections, not separately
33+
- Feature summary should have breaking changes in a note or as a highlight, not a separate section
3434
- Use clean markdown formatting without horizontal rules
3535
- End with the exact "Learn more and Get Involved" section below
3636

0 commit comments

Comments
 (0)