Respond to Issue #14
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
name: Respond to Issue | |
on: | |
issues: | |
types: [opened] | |
issue_comment: | |
types: | |
- created | |
jobs: | |
respond: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Print pull request number | |
run: | | |
echo "Pull Request Number - ${{ github.event.pull_request.number }}" | |
echo "Organization - ${{ github.repository_owner }}" | |
echo "Repository Name - ${{ github.repository }}" | |
- name: Print Job details | |
run: | | |
echo "Run ID - ${{ github.run_id }}" | |
echo "Job ID - ${{ github.job }}" | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.x | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install git-bob==0.2.1 | |
- name: Run Python | |
env: | |
ANTHROPIC_API_KEY: "${{ secrets.ANTHROPIC_API_KEY }}" | |
GOOGLE_API_KEY: "${{ secrets.GOOGLE_API_KEY }}" | |
GIT_BOB_LLM_NAME: "${{ secrets.GIT_BOB_LLM_NAME }}" | |
OPENAI_API_KEY: "${{ secrets.OPENAI_API_KEY }}" | |
GITHUB_API_KEY: "${{ secrets.GITHUB_TOKEN }}" | |
GITHUB_RUN_ID: "${{ github.run_id }}" | |
run: | | |
git-bob comment-on-issue-action ${{ github.repository }} ${{ github.event.pull_request.number }} ${{ github.event.issue.number }} |