From 6be0f60603b9a8fd7f9eb391c946422e4d0f1e0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89loi=20Rivard?= Date: Sat, 18 Apr 2020 15:26:49 +0200 Subject: [PATCH] Added a github issue and PR templates --- .github/ISSUE_TEMPLATE.md | 33 ++++++++++++++++++++++++++++++++ .github/PULL_REQUEST_TEMPLATE.md | 15 +++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE.md create mode 100644 .github/PULL_REQUEST_TEMPLATE.md diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md new file mode 100644 index 00000000..ca89f26a --- /dev/null +++ b/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,33 @@ +### Actual Behavior + +```python +# Paste a minimal piece of code that causes the problem. Here is an example: + +>>> import wtforms +>>> class F(wtforms.Form): +... foo = wtforms.StringField() +>>> f = F(foo="bar") +>>> print(f.foo.shrug) +Traceback (most recent call last): + File "", line 1, in +AttributeError: 'StringField' object has no attribute 'shrug' +``` + +### Expected Behavior + +```python +# Show us, and explain what behavior you would have expected. +# Here is an example: + +>>> import wtforms +>>> class F(wtforms.Form): +... foo = wtforms.StringField() +>>> f = F(foo="bar") +>>> print(f.foo.shrug) +¯\_(ツ)_/¯ +``` + +### Environment + +* Python version: +* wtforms version: diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 00000000..9945944a --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,15 @@ +Describe the issue you are attempting to fix. + +Link to any relevant issues or pull requests. + +Describe what this patch does to fix the issue. + +