An open API service indexing awesome lists of open source software.

https://github.com/brave/pull-merge

LLM Capabilities for your pull-requests
https://github.com/brave/pull-merge

ci github-actions llm openai pull-request

Last synced: 7 months ago
JSON representation

LLM Capabilities for your pull-requests

Awesome Lists containing this project

README

          

# ![pull-merge](/logo/svg/logo-no-background.svg)

puLL-Merge is a `github-action` to add LLM capabilities to pull-requests in `github`

## Usage

Add an action under `.github/workflow/security-action.yml` with the following content:

```yaml
name: puLL-Merge
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches: [main]

jobs:
pull-merge:
name: security
runs-on: ubuntu-latest
steps:
- uses: brave/pull-merge@main
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
openai_api_key: ${{ secrets.OPENAI_API_KEY }}

```

## Testing LLM integrations (local)

### OpenAI

```bash
$ ./run.js ./src/openaiExplainPatch.js --apiKey= --owner= --repo= --patchBody= --debug=true
```

### Claude

```bash
$ ./run.js ./src/anthropicExplainPatch.js --apiKey= --owner= --repo= --patchBody= --debug=true
```