Skip to content

Added LLM-based issue summarizer. #1

Added LLM-based issue summarizer.

Added LLM-based issue summarizer. #1

Workflow file for this run

name: Summarizer
on:
issue_comment:
types: [created]
permissions:
id-token: write
contents: read
issues: write
env:
AWS_REGION : "us-west-2"
jobs:
#summarize:
# if: contains(github.event.comment.body, '/summarize')
# runs-on: ubuntu-latest
# steps:
# # Checkout the repo
# - name: Checkout repository
# uses: actions/checkout@v2
# # Get Nodejs lib
# - name: Set up Node.js
# uses: actions/setup-node@v2
# with:
# node-version: '14'
# # Install github actions lib
# - name: Install github actions lib
# run: npm install @actions/[email protected]
# - name: Install core actions lib
# run: npm install @actions/core
# - name: Install aws bedrock lib
# run: npm install @aws-sdk/client-bedrock-runtime
# # Get AWS Credentials
# - name: configure aws credentials
# uses: aws-actions/configure-aws-credentials@v4
# with:
# role-to-assume: ${{ secrets.BEDROCK_ACTION_ROLE_ARN }}
# aws-region: ${{ env.AWS_REGION }}
# role-session-name: GITHUB_ACTION
# # invoke Bedrock to summarize the issue
# - name: Summarize issues
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# MODEL_ID : "anthropic.claude-3-5-sonnet-20240620-v1:0"
# COMMENT_BODY: ${{ github.event.comment.body }}
# run: node .github/actions/summarizer/index.js