-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Code-Butler GitHub Action #3
Conversation
Sandbox Executions |
Apply Sweep Rules to your PR?
|
The command:
|
🚀 Wrote ChangesDone. |
Sweep: add the yml from https://github.com/marketplace/actions/code-butler-for-pr-review's Initial Setup to this repository without changing anything |
❌ Failed to make changes Please join our Discord to report this issue. |
Sweep: Correction to the following. name: Code Butler
permissions:
contents: read
pull-requests: write
on:
issue_comment:
types: [created]
jobs:
review:
if: startsWith(github.event.comment.body, '/review')
runs-on: ubuntu-latest
steps:
- uses: ca-dp/code-butler@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
cmd: review
chat:
if: startsWith(github.event.comment.body, '/chat')
runs-on: ubuntu-latest
steps:
- uses: ca-dp/code-butler@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
cmd: chat
comment_body: ${{ github.event.comment.body }} |
🚀 Wrote ChangesI wasn't able to make changes. This could be due to an unclear request or a bug in my code. |
PR Feedback: 👎
Description
This pull request adds the Code-Butler GitHub Action to the repository. The Code-Butler Action is a workflow that runs on pull requests and performs code review tasks.
Summary
.github/workflows/code_butler.yml
fileFixes #2.
🎉 Latest improvements to Sweep:
rope
library to refactor Python! Check out Large Language Models are Bad at Refactoring Code. To have Sweep refactor your code, trysweep: Refactor <your_file>.py
!💡 To get Sweep to edit this pull request, you can: