-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
47 lines (42 loc) · 1.16 KB
/
.gitlab-ci.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
---
variables:
CR_PROVIDER: "gitlab"
GITLAB_PROJECT_ID: $CI_PROJECT_ID
CR_MODEL:
value: "gpt-3.5-turbo-0613"
description: "The model to use"
CR_TEMPERATURE:
value: "0.0"
description: "The temperature"
CR_MAX_SUPPORTED_TOKENS:
value: "4096"
description: 'The maximum supported tokens'
CR_MAX_COMPLETION_TOKENS:
value: "2048"
description: 'The maximum supported completion tokens'
CR_TARGET_BRANCH:
value: "new-branch"
description: "The branch where any changes will be committed"
CR_TYPE:
value: "refactor"
description: "The type of action to perform"
CR_TARGET_FILES:
value: "examples/code_comment.py"
description: "Optional: List of comma separated values containing target files. If empty, the entire repo will be used."
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == "push"
when: never
- when: always
# Uncomment to run
stages:
- run_docker
run_docker:
stage: run_docker
image:
name: case.artifacts.medtronic.com/ventilation-docker-dev-local/prototypes/code-reviewer:latest
entrypoint: [""]
script:
- python3 -u /src/app.py
tags:
- weilea2-laptop