docs: revamp GitHub contribution and support templates (#4364)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
- Replace the old issue template with new, structured YAML templates for bug reports and feature requests - Add a configuration file that directs users to relevant documentation and support links - Update the pull request template to use a checklist format and clarify documentation requirements
authored by Bo-Yi Wu · committed by GitHub · parent 1bbbec0 · Browse files · 5 files·+98 added−55 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Trailers
- Signed-off-by: appleboy <appleboy.tw@gmail.com>
Diff stats
5 files+98 added−55 removed
- other:+98 added−55 removed
Provenance
- Commit
7925414- Tree
5755edd- Author
Bo-Yi Wu <appleboy.tw@gmail.com>- Committer
GitHub <noreply@github.com>- Parent
1bbbec0
5 files changed+98 added−55 removed
added:.github/ISSUE_TEMPLATE/bug-report.yaml+60 added
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960name: Bug Reportdescription: Found something you weren't expecting? Report it here!labels: ["type/bug"]body: - type: markdown attributes: value: | NOTE: If your issue is a security concern, please send an email to appleboy.tw@gmail.com instead of opening a public issue. - type: markdown attributes: value: | 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions problems on our Discussions Forum (https://github.com/gin-gonic/gin/discussions). 3. Make sure you are using the latest release and take a moment to check that your issue hasn't been reported before. - type: textarea id: description attributes: label: Description description: | Please provide a description of your issue here, with a URL if you were able to reproduce the issue (see below) - type: input id: gin-ver attributes: label: Gin Version description: Gin version (or commit reference) of your instance validations: required: true - type: dropdown id: can-reproduce attributes: label: Can you reproduce the bug? description: | If so, please write the steps to reproduce the bug. options: - "Yes" - "No" validations: required: true - type: markdown attributes: value: | It's really important to provide pertinent logs Please read https://docs.gitea.com/administration/logging-config#collecting-logs-for-help In addition, if your problem relates to git commands set `RUN_MODE=dev` at the top of app.ini - type: textarea id: source-code attributes: label: Source Code description: If this issue involves source code, please provide a minimal reproducible example - type: input id: go-ver attributes: label: Go Version description: The version of Go running on the server - type: input id: os-ver attributes: label: Operating System description: The operating system you are using to run Ginadded:.github/ISSUE_TEMPLATE/config.yml+11 added
1234567891011blank_issues_enabled: falsecontact_links: - name: Go.dev API Documentation url: https://pkg.go.dev/github.com/gin-gonic/gin about: Comprehensive API documentation for Gin. - name: Gin User Guides url: https://gin-gonic.com/ about: In-depth user guides and tutorials for using Gin. - name: Discussions Forum url: https://github.com/gin-gonic/gin/discussions about: Questions and configuration or deployment problems can also be discussed.added:.github/ISSUE_TEMPLATE/feature-request.yaml+18 added
123456789101112131415161718name: Feature Requestdescription: Got an idea for a feature that Gin doesn't have currently? Submit your idea here!labels: ["type/proposal"]body: - type: markdown attributes: value: | 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions problems on our Discussions Forum (https://github.com/gin-gonic/gin/discussions). 3. Please take a moment to check that your feature hasn't already been suggested. - type: textarea id: description attributes: label: Feature Description placeholder: | I think it would be great if Gin had... validations: required: truedeleted:.github/ISSUE_TEMPLATE.md-49 removed
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849- 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/worldHello 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:modified:.github/PULL_REQUEST_TEMPLATE.md+9 added-6 removed
12345612345678910- With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modify tests to cover your proposed code changes. - If your pull request contains a new feature, please document it on the README.# Pull Request Checklist
Please ensure your pull request meets the following requirements:
- [ ] Open your pull request against the `master` branch.- [ ] All tests pass in available continuous integration systems (e.g., GitHub Actions).- [ ] Tests are added or modified as needed to cover code changes.- [ ] If the pull request introduces a new feature, the feature is documented in the `docs/doc.md`.
Thank you for contributing!