Skip to content

Commit

Permalink
Merge pull request #83 from kubecub/sweep/add-sweep-config
Browse files Browse the repository at this point in the history
  • Loading branch information
cubxxw authored Aug 14, 2023
2 parents 856c00b + 66de3bd commit af9f70c
Show file tree
Hide file tree
Showing 6 changed files with 79 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/sweep-bugfix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Bugfix
title: 'Sweep: '
description: Write something like "We notice ... behavior when ... happens instead of ...""
labels: sweep
body:
- type: textarea
id: description
attributes:
label: Details
description: More details about the bug
placeholder: The bug might be in ... file
- type: textarea
id: error_log
attributes:
label: Error Log
description: Please provide the error message or error log if available
placeholder: Paste the error message or log here
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/sweep-feature.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Feature Request
title: 'Sweep: '
description: Write something like "Write an api endpoint that does "..." in the "..." file"
labels: sweep
body:
- type: textarea
id: description
attributes:
label: Details
description: More details for Sweep
placeholder: The new endpoint should use the ... class from ... file because it contains ... logic
- type: textarea
id: error_log
attributes:
label: Error Log
description: Please provide the error message or error log if the feature request is related to an existing error
placeholder: Paste the error message or log here
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/sweep-refactor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Refactor
title: 'Sweep: '
description: Write something like "Modify the ... api endpoint to use ... version and ... framework"
labels: sweep
body:
- type: textarea
id: description
attributes:
label: Details
description: More details for Sweep
placeholder: We are migrating this function to ... version because ...
- type: textarea
id: error_log
attributes:
label: Error Log
description: Please provide the error message or error log if the refactor request is related to an existing error
placeholder: Paste the error message or log here
15 changes: 15 additions & 0 deletions .github/workflows/typos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Check for typos
on: [push, pull_request]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check for typos
uses: codespell-project/actions-codespell@master
with:
check_filenames: true
skip: .git,*.png,*.jpg
ignore_words_file: .github/workflows/codespell_ignore_words.txt
paths: ./CONTRIBUTING.md ./README.md

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ ifeq ($(origin GOBIN), undefined)
GOBIN := $(GOPATH)/bin
endif

COMMANDS ?= $(filter-out %.md, $(wildcard ${ROOT_DIR}/cmd/*))
COMMANDS ?= $(filter-out %.md, $(wildcard ${ROOT_DIR}/cmd/*.go))
BINS ?= $(foreach cmd,${COMMANDS},$(notdir ${cmd}))

ifeq (${COMMANDS},)
Expand Down
12 changes: 12 additions & 0 deletions sweep.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Sweep AI turns bug fixes & feature requests into code changes (https://sweep.dev)
# For details on our config file, check out our docs at https://docs.sweep.dev

# If you use this be sure to frequently sync your default branch(main, master) to dev.
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.
# Here's an example: sweepai/sweep is a python project. The main api endpoints are in sweepai/api.py. Write code that adheres to PEP8.
description: ''

# Default Values: https://github.com/sweepai/sweep/blob/main/sweep.yaml

0 comments on commit af9f70c

Please sign in to comment.