Skip to content

Commit

Permalink
feat: Add .gitlab-ci.yml pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanator committed Dec 14, 2023
1 parent 23dc2b7 commit 204308f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Perform a code review on a merge request using the Sourcery Coding Assistant.

sourcery_review:
stage: test
image: python:slim
script:
- pip install --pre sourcery-nightly
- sourcery login --token $SOURCERY_TOKEN
- |
sourcery assistant review gitlab-merge-request \
--gitlab-token $SOURCERY_AI_BOT \
--project $CI_PROJECT_PATH \
--merge-request $CI_MERGE_REQUEST_IID \
--commit $CI_COMMIT_SHA
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'

0 comments on commit 204308f

Please sign in to comment.