Skip to content

Reply to Review Comments #29

Reply to Review Comments

Reply to Review Comments #29

name: Reply to Review Comments
on:
pull_request_review_comment:
types: [created]
jobs:
reply-to-comments:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Setup review-copilot
uses: scs-sandbox/review-copilot/actions/setup-review-copilot/[email protected]
with:
gh_token: ${{ secrets.GITHUB_TOKEN }}
- name: Run Reply to Comment
env:
PYTHONUNBUFFERED: 1
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.REVIEW_COPILOT_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.REVIEW_COPILOT_SECRET_ACCESS_KEY }}
BEDROCK_KNOWLEDGE_BASE_ID: ${{ secrets.REVIEW_COPILOT_BEDROCK_KNOWLEDGE_BASE_ID }}
BEDROCK_DATASOURCE_ID: ${{ secrets.REVIEW_COPILOT_BEDROCK_DATASOURCE_ID }}
LANGCHAIN_API_KEY: ${{ secrets.REVIEW_COPILOT_LANGSMITH_API_KEY }}
run: |
review-copilot reply \
--repo $GITHUB_REPOSITORY \
--comment-id ${{ github.event.comment.id }} \
--pull-number ${{ github.event.pull_request.number }} \
--token $GITHUB_TOKEN \
--follow-up-comment "${{ github.event.comment.body }}" \
--in-reply-to-id ${{ github.event.comment.in_reply_to_id }}