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 #3

Closed
wants to merge 33 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
bf62d0b
Create sweep.yaml
sweep-ai[bot] Dec 17, 2023
03c5bbc
Create sweep template
sweep-ai[bot] Dec 17, 2023
775b356
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 20, 2023
cfc2428
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 21, 2023
22cbd63
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 22, 2023
82d5e3e
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 22, 2023
74172fa
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 22, 2023
ad94c8c
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 22, 2023
4f14c5e
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 26, 2023
d165051
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 26, 2023
6e1ac76
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 26, 2023
30d5868
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 26, 2023
83c459d
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 26, 2023
476fd80
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 26, 2023
0ba936e
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 26, 2023
2424478
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 26, 2023
bbfbc4a
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 26, 2023
375b36f
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 26, 2023
43adcf7
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 26, 2023
3697a4a
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 26, 2023
690a751
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 26, 2023
35cc903
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 26, 2023
b270eb9
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 26, 2023
54697b4
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 26, 2023
25fab6a
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 26, 2023
6609aa2
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 26, 2023
e57e1c6
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 26, 2023
f335c00
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 26, 2023
26b4f5f
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 26, 2023
9c97b95
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 26, 2023
6503264
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 26, 2023
a8d5efb
Merge main into sweep/add-sweep-config
sweep-ai[bot] Feb 9, 2024
75cf479
Merge main into sweep/add-sweep-config
sweep-ai[bot] Feb 9, 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
15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE/sweep-template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
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: |
Unit Tests: Write unit tests for <FILE>. Test each function in the file. Make sure to test edge cases.
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 ...
35 changes: 35 additions & 0 deletions sweep.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# 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 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:
- "All new business logic should have corresponding unit tests."
- "Refactor large functions to be more modular."
- "Add docstrings to all functions and file headers."

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

# 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:
# - PyGitHub: ["https://pygithub.readthedocs.io/en/latest/", "We use pygithub to interact with the GitHub API"]
docs: []