Update issue templates

- Use issue forms
- Remove old template
This commit is contained in:
Yejia Chen 2022-04-19 17:09:52 -04:00
parent 55d05447f5
commit 3b267c4b0b
6 changed files with 114 additions and 57 deletions

View File

@ -1,5 +0,0 @@
Please only file issues here that you believe represent actual bugs or feature requests for the Stripe Ruby library.
If you're having general trouble with your Stripe integration, please reach out to support using the form at https://support.stripe.com/ (preferred) or via email to support@stripe.com.
If you are reporting a bug, please include your Ruby version and the version of the Stripe Ruby library you're using, as well as any other details that may be helpful in reproducing the problem.

View File

@ -1,32 +0,0 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''
---
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Fetch a '...'
2. Update the '....'
3. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
**Code snippets and outputs**
If applicable, add code snippets and/or screenshots to help explain your problem.
**Environment (please complete the following information):**
- OS: [e.g. macOS]
- Language version: [e.g. Ruby 3.1.2]
- Library version [e.g. stripe-ruby v5.52.0]
- API version: [e.g. 2020-08-27] (See [Versioning](https://stripe.com/docs/api/versioning) in the API Reference to find which version you're using)
**Additional context**
Add any other context about the problem here.

78
.github/ISSUE_TEMPLATE/bug_report.yml vendored Normal file
View File

@ -0,0 +1,78 @@
name: Bug report
description: Create a report to help us improve
labels: ["bug"]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
- type: textarea
id: what-happened
attributes:
label: Describe the bug
description: A clear and concise description of what the bug is.
placeholder: Tell us what you see!
validations:
required: true
- type: textarea
id: repro-steps
attributes:
label: To Reproduce
description: Steps to reproduce the behavior
placeholder: |
1. Fetch a '...'
2. Update the '....'
3. See error
validations:
required: true
- type: textarea
id: expected-behavior
attributes:
label: Expected behavior
description: A clear and concise description of what you expected to happen.
validations:
required: true
- type: textarea
id: code-snippets
attributes:
label: Code snippets
description: If applicable, add code snippets to help explain your problem.
render: Ruby
validations:
required: false
- type: input
id: os
attributes:
label: OS
placeholder: macOS
validations:
required: true
- type: input
id: language-version
attributes:
label: Language version
placeholder: Ruby 3.1.2
validations:
required: true
- type: input
id: lib-version
attributes:
label: Library version
placeholder: stripe-ruby v5.52.0
validations:
required: true
- type: input
id: api-version
attributes:
label: API version
description: See [Versioning](https://stripe.com/docs/api/versioning) in the API Reference to find which version you're using
placeholder: "2020-08-27"
validations:
required: true
- type: textarea
id: additional-context
attributes:
label: Additional context
description: Add any other context about the problem here.
validations:
required: false

8
.github/ISSUE_TEMPLATE/config.yml vendored Normal file
View File

@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: GitHub Community Support
url: https://support.stripe.com/
about: |
Please only file issues here that you believe represent actual bugs or feature requests for the Stripe Ruby library.
If you're having general trouble with your Stripe integration, please reach out to support.

View File

@ -1,20 +0,0 @@
---
name: Feature request
about: Suggest an idea for this library
title: ''
labels: feature-request
assignees: ''
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context about the feature request here.

View File

@ -0,0 +1,28 @@
name: Feature request
description: Create a report to help us improve
labels: ["feature-request"]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this feature request!
- type: textarea
id: problem
attributes:
label: Is your feature request related to a problem? Please describe.
description: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
- type: textarea
id: problem
attributes:
label: Describe the solution you'd like
description: A clear and concise description of what you want to happen.
- type: textarea
id: problem
attributes:
label: Describe alternatives you've considered
description: A clear and concise description of any alternative solutions or features you've considered.
- type: textarea
id: problem
attributes:
label: Additional context
description: Add any other context about the feature request here.