Skip to content

Commit

Permalink
doc: change gitlab-pr template to fix naming and specify image version
Browse files Browse the repository at this point in the history
  • Loading branch information
gowoons committed Aug 7, 2023
1 parent 0c2f69a commit 3f7fa01
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions templates/gitlab-pr.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
stages:
- build
- review

variables:
GIT_DEPTH: 0

default:
image: node

build-job:
stage: build
gpt-review:
stage: review
image: "node:18.17"
before_script:
- npm install -g code-review-gpt
script:
- npm ci
- npm install code-review-gpt
- npx code-review-gpt review --ci=gitlab
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
- code-review-gpt review --ci=gitlab
only:
- merge_requests

0 comments on commit 3f7fa01

Please sign in to comment.