|
1 |
| -# Hello world docker action |
| 1 | +# CodeBuddy |
| 2 | + |
| 3 | +The AI Code Review Partner For You! |
| 4 | + |
| 5 | +Cut code reviews time, reduce bugs, improve your code quality with the power of LLM agents. Everything for free! |
| 6 | + |
| 7 | +## Before Usage |
| 8 | + |
| 9 | +You need create a `code buddy key` at: https://codebuddy-react-nu.vercel.app |
2 | 10 |
|
3 |
| -This action prints "Hello World" or "Hello" + the name of a person to greet to the log. |
4 | 11 |
|
5 | 12 | ## Inputs
|
6 | 13 |
|
7 |
| -## `who-to-greet` |
| 14 | +| Name | Description | Required | |
| 15 | +|--------------------|---------------------------------------|----------| |
| 16 | +| owner | Owner of repository | true | |
| 17 | +| repository | Name of repository | true | |
| 18 | +| pull_request_number | Identifier of pull request | true | |
| 19 | +| github_token | Personal Access token to access repository | true | |
| 20 | +| code_buddy_key | Code Buddy Key to access AI Agent | true | |
| 21 | +| stack | Your stack of development | true | |
| 22 | +| total_comments | Total of comments by file | false | |
8 | 23 |
|
9 |
| -**Required** The name of the person to greet. Default `"World"`. |
10 | 24 |
|
11 | 25 | ## Outputs
|
12 | 26 |
|
13 |
| -## `time` |
| 27 | +| Name | Description | |
| 28 | +|------------|----------------------------------------------------------------------| |
| 29 | +| Response | Returns the HTTP response from the CodeBuddy Agent request used to analyze the code. | |
14 | 30 |
|
15 |
| -The time we greeted you. |
16 | 31 |
|
17 | 32 | ## Example usage
|
18 | 33 |
|
19 |
| -uses: actions/hello-world-docker-action@v2 |
20 |
| -with: |
21 |
| -who-to-greet: 'Mona the Octocat' |
| 34 | +```yml |
| 35 | +name: CodeBuddy CodeReview |
| 36 | +on: |
| 37 | + pull_request: |
| 38 | + types: [ opened, synchronize ] |
| 39 | + |
| 40 | +jobs: |
| 41 | + ai_agent_code_review: |
| 42 | + runs-on: ubuntu-latest |
| 43 | + name: Job to make automatic code review with LLM |
| 44 | + steps: |
| 45 | + - name: CodeBuddy |
| 46 | + id: code_review |
| 47 | + uses: code-buddy-agent/code-buddy@v0.0.4 |
| 48 | + with: |
| 49 | + owner: "${{ github.repository_owner }}" |
| 50 | + repository: code-buddy-agent |
| 51 | + pull_request_number: "${{ github.event.pull_request.number }}" |
| 52 | + github_token: "${{ secrets.GH_TOKEN }}" |
| 53 | + code_buddy_key: "${{ secrets.CODE_BUDDY_KEY }}" |
| 54 | + stack: "Java, Spring, Spring AI" |
| 55 | + total_comments: 2 |
| 56 | +``` |
0 commit comments