From cb5ddcd6b676116916c7f29f19e32e84285f2e8b Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Sat, 23 Jul 2022 10:43:26 -0500 Subject: [PATCH] Update issue templates --- .github/ISSUE_TEMPLATE/bug_report.md | 52 ++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 000000000..e3e157466 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,52 @@ +--- +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: + +If possible, please provide runnable example such as: + +```go +package main + +import ( + "context" + "log" + "os" + + "github.com/jackc/pgx/v4" +) + +func main() { + conn, err := pgx.Connect(context.Background(), os.Getenv("DATABASE_URL")) + if err != nil { + log.Fatal(err) + } + defer conn.Close(context.Background()) + + // Your code here... +} +``` + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Actual behavior** +A clear and concise description of what actually happened. + +**Version** + - Go: `$ go version` -> [e.g. go version go1.18.3 darwin/amd64] + - PostgreSQL: `$ psql --no-psqlrc --tuples-only -c 'select version()'` -> [e.g. PostgreSQL 14.4 on x86_64-apple-darwin21.5.0, compiled by Apple clang version 13.1.6 (clang-1316.0.21.2.5), 64-bit] + - pgx: `$ grep 'github.com/jackc/pgx/v[0-9]' go.mod` -> [e.g. v4.16.1] + +**Additional context** +Add any other context about the problem here.