From 6232b61648287065f606becd5805dd9cf98e35ac Mon Sep 17 00:00:00 2001 From: "ellipsis-dev[bot]" <65095814+ellipsis-dev[bot]@users.noreply.github.com> Date: Sat, 9 Mar 2024 19:28:42 +0000 Subject: [PATCH] implement #13; --- ellipsis.Dockerfile | 5 +++++ ellipsis.yaml | 28 ++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 ellipsis.Dockerfile create mode 100644 ellipsis.yaml diff --git a/ellipsis.Dockerfile b/ellipsis.Dockerfile new file mode 100644 index 0000000..42fc4d6 --- /dev/null +++ b/ellipsis.Dockerfile @@ -0,0 +1,5 @@ +FROM python:3.10 +WORKDIR /app +RUN apt-get update && apt-get install -y git +COPY . /app +RUN pip install -r requirements.txt \ No newline at end of file diff --git a/ellipsis.yaml b/ellipsis.yaml new file mode 100644 index 0000000..a5f63e7 --- /dev/null +++ b/ellipsis.yaml @@ -0,0 +1,28 @@ +version: 1.3 + +about: + - "This is a codebase for a code generation tool called Ellipsis. It can review GitHub pull requests, answer questions about code, and even generate bug fixes!" + - "We're migrating away from using AWS CDK. Our infrastructure is no longer part of this repository." + +build: + file: "ellipsis.Dockerfile" + commands: + - name: "lint_fix" + description: "Lints the code in fix mode, which will fix some errors, format some files, and throw and error when there are violations." + command: "./scripts/lint.sh" + - name: "unit_tests" + description: "Runs the unit tests." + command: ./scripts/unit_test.sh + +pr_review: + confidence_threshold: 0.7 + rules: + - "Code should be DRY (Dont Repeat Yourself)" + - "There should no secrets or credentials in the code" + - "Extremely Complicated Code Needs Comments" + - "Use Descriptive Variable and Constant Names" + - "API routes must have error handling, they shouldn't intentionally return a HTTP 500" + - "Use retries when calling external API services" + - "Don't log sensitive data" + - "Follow the Single Responsibility Principle" + - "Function and Method Naming Should Follow Consistent Patterns" \ No newline at end of file