diff --git a/.github/workflows/weekly-issue-summary.yml b/.github/workflows/weekly-issue-summary.yml deleted file mode 100644 index 635532329..000000000 --- a/.github/workflows/weekly-issue-summary.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Weekly Issue Summary - -on: - workflow_dispatch: - schedule: - - cron: '0 9 * * 1' - -permissions: - issues: write - contents: read - models: read - -jobs: - create_weekly_summary: - runs-on: ubuntu-latest - env: - GH_TOKEN: ${{ github.token }} - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Install gh-models extension - run: gh extension install https://github.com/github/gh-models - - - name: Get issues from the past week - id: get_issues - run: |- - LAST_WEEK=$(date -d "7 days ago" +"%Y-%m-%d") - gh search issues "created:>$LAST_WEEK" --state=open --json title,body,url --repo ${{ github.repository }} > issues.json - - - name: Generate summary using gh models - id: summary - run: | - summary=$(cat issues.json | gh models run --file prompts/issue-summary.prompt.yml) - echo "summary_output<> $GITHUB_OUTPUT - echo "$summary" >> $GITHUB_OUTPUT - echo "EOF" >> $GITHUB_OUTPUT - - - name: Create issue with summary - if: steps.summary.outputs.summary_output - run: | - gh issue create \ - --title "Weekly Issue Summary - $(date +%F)" \ - --body "$summary_output" - env: - summary_output: ${{ steps.summary.outputs.summary_output }} diff --git a/prompts/issue-summary.prompt.yml b/prompts/issue-summary.prompt.yml deleted file mode 100644 index 440c5dee5..000000000 --- a/prompts/issue-summary.prompt.yml +++ /dev/null @@ -1,9 +0,0 @@ -name: Issue summarizer -description: Summarizes weekly issues -model: openai/gpt-4.1 -messages: - - role: system - content: You are a helpful issue summarizer. When given issue content, respond in markdown format. - - role: user - content: - "Please summarize the following issues into a few short bullet points. Include links if provided. If possible, pull out general themes and help the team prioritize based on impact. Issues begin here:\n {{input}}"