From a9b085c5ce9f056c429727a9af6db6f214f8a7cc Mon Sep 17 00:00:00 2001 From: uncle Date: Tue, 26 Sep 2023 16:27:23 +0900 Subject: [PATCH] Add Code Butler Action --- .github/workflows/code-butler.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/code-butler.yml diff --git a/.github/workflows/code-butler.yml b/.github/workflows/code-butler.yml new file mode 100644 index 0000000..850a662 --- /dev/null +++ b/.github/workflows/code-butler.yml @@ -0,0 +1,19 @@ +name: Code Butler + +permissions: + contents: read + pull-requests: write + +on: + issue_comment: + types: [created] + +jobs: + code-butler: + if: startsWith(github.event.comment.body, '/review') + runs-on: ubuntu-latest + steps: + - uses: ca-dp/code-butler@latest + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}