From 1b9b16ca3e27b154380376295146efd16ce5af32 Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Sat, 28 Aug 2021 11:19:31 -0700 Subject: [PATCH 1/3] First attempt at a template for bugs --- .github/ISSUE_TEMPLATE/BUG_REPORT.yml | 58 +++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/BUG_REPORT.yml diff --git a/.github/ISSUE_TEMPLATE/BUG_REPORT.yml b/.github/ISSUE_TEMPLATE/BUG_REPORT.yml new file mode 100644 index 0000000000..1e1bc23f62 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/BUG_REPORT.yml @@ -0,0 +1,58 @@ +name: Bug Report +description: File a bug report +labels: [bug, triage] +body: + - type: textarea + id: what-happened + attributes: + label: What happened? + description: Also tell us, what did you expect to happen? + placeholder: Tell us what you see! + value: "A bug happened!" + validations: + required: true + - type: textarea + id: logs + attributes: + label: Relevant log output + description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks. + render: shell + - type: dropdown + id: version + attributes: + label: Version + description: What version of sqlc are you running? + multiple: false + options: + - 1.9.0 + - 1.8.0 + - 1.7.0 + - Other + validations: + required: true + - type: dropdown + id: os + attributes: + label: What operating system are you using? + multiple: true + options: + - Linux + - Windows + - macOS + - type: dropdown + id: engines + attributes: + label: What database engines are you using? + multiple: true + options: + - PostgreSQL + - MySQL + - type: dropdown + id: languages + attributes: + label: What type code are you generating? + multiple: true + options: + - Go + - Python + - Kotlin From 6ed0c682eddaedd11dfb1ae79a7df2019e9bb6e3 Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Sat, 28 Aug 2021 11:23:00 -0700 Subject: [PATCH 2/3] Add SQL schema and queries --- .github/ISSUE_TEMPLATE/BUG_REPORT.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/ISSUE_TEMPLATE/BUG_REPORT.yml b/.github/ISSUE_TEMPLATE/BUG_REPORT.yml index 1e1bc23f62..bb2c68694b 100644 --- a/.github/ISSUE_TEMPLATE/BUG_REPORT.yml +++ b/.github/ISSUE_TEMPLATE/BUG_REPORT.yml @@ -17,6 +17,18 @@ body: label: Relevant log output description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks. render: shell + - type: textarea + id: schema + attributes: + label: Database schema + description: Please include definitions for the relevant database tables. This will be automatically formatted as SQL, so no need for backticks. + render: sql + - type: textarea + id: queries + attributes: + label: SQL queries + description: Please include the SQL queries causing issues. This will be automatically formatted as SQL, so no need for backticks. + render: sql - type: dropdown id: version attributes: From 5ea67d92174ccc4fb49174f3b4a0764cf870b2bd Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Sat, 28 Aug 2021 11:27:45 -0700 Subject: [PATCH 3/3] Add input field for playground link --- .github/ISSUE_TEMPLATE/BUG_REPORT.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/ISSUE_TEMPLATE/BUG_REPORT.yml b/.github/ISSUE_TEMPLATE/BUG_REPORT.yml index bb2c68694b..b137f6a9af 100644 --- a/.github/ISSUE_TEMPLATE/BUG_REPORT.yml +++ b/.github/ISSUE_TEMPLATE/BUG_REPORT.yml @@ -29,6 +29,12 @@ body: label: SQL queries description: Please include the SQL queries causing issues. This will be automatically formatted as SQL, so no need for backticks. render: sql + - type: input + id: playground + attributes: + label: Playground URL + description: "Link to a reproduction of the issue on the sqlc playground" + placeholder: "https://play.sqlc.dev/" - type: dropdown id: version attributes: