Skip to content

Commit 73d646f

Browse files
authored
Merge pull request #66 from tsparticles/sweep/add-sweep-config
Configure Sweep
2 parents 126fd1f + a6aa07c commit 73d646f

File tree

4 files changed

+85
-0
lines changed

4 files changed

+85
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Sweep Fast Issue
2+
title: 'Sweep (fast): '
3+
description: For few-line fixes to be handled by Sweep, an AI-powered junior developer. Sweep will use GPT-3.5 to quickly create a PR for very small changes.
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+
Bugs: The bug might be in ... file. Here are the logs: ...
13+
Features: the new endpoint should use the ... class from ... file because it contains ... logic.
14+
Refactors: We are migrating this function to ... version because ...
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Sweep Slow Issue
2+
title: 'Sweep (slow): '
3+
description: For larger bugs, features, refactors, and tests to be handled by Sweep, an AI-powered junior developer. Sweep will perform a deeper search and more self-reviews but will take longer.
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+
Bugs: The bug might be in ... file. Here are the logs: ...
13+
Features: the new endpoint should use the ... class from ... file because it contains ... logic.
14+
Refactors: We are migrating this function to ... version because ...
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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+
Bugs: The bug might be in ... file. Here are the logs: ...
13+
Features: the new endpoint should use the ... class from ... file because it contains ... logic.
14+
Refactors: We are migrating this function to ... version because ...

sweep.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Sweep AI turns bugs & feature requests into code changes (https://sweep.dev)
2+
# For details on our config file, check out our docs at https://docs.sweep.dev/usage/config
3+
4+
# This is the branch that Sweep will develop from and make pull requests to. Most people use 'main' or 'master' but some users also use 'dev' or 'staging'.
5+
branch: 'main'
6+
7+
# By default Sweep will read the logs and outputs from your existing Github Actions. To disable this, set this to false.
8+
gha_enabled: True
9+
10+
# This is the description of your project. It will be used by sweep when creating PRs. You can tell Sweep what's unique about your project, what frameworks you use, or anything else you want.
11+
#
12+
# Example:
13+
#
14+
# description: sweepai/sweep is a python project. The main api endpoints are in sweepai/api.py. Write code that adheres to PEP8.
15+
description: ''
16+
17+
# This sets whether to create pull requests as drafts. If this is set to True, then all pull requests will be created as drafts and GitHub Actions will not be triggered.
18+
draft: False
19+
20+
# This is a list of directories that Sweep will not be able to edit. In our example, Sweep is unable to modify the .github folder as we do not want Sweep to modify our GitHub Actions.
21+
blocked_dirs: [".github/"]
22+
23+
# This is a list of documentation links that Sweep will use to help it understand your code. You can add links to documentation for any packages you use here.
24+
#
25+
# Example:
26+
#
27+
# docs:
28+
# - Modal: https://modal.com/docs/reference
29+
# - PyGitHub: https://pygithub.readthedocs.io/en/latest/
30+
docs: []
31+
32+
# Sandbox executes commands in a sandboxed environment to validate code changes after every edit to guarantee pristine code. For more details, see the [Sandbox](./sandbox) page.
33+
sandbox:
34+
install:
35+
- trunk init
36+
check:
37+
- trunk fmt {file_path}
38+
- trunk check --fix {file_path}
39+
40+
# This setting contains a list of rules that Sweep will check for. If any of these rules are broken in a new commit, Sweep will create an pull request to fix the broken rule.
41+
rules:
42+
- There should not be large sections of commented out code.
43+
- All docstrings and comments should be up to date.

0 commit comments

Comments
 (0)