Skip to content
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
38 changes: 19 additions & 19 deletions .github/workflows/code-documentation.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Flamingo Code Documentation
# flamingo Code Documentation
# =============================================================================
# Installed into a target repository by the multi-platform hub ("Setup
# Workflow"). The hub dispatches it to generate this repository's
Expand Down Expand Up @@ -38,7 +38,7 @@
# OPENAI_API_KEY CodeWiki (stage 1).
# YOUTUBE_API_KEY Optional. YouTube embeds in stages 2 and 3.

name: 🦩 Flamingo Code Documentation
name: 🦩 flamingo Code Documentation

on:
# Push trigger — two things ride it. It registers the workflow with GitHub
Expand Down Expand Up @@ -1400,7 +1400,7 @@ jobs:
source /tmp/workflow-helpers.sh

# Use sanitized run ID for branch name. Branch, PR title, status file and
# commit messages all carry the product name: 🦩 Flamingo Code Documentation.
# commit messages all carry the product name: 🦩 flamingo Code Documentation.
SAFE_RUN_ID="${{ steps.branch-name-early.outputs.safe_run_id }}"
BRANCH_NAME="${DOCS_BRANCH_PREFIX}$SAFE_RUN_ID"

Expand All @@ -1413,7 +1413,7 @@ jobs:

# Create initial commit to enable PR creation
{
echo "# 🦩 Flamingo Code Documentation: Started"
echo "# 🦩 flamingo Code Documentation: Started"
echo ""
echo "Run ID: $SAFE_RUN_ID"
echo "Status: In Progress"
Expand All @@ -1423,7 +1423,7 @@ jobs:
# patterns (e.g. `.*` / `*status*`) cover — without -f, `git add` fails the
# step. It's removed again in "Clean up temporary files" before the PR.
git add -f .flamingo-ai-technical-writer-status.md
git commit -m "docs: Initialize 🦩 Flamingo Code Documentation run [skip ci]"
git commit -m "docs: Initialize 🦩 flamingo Code Documentation run [skip ci]"
git push -u origin "$BRANCH_NAME"

# Store branch name for later steps
Expand All @@ -1435,7 +1435,7 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Labels used for 🦩 Flamingo Code Documentation PRs
# Labels used for 🦩 flamingo Code Documentation PRs
LABELS=(
"documentation:A label for documentation-related PRs:#0075ca"
"automated:PRs created by automation/bots:#ededed"
Expand Down Expand Up @@ -1471,7 +1471,7 @@ jobs:

# Create PR body in a temp file (avoiding YAML parsing issues)
{
echo "🦩 Flamingo Code Documentation: In Progress"
echo "🦩 flamingo Code Documentation: In Progress"
echo ""
echo "Run ID: $RUN_ID_VAR"
echo "Status: Running..."
Expand All @@ -1483,14 +1483,14 @@ jobs:
echo "- Stage 2 Tutorial Generation - Pending"
echo "- Stage 3 Repository Documentation - Pending"
echo ""
echo "Generated by 🦩 Flamingo Code Documentation"
echo "Generated by 🦩 flamingo Code Documentation"
} > /tmp/pr-body.md

# Create PR with gh CLI (works with existing branches)
PR_URL=$(gh pr create \
--base "$DEFAULT_BRANCH" \
--head "$BRANCH_NAME" \
--title "[IN PROGRESS] docs: 🦩 Flamingo Code Documentation" \
--title "[IN PROGRESS] docs: 🦩 flamingo Code Documentation" \
--body-file /tmp/pr-body.md \
--label "documentation,automated,in-progress")

Expand Down Expand Up @@ -2214,7 +2214,7 @@ jobs:
source /tmp/workflow-helpers.sh

# Update PR body
PR_BODY="## 🦩 Flamingo Code Documentation: In Progress
PR_BODY="## 🦩 flamingo Code Documentation: In Progress

**Run ID:** \`$RUN_ID_VAR\`
**Status:** 🔄 Running...
Expand All @@ -2227,7 +2227,7 @@ jobs:
- ⏱️ Stage 3: Repository Documentation - Pending

---
🦩 Generated by [Flamingo Code Documentation](https://flamingo.run)"
🦩 Generated by [flamingo Code Documentation](https://flamingo.run)"

gh pr edit "$PR_NUMBER" --body "$PR_BODY"

Expand Down Expand Up @@ -2399,7 +2399,7 @@ jobs:
source /tmp/workflow-helpers.sh

# Update PR body
PR_BODY="## 🦩 Flamingo Code Documentation: In Progress
PR_BODY="## 🦩 flamingo Code Documentation: In Progress

**Run ID:** \`$RUN_ID_VAR\`
**Status:** 🔄 Running...
Expand All @@ -2412,7 +2412,7 @@ jobs:
- ⏳ Stage 3: Repository Documentation - Running...

---
🦩 Generated by [Flamingo Code Documentation](https://flamingo.run)"
🦩 Generated by [flamingo Code Documentation](https://flamingo.run)"

gh pr edit "$PR_NUMBER" --body "$PR_BODY"

Expand Down Expand Up @@ -2674,7 +2674,7 @@ jobs:
source /tmp/workflow-helpers.sh

# Update PR body
PR_BODY="## 🦩 Flamingo Code Documentation: In Progress
PR_BODY="## 🦩 flamingo Code Documentation: In Progress

**Run ID:** \`$RUN_ID_VAR\`
**Status:** 🔄 Running...
Expand All @@ -2687,7 +2687,7 @@ jobs:
- ✅ Stage 3: Repository Documentation - Completed ($STAGE3_FILES files)

---
🦩 Generated by [Flamingo Code Documentation](https://flamingo.run)"
🦩 Generated by [flamingo Code Documentation](https://flamingo.run)"

gh pr edit "$PR_NUMBER" --body "$PR_BODY"

Expand Down Expand Up @@ -2843,10 +2843,10 @@ jobs:
gh pr edit "$PR_NUMBER" --remove-label "in-progress" || true

# Update title to remove [IN PROGRESS]
gh pr edit "$PR_NUMBER" --title "docs: 🦩 Flamingo Code Documentation"
gh pr edit "$PR_NUMBER" --title "docs: 🦩 flamingo Code Documentation"

# Update body with final results
PR_BODY="## 🦩 Flamingo Code Documentation: Complete
PR_BODY="## 🦩 flamingo Code Documentation: Complete

**Run ID:** \`$RUN_ID_VAR\`

Expand All @@ -2873,7 +2873,7 @@ jobs:
- [ ] Review README.md and CONTRIBUTING.md updates

---
🦩 Generated by [Flamingo Code Documentation](https://flamingo.run)"
🦩 Generated by [flamingo Code Documentation](https://flamingo.run)"

gh pr edit "$PR_NUMBER" --body "$PR_BODY"

Expand Down Expand Up @@ -3021,7 +3021,7 @@ jobs:
PR_URL: ${{ steps.create-initial-pr.outputs.pull-request-url }}
run: |
{
echo "## 🦩 Flamingo Code Documentation"
echo "## 🦩 flamingo Code Documentation"
echo ""
echo "Run \`$RUN_ID\` · source branch \`$SOURCE_BRANCH\` · primary language ${PRIMARY_LANGUAGE:-unknown}"
echo ""
Expand Down
Loading