Skip to content

Conversation

ks6088ts
Copy link
Member

What this PR does / why we need it

  • add post_summary_to_slack workflow

Which issue(s) this PR fixes:

Fixes #80

Does this introduce a breaking change?

[ ] Yes
[x] No

Pull Request Type

What kind of change does this Pull Request introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

How to Test

  • Get the code
ORGANIZATION=<organization-name>
REPOSITORY=<repository-name>

git clone [email protected]:$ORGANIZATION/$REPOSITORY.git
cd $REPOSITORY
  • Test the code
make ci-test

What to Check

Verify that the following are valid

  • ...

Additional Information

@ks6088ts ks6088ts requested a review from Copilot August 13, 2025 05:24
@ks6088ts ks6088ts self-assigned this Aug 13, 2025
Copy link

@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

This PR adds a new GitHub Actions workflow for posting content summaries to Slack. The workflow provides a configurable pipeline that can scrape content from URLs, summarize it using different methods, and send notifications through various channels.

  • Adds a manually triggered workflow with configurable scraper, summarizer, and notifier implementations
  • Supports multiple content sources including web scraping and YouTube transcripts
  • Integrates with Azure OpenAI and Slack through environment variables and secrets

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

inputs:
text:
type: string
default: "https://example.com,https://www.youtube.com/watch?v=xxx"
Copy link
Preview

Copilot AI Aug 13, 2025

Choose a reason for hiding this comment

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

The default URLs include a placeholder YouTube URL with 'xxx' which could be confusing to users. Consider using a real example URL or a more descriptive placeholder like 'YOUTUBE_VIDEO_ID'.

Suggested change
default: "https://example.com,https://www.youtube.com/watch?v=xxx"
default: "https://example.com,https://www.youtube.com/watch?v=YOUTUBE_VIDEO_ID"

Copilot uses AI. Check for mistakes.

jobs:
post_summary_to_slack:
runs-on: "ubuntu-latest"
timeout-minutes: 5
Copy link
Preview

Copilot AI Aug 13, 2025

Choose a reason for hiding this comment

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

A 5-minute timeout may be insufficient for scraping multiple URLs and generating summaries, especially when using LLM-based summarization. Consider increasing the timeout to 10-15 minutes to prevent premature job cancellation.

Suggested change
timeout-minutes: 5
timeout-minutes: 15

Copilot uses AI. Check for mistakes.

@ks6088ts ks6088ts merged commit 1dce7be into main Aug 13, 2025
5 checks passed
@ks6088ts ks6088ts deleted the feature/issue-80_news-summarizer-agent branch August 13, 2025 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add GitHub Actions to run agents
1 participant