Refactor file extensions in GithubHandler class #86
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: Comment on Pull Request | |
on: | |
pull_request: | |
types: [opened] | |
push: | |
jobs: | |
comment: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Comment on PR | |
env: | |
GH_ACCESSTOKEN: ${{ secrets.GH_TOKEN}} | |
REPO_NAME: ${{ github.repository }} | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY}} | |
MAIN_BRANCH: main | |
run: | | |
export PR_NUMBER=$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }') | |
make install-commenter | |
make comment-pr |