mirror of
https://github.com/gin-gonic/gin.git
synced 2025-04-06 03:57:46 +08:00
Merge 421a4098eb496e65d9c22d53682abfffecba5980 into 8763f33c65f7df8be5b9fe7504ab7fcf20abb41d
This commit is contained in:
commit
b9f2bd5120
49
.github/ISSUE_TEMPLATE.md
vendored
49
.github/ISSUE_TEMPLATE.md
vendored
@ -1,49 +0,0 @@
|
|||||||
- With issues:
|
|
||||||
- Use the search tool before opening a new issue.
|
|
||||||
- Please provide source code and commit sha if you found a bug.
|
|
||||||
- Review existing issues and provide feedback or react to them.
|
|
||||||
|
|
||||||
## Description
|
|
||||||
|
|
||||||
<!-- Description of a problem -->
|
|
||||||
|
|
||||||
## How to reproduce
|
|
||||||
|
|
||||||
<!-- The smallest possible code example to show the problem that can be compiled, like -->
|
|
||||||
```
|
|
||||||
package main
|
|
||||||
|
|
||||||
import (
|
|
||||||
"github.com/gin-gonic/gin"
|
|
||||||
)
|
|
||||||
|
|
||||||
func main() {
|
|
||||||
g := gin.Default()
|
|
||||||
g.GET("/hello/:name", func(c *gin.Context) {
|
|
||||||
c.String(200, "Hello %s", c.Param("name"))
|
|
||||||
})
|
|
||||||
g.Run(":9000")
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
## Expectations
|
|
||||||
|
|
||||||
<!-- Your expectation result of 'curl' command, like -->
|
|
||||||
```
|
|
||||||
$ curl http://localhost:9000/hello/world
|
|
||||||
Hello world
|
|
||||||
```
|
|
||||||
|
|
||||||
## Actual result
|
|
||||||
|
|
||||||
<!-- Actual result showing the problem -->
|
|
||||||
```
|
|
||||||
$ curl -i http://localhost:9000/hello/world
|
|
||||||
<YOUR RESULT>
|
|
||||||
```
|
|
||||||
|
|
||||||
## Environment
|
|
||||||
|
|
||||||
- go version:
|
|
||||||
- gin version (or commit ref):
|
|
||||||
- operating system:
|
|
67
.github/ISSUE_TEMPLATE/00-bug.yml
vendored
Normal file
67
.github/ISSUE_TEMPLATE/00-bug.yml
vendored
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
# https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository#creating-issue-forms
|
||||||
|
# https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-githubs-form-schema
|
||||||
|
name: Bugs
|
||||||
|
description: I found a bug
|
||||||
|
title: "issue title"
|
||||||
|
labels:
|
||||||
|
- bug
|
||||||
|
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
Thanks for helping us improve! 🙏 Please answer these questions and provide as much information as possible about your problem.
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
id: go-version
|
||||||
|
attributes:
|
||||||
|
label: Go version
|
||||||
|
description: |
|
||||||
|
What version of Go are you using (`go version`)?
|
||||||
|
placeholder: ex. go version go1.20.7 darwin/arm64
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
id: gin-version
|
||||||
|
attributes:
|
||||||
|
label: Gin version
|
||||||
|
description: |
|
||||||
|
What version(or commit ref) of Gin are you using?
|
||||||
|
placeholder: ex. 1.9.1
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: dropdown
|
||||||
|
id: is-reproducible
|
||||||
|
attributes:
|
||||||
|
label: Can this bug be reproduced with the latest release?
|
||||||
|
options:
|
||||||
|
- Option Yes
|
||||||
|
- Option No
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: what-did-you-do
|
||||||
|
attributes:
|
||||||
|
label: "What did you do?"
|
||||||
|
description: "If possible, provide a recipe for reproducing the error. A complete runnable program is good. A link on [go.dev/play](https://go.dev/play) is best."
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: actual-behavior
|
||||||
|
attributes:
|
||||||
|
label: "What did you see happen?"
|
||||||
|
description: Command invocations and their associated output, functions with their arguments and return results, full stacktraces for panics (upload a file if it is very long), etc. Prefer copying text output over using screenshots.
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: expected-behavior
|
||||||
|
attributes:
|
||||||
|
label: "What did you expect to see?"
|
||||||
|
description: Why is the current output incorrect, and any additional context we may need to understand the issue.
|
||||||
|
validations:
|
||||||
|
required: true
|
28
.github/ISSUE_TEMPLATE/01-enhance.yml
vendored
Normal file
28
.github/ISSUE_TEMPLATE/01-enhance.yml
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
# https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository#creating-issue-forms
|
||||||
|
# https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-githubs-form-schema
|
||||||
|
name: Enhancements
|
||||||
|
description: Enhance an idea for this project
|
||||||
|
title: "issue title"
|
||||||
|
labels:
|
||||||
|
- enhancement
|
||||||
|
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
Thanks for helping us improve! 🙏 Please answer these questions and provide as much information as possible about your problem.
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: description
|
||||||
|
attributes:
|
||||||
|
label: "Description"
|
||||||
|
description: "Please describe your idea in detail."
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: additional
|
||||||
|
attributes:
|
||||||
|
label: "Additional"
|
||||||
|
validations:
|
||||||
|
required: false
|
44
.github/ISSUE_TEMPLATE/02-feature.yml
vendored
Normal file
44
.github/ISSUE_TEMPLATE/02-feature.yml
vendored
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
# https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository#creating-issue-forms
|
||||||
|
# https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-githubs-form-schema
|
||||||
|
name: Features
|
||||||
|
description: Suggest an idea for this project
|
||||||
|
title: "issue title"
|
||||||
|
labels:
|
||||||
|
- feature
|
||||||
|
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
Thanks for helping us improve! 🙏 Please answer these questions and provide as much information as possible about your problem.
|
||||||
|
|
||||||
|
- type: dropdown
|
||||||
|
id: is-problem
|
||||||
|
attributes:
|
||||||
|
label: Is your feature request related to a problem?
|
||||||
|
options:
|
||||||
|
- Option Yes
|
||||||
|
- Option No
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: description-solution
|
||||||
|
attributes:
|
||||||
|
label: "Describe the solution you'd like"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: description-considered
|
||||||
|
attributes:
|
||||||
|
label: "Describe alternatives you've considered"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: additional
|
||||||
|
attributes:
|
||||||
|
label: "Additional"
|
||||||
|
validations:
|
||||||
|
required: false
|
22
.github/ISSUE_TEMPLATE/03-question.yml
vendored
Normal file
22
.github/ISSUE_TEMPLATE/03-question.yml
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
# https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository#creating-issue-forms
|
||||||
|
# https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-githubs-form-schema
|
||||||
|
name: Questions
|
||||||
|
description: I want to ask a question
|
||||||
|
title: "issue title"
|
||||||
|
labels:
|
||||||
|
- question
|
||||||
|
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
Use the search tool before opening a new issue.
|
||||||
|
Please read the document carefully.
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: ask
|
||||||
|
attributes:
|
||||||
|
label: "What do you want to ask?"
|
||||||
|
description: "Please describe the details of your questions."
|
||||||
|
validations:
|
||||||
|
required: true
|
Loading…
x
Reference in New Issue
Block a user