Skip to content

Commit

Permalink
Update Issues templates with .yml forms (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
jvsguerra authored Sep 21, 2023
1 parent 21e9712 commit e1a7902
Show file tree
Hide file tree
Showing 6 changed files with 156 additions and 79 deletions.
45 changes: 0 additions & 45 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

82 changes: 82 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: Bug Report
description: Report a bug or issue with pyKVFinder.
title: "[Bug]: "
body:
- type: textarea
id: summary
attributes:
label: Bug summary
description: Concisely describe the encountered bug.
placeholder: Describe the bug in 1-2 short sentences.
value:
validations:
required: true
- type: textarea
id: reproduction
attributes:
label: Code for reproduction
description: |
If possible, please provide a minimum self-contained example.
placeholder: Paste your code here. This field is automatically formatted as Python code.
render: python
validations:
required: true
- type: textarea
id: actual
attributes:
label: Actual outcome
description: |
Paste the output produced by the provided code (e.g., console output, images, screenshots).
validations:
required: true
- type: textarea
id: expected
attributes:
label: Expected outcome
description: Describe what you expected the code to produce.
validations:
required: true
- type: textarea
id: details
attributes:
label: Additional information
description: |
- What are the conditions under which this bug happens? input parameters, edge cases, etc?
- Has this worked in earlier versions?
- Do you know why this bug is happening?
- Do you maybe even know a fix?
- type: input
id: operating-system
attributes:
label: Operating system
description: Specify your operating system (e.g., Ubuntu, OS/X, Windows).
- type: input
id: python-version
attributes:
label: Python version
description: Check your Python version by running `python --version` in the console.
- type: input
id: pyKVFinder-version
attributes:
label: pyKVFinder Version
description: "From Python prompt: `import pyKVFinder; print(pyKVFinder.__version__)`"
validations:
required: true
- type: input
id: numpy-version
attributes:
label: Numpy Version
description: "From Python prompt: `import numpy; print(numpy.__version__)`"
- type: input
id: jupyter-version
attributes:
label: Jupyter version
description: "In console: `jupyter notebook --version` or `jupyter lab --version`"
- type: dropdown
id: install
attributes:
label: Installation
description: How did you install pyKVFinder?
options:
- pip
- from source
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Documentation
description: Create a report to help us improve the documentation
title: "[Doc]: "
labels: [documentation]
body:
- type: input
id: link
attributes:
label: Documentation Link
description: |
Link to any documentation or examples that you are referencing.
Suggested improvements should be based on the development version of the docs: [pyKVFinder Documentation](https://lbc-lnbio.github.io/pyKVFinder/)
placeholder: https://lbc-lnbio.github.io/pyKVFinder/...
- type: textarea
id: problem
attributes:
label: Problem
description: What is missing, unclear, or wrong in the documentation?
placeholder: |
* I found [...] to be unclear because [...]
* [...] made me think that [...] when really it should be [...]
* There is no example showing how to do [...]
validations:
required: true
- type: textarea
id: improvement
attributes:
label: Suggested improvement
placeholder: |
* This line should be be changed to say [...]
* Include a paragraph explaining [...]
* Add a figure showing [...]
34 changes: 0 additions & 34 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Feature Request
description: Suggest something to add to pyKVFinder!
title: "[ENH]: "
labels: [enhancement]
body:
- type: markdown
attributes:
value: |
Please search the [issues](https://github.com/LBC-LNBio/pyKVFinder/issues) for relevant feature requests before creating a new feature request.
- type: textarea
id: problem
attributes:
label: Problem
description: Briefly describe the problem this feature will solve. (2-4 sentences).
placeholder: |
* I'm always frustrated when [...] because [...]
* I would like it if [...] happened when I [...] because [...]
* Here is a sample image of what I am asking for [...]
validations:
required: true
- type: textarea
id: solution
attributes:
label: Proposed solution
description: Describe a way to accomplish the goals of this feature request.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/maintenance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Maintenance
description: Help improve performance, usability and/or consistency.
title: "[MNT]: "
labels: [enhancement]
body:
- type: textarea
id: summary
attributes:
label: Summary
description: Please provide 1-2 short sentences that succinctly describes what could be improved.
validations:
required: true
- type: textarea
id: fix
attributes:
label: Proposed fix
description: Please describe how you think this could be improved.

1 comment on commit e1a7902

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
pyKVFinder
   grid.py72210785%917, 921, 2242–2262, 2399–2476, 2832–2901
   main.py3576781%93, 97, 105, 114, 142–148, 1051, 1058, 1068, 1079, 1098, 1103–1104, 1330, 1335, 1341, 1348, 1351–1354, 1358–1363, 1375, 1385, 1414–1415, 1420–1421, 1426–1427, 1487–1492, 1498, 1503–1508, 1568, 1570, 1583, 1694, 1696, 1702, 1704, 1710, 1715, 1719, 1772–1782, 1808
   utils.py312698%571, 603, 606–608, 630
TOTAL139118087% 

Please sign in to comment.