Skip to content

feat: ✨ AIによる週刊Flutterニュース自動生成機能の追加 #16

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

Merged
merged 4 commits into from
Jul 1, 2025

Conversation

kboy-silvergym
Copy link
Contributor

Description

Types of changes

  • Bug Fix (non-breaking change which fixes an issue)
  • New Feature (non-breaking change which adds functionality)
  • Documentation Update (if none of the other choices apply)
  • Others (any other types not listed above)

Checklist

  • I have read the Contributing Guide
  • I have added the necessary documentation (if appropriate)
  • Breaking Change (fix or feature that would cause existing functionality to not work as expected)

Further comments

Related Issue

Closes: #

@Copilot Copilot AI review requested due to automatic review settings June 30, 2025 15:12
Copy link
Contributor

@Copilot 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

Adds an automated weekly Flutter news feature by fetching recent RSS articles and using an AI model to generate a Markdown blog post, then schedules this in GitHub Actions.

  • Introduces scripts/generate_article.py to collect RSS entries, call the Gemini AI API, and write a Markdown article.
  • Adds .github/workflows/auto_news.yml to run the script every Monday, commit the output, and open a PR automatically.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
scripts/generate_article.py New script: fetch RSS feeds, prompt Gemini model, save generated Markdown in project
.github/workflows/auto_news.yml New workflow: weekly schedule, dependencies install, run script, create PR on change
Comments suppressed due to low confidence (2)

.github/workflows/auto_news.yml:3

  • The YAML indentation under on is incorrect, so the workflow won't parse. It should be formatted as:
on:
  schedule:
    - cron: '0 0 * * 1'
  workflow_dispatch:
on:  schedule:    # 毎週月曜日のUTC 0時0分(= 日本時間の月曜朝9時)に実行    - cron: '0 0 * * 1'    # 手動での実行も可能にする  workflow_dispatch:

scripts/generate_article.py:18

  • There are no tests covering the new fetch_recent_articles, generate_article_with_ai, or save_markdown functions. Consider adding unit tests to validate RSS parsing, prompt generation, and file writing.
def fetch_recent_articles():

cursor[bot]

This comment was marked as outdated.

kboy-silvergym and others added 3 commits July 1, 2025 00:22
- Fixed proper YAML indentation and structure
- Improved readability with consistent 2-space indentation
- Made workflow more maintainable and GitHub Actions compliant

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@kboy-silvergym kboy-silvergym merged commit edb08fb into main Jul 1, 2025
1 check passed
@kboy-silvergym kboy-silvergym deleted the fix/slack branch July 1, 2025 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant