Skip to content

SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]

Add templates for issues, pr

John Yang84aeda2fe4ed
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml
new file mode 100644
index 00000000..91469c0b
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/bug_report.yml
@@ -0,0 +1,61 @@
+name: Bug Report
+description: Create a report to help us reproduce and correct the bug
+labels: ['bug']
+
+body:
+- type: markdown
+ attributes:
+ value: >
+ #### Before submitting a bug, please make sure the issue hasn't been already
+ addressed by searching through [the past issues](https://github.com/princeton-nlp/SWE-agent/issues).
+- type: textarea
+ attributes:
+ label: Describe the bug
+ description: >
+ A clear and concise description of what the bug is.
+ validations:
+ required: true
+- type: textarea
+ attributes:
+ label: Steps/Code to Reproduce
+ description: >
+ Add a minimal code/script example that can reproduce the error when running it if applicable.
+ Be as succinct as possible.
+ If reproduction requires external data files, please make it available and provide a donwload link.
+ On our side, *we will copy-paste your code* to run it to reproduce the error you are facing.
+ placeholder: |
+ ```
+ Sample code/script to reproduce the problem
+ ```
+ validations:
+ required: true
+- type: textarea
+ attributes:
+ label: Expected Results
+ description: >
+ Please paste or describe the expected results.
+ placeholder: >
+ Example: No error is thrown.
+ validations:
+ required: true
+- type: textarea
+ attributes:
+ label: Actual Results
+ description: >
+ Please paste or describe the results you observe instead of the expected results.
+ If you observe an error, please paste the error message including the exception traceback.
+ placeholder: >
+ Please paste or specifically describe the actual output or traceback.
+ validations:
+ required: true
+- type: textarea
+ attributes:
+ label: System Information
+ description: |
+ Please tell us what OS you are using, your Python version, and the `swebench` package version if applicable.
+ placeholder: >
+ e.g. MacOS, Python 3.9, swebench 1.0.1
+- type: markdown
+ attributes:
+ value: >
+ Thanks for contributing 🎉!
\ No newline at end of file
diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml
new file mode 100644
index 00000000..ead21a39
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/config.yml
@@ -0,0 +1,8 @@
+blank_issues_enabled: true
+contact_links:
+ - name: Discord server
+ url: https://discord.gg/AVEFbBn2rH
+ about: Developers and users can be found on the Discord server
+ - name: Blank issue
+ url: https://github.com/princeton-nlp/SWE-agent/issues/new
+ about: None of the above? Open a blank issue
\ No newline at end of file
diff --git a/.github/ISSUE_TEMPLATE/doc_improvement.yml b/.github/ISSUE_TEMPLATE/doc_improvement.yml
new file mode 100644
index 00000000..9610ce2d
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/doc_improvement.yml
@@ -0,0 +1,18 @@
+name: Documentation improvement
+description: Create a report to help us improve the documentation or add new documentation.
+labels: ['documentation']
+
+body:
+- type: textarea
+ attributes:
+ label: Describe the issue
+ description: >
+ Tell us about the confusion introduced in the documentation *or*
+ the information that is missing in the documentation.
+ validations:
+ required: true
+- type: textarea
+ attributes:
+ label: Suggest a potential alternative/fix
+ description: >
+ Tell us how we could improve the documentation in this regard.
\ No newline at end of file
diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml
new file mode 100644
index 00000000..e80d2640
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/feature_request.yml
@@ -0,0 +1,20 @@
+name: Feature Request
+description: Suggest a new feature or enhancement to the project
+labels: ['feature']
+
+body:
+ - type: textarea
+ attributes:
+ label: Describe the feature
+ description: >
+ Please describe the feature as best as you can.
+ If applicable, it would help to know how you currently manage without it.
+ What improvements would you expect with its implementation?
+ validations:
+ required: true
+ - type: textarea
+ attributes:
+ label: Potential Solutions
+ description: Links to similar features in other projects, diagrams, or any other references that could help us understand your vision are highly appreciated.
+ validations:
+ required: true
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
new file mode 100644
index 00000000..862a038c
--- /dev/null
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -0,0 +1,22 @@
+<!--
+Thanks for contributing a pull request!
+-->
+
+#### Reference Issues/PRs
+<!--
+Example: "Fixes #1234", "See also #3456"
+Please use keywords (e.g., Fixes) to create link to the issues or pull requests
+you resolved, so that they will automatically be closed when your pull request
+is merged. See https://github.com/blog/1506-closing-issues-via-pull-requests
+-->
+
+#### What does this implement/fix? Explain your changes.
+<!--
+Please include a brief explanation of how your solution
+fixes the tagged issue(s), along with what files / entities have
+been modified for this fix.
+-->
+
+#### Any other comments?
+
+🧡 Thanks for contributing!
diff --git a/ISSUE_TEMPLATE.md b/ISSUE_TEMPLATE.md
deleted file mode 100644
index 8acf6019..00000000
--- a/ISSUE_TEMPLATE.md
+++ /dev/null
@@ -1,7 +0,0 @@
-Thanks for contributing and sharing feedback! :heart:
-
-* If you're reporting an issue, please include all relevant information for
- reproduction: What command did you run? What OS are you on? etc.
-* Please share any error messages in full and **as text** (not as a screenshot!).
-
-You may delete these instructions from your issue.