Skip to content

Commit

Permalink
feat: Restrict to ourselve gpt trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
lmontier-pass committed Oct 10, 2024
1 parent 4db9521 commit d2a6694
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/ci_gpt.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
name: Code Review GPT


on:
issue_comment:
types: [created]
pull_request_review_comment:

jobs:
run_code_review:
runs-on: ubuntu-latest
if: github.event.comment.body == '/gpt-check'
if: ${{ github.event.comment.body == '/gpt-check' && contains('lmontier-pass,valoumiaou,dcuesta-pass,LucileRainteau,cdelabre', github.event.pull_request.user.login) }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Code Review GPT
uses: mattzcarey/code-review-gpt@v0.1.10
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ class ModelWithMetadata:
model_identifier: str


def fake_model(a: int, b: str) -> int:
return a + b


class ModelHandler:
MODEL_ALIAS = "@production"

Expand Down

0 comments on commit d2a6694

Please sign in to comment.