Skip to content

Conversation

@salihozkara
Copy link
Member

This workflow automatically adds SEO descriptions to modified markdown files in the 'docs/en/' directory when a pull request is merged. It checks for existing descriptions, generates new ones using OpenAI, and commits the updates in a new branch.

This workflow automatically adds SEO descriptions to modified markdown files in the 'docs/en/' directory when a pull request is merged. It checks for existing descriptions, generates new ones using OpenAI, and commits the updates in a new branch.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a GitHub Actions workflow that automatically generates and adds SEO descriptions to documentation files when pull requests are merged. The workflow uses OpenAI's API to create concise meta descriptions for improved search engine visibility.

Key changes:

  • Creates an automated workflow triggered on PR merges to specific branches
  • Implements Python script for SEO description generation using OpenAI API
  • Establishes branch creation and pull request automation for SEO updates

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@salihozkara salihozkara requested a review from Copilot October 14, 2025 12:58
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 4 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

salihozkara and others added 4 commits October 14, 2025 16:28
Moved the SEO description generation logic from an inline script in the GitHub Actions workflow to a dedicated Python script at .github/scripts/add_seo_descriptions.py. Updated the workflow to call this script directly, improving maintainability and readability.
Enhanced the detection and updating of SEO description blocks in add_seo_descriptions.py. The script now checks for the presence and non-emptiness of the Description field, and updates or inserts the SEO block as needed, handling invalid JSON gracefully.
@maliming maliming merged commit b016782 into dev Oct 20, 2025
2 checks passed
@maliming maliming deleted the salihozkara-patch-2 branch October 20, 2025 01:30
github-actions bot added a commit that referenced this pull request Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants