-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
50 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,36 +9,36 @@ permissions: | |
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 | ||
#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 |