-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (43 loc) · 1.29 KB
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Lint
on:
pull_request: {}
pull_request_review_comment:
types: [created]
permissions:
contents: read
# Cancel in progress runs for PRs but not main
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
lint:
if: github.event_name == 'pull_request'
uses: trailofbits/.github/.github/workflows/[email protected]
permissions:
contents: read
pull-requests: read
checks: write
ai-review:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: coderabbitai/ai-pr-reviewer@d7f9486e8bfddc6e55f9879d4e93b8eaac6f120f # v1.16.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }}
with:
debug: false
review_simple_changes: false
review_comment_lgtm: false
openai_base_url: http://localhost:8080/v1
services:
azure-openai:
image: stulzq/azure-openai-proxy
env:
AZURE_OPENAI_ENDPOINT: https://gpt-4-alternate-france.openai.azure.com/
AZURE_OPENAI_MODEL_MAPPER: gpt-3.5-turbo=gpt-35-turbo,gpt-4=gpt-4
AZURE_OPENAI_API_VER: "2023-05-15"
ports:
- 8080:8080