Skip to content

Commit 117c9ef

Browse files
Configure Sweep (#16)
--------- Co-authored-by: sweep-ai[bot] <128439645+sweep-ai[bot]@users.noreply.github.com>
1 parent 27e48e2 commit 117c9ef

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Sweep Issue
2+
title: 'Sweep: '
3+
description: For small bugs, features, refactors, and tests to be handled by Sweep, an AI-powered junior developer.
4+
labels: sweep
5+
body:
6+
- type: textarea
7+
id: description
8+
attributes:
9+
label: Details
10+
description: Tell Sweep where and what to edit and provide enough context for a new developer to the codebase
11+
placeholder: |
12+
Unit Tests: Write unit tests for <FILE>. Test each function in the file. Make sure to test edge cases.
13+
Bugs: The bug might be in <FILE>. Here are the logs: ...
14+
Features: the new endpoint should use the ... class from <FILE> because it contains ... logic.
15+
Refactors: We are migrating this function to ... version because ...

sweep.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
rules:
3+
- "All new business logic should have corresponding unit tests."
4+
- "Refactor large functions to be more modular."
5+
- "Add docstrings to all functions and file headers."
6+
7+
branch: 'endless'
8+
9+
gha_enabled: True
10+
11+
description: 'The project is forked from @anse-app/chatgpt-demo, with an index site at https://free-chat.asia. The repository is mainly a TypeScript application using SolidJS and Svelte for the front end and UnoCSS for styling.'
12+
13+
draft: False
14+
15+
blocked_dirs: []
16+
17+
docs: []
18+
19+
sandbox:
20+
install:
21+
- trunk init
22+
check:
23+
- trunk fmt {file_path} || return 0
24+
- trunk check --fix --print-failures {file_path}

0 commit comments

Comments
 (0)