Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure Sweep #75

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
5df351c
Create sweep.yaml
sweep-ai[bot] Oct 2, 2023
27d553f
Create sweep template
sweep-ai[bot] Oct 2, 2023
b534ce1
Create sweep slow template
sweep-ai[bot] Oct 2, 2023
7f8fb57
Create sweep fast template
sweep-ai[bot] Oct 2, 2023
005a581
Merge main into sweep/add-sweep-config
sweep-ai[bot] Oct 3, 2023
f306e64
Merge main into sweep/add-sweep-config
sweep-ai[bot] Oct 3, 2023
775126c
Merge main into sweep/add-sweep-config
sweep-ai[bot] Oct 9, 2023
51295eb
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 23, 2023
088cd7e
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 24, 2023
b77ecf2
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 29, 2023
37501e6
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 30, 2023
8b7893e
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 30, 2023
e434f72
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 30, 2023
ea1c1b1
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 30, 2023
1b2e18b
Merge main into sweep/add-sweep-config
sweep-ai[bot] Jan 1, 2024
047557b
Merge main into sweep/add-sweep-config
sweep-ai[bot] Jan 1, 2024
413f4f4
Merge main into sweep/add-sweep-config
sweep-ai[bot] Jan 10, 2024
b5b2735
Merge main into sweep/add-sweep-config
sweep-ai[bot] Jan 10, 2024
51e80c7
Merge main into sweep/add-sweep-config
sweep-ai[bot] Jan 16, 2024
b4e14f6
Merge main into sweep/add-sweep-config
sweep-ai[bot] Jan 31, 2024
ff1f445
Merge main into sweep/add-sweep-config
sweep-ai[bot] Jan 31, 2024
b7d378e
Merge main into sweep/add-sweep-config
sweep-ai[bot] Jan 31, 2024
d0658d7
Merge main into sweep/add-sweep-config
sweep-ai[bot] Jan 31, 2024
9b67c57
Merge main into sweep/add-sweep-config
sweep-ai[bot] Jan 31, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE/sweep-fast-template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Sweep Fast Issue
title: 'Sweep (fast): '
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.
labels: sweep
body:
- type: textarea
id: description
attributes:
label: Details
description: Tell Sweep where and what to edit and provide enough context for a new developer to the codebase
placeholder: |
Bugs: The bug might be in ... file. Here are the logs: ...
Features: the new endpoint should use the ... class from ... file because it contains ... logic.
Refactors: We are migrating this function to ... version because ...
14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE/sweep-slow-template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Sweep Slow Issue
title: 'Sweep (slow): '
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.
labels: sweep
body:
- type: textarea
id: description
attributes:
label: Details
description: Tell Sweep where and what to edit and provide enough context for a new developer to the codebase
placeholder: |
Bugs: The bug might be in ... file. Here are the logs: ...
Features: the new endpoint should use the ... class from ... file because it contains ... logic.
Refactors: We are migrating this function to ... version because ...
14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE/sweep-template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Sweep Issue
title: 'Sweep: '
description: For small bugs, features, refactors, and tests to be handled by Sweep, an AI-powered junior developer.
labels: sweep
body:
- type: textarea
id: description
attributes:
label: Details
description: Tell Sweep where and what to edit and provide enough context for a new developer to the codebase
placeholder: |
Bugs: The bug might be in ... file. Here are the logs: ...
Features: the new endpoint should use the ... class from ... file because it contains ... logic.
Refactors: We are migrating this function to ... version because ...
43 changes: 43 additions & 0 deletions sweep.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Sweep AI turns bugs & feature requests into code changes (https://sweep.dev)
# For details on our config file, check out our docs at https://docs.sweep.dev/usage/config

# 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'.
branch: 'main'

# By default Sweep will read the logs and outputs from your existing Github Actions. To disable this, set this to false.
gha_enabled: True

# 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.
#
# Example:
#
# description: sweepai/sweep is a python project. The main api endpoints are in sweepai/api.py. Write code that adheres to PEP8.
description: ''

# 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.
draft: False

# 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.
blocked_dirs: [".github/"]

# 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.
#
# Example:
#
# docs:
# - Modal: https://modal.com/docs/reference
# - PyGitHub: https://pygithub.readthedocs.io/en/latest/
docs: []

# 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.
sandbox:
install:
- trunk init
check:
- trunk fmt {file_path}
- trunk check --fix {file_path}

# 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.
rules:
- There should not be large sections of commented out code.
- All docstrings and comments should be up to date.