From c553b5435a78892c2c8f85ddd2cef5d3deb8cab6 Mon Sep 17 00:00:00 2001 From: Steven Arcangeli Date: Wed, 11 Jan 2023 09:17:31 -0800 Subject: [PATCH] ci: bug report template is more aggressive about minimal configs --- .github/ISSUE_TEMPLATE/bug_report.yml | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index f691be1..2c4cc29 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -53,20 +53,27 @@ body: attributes: label: Directory structure description: The structure of the directory used to reproduce the bug + placeholder: | + a/b/foo.txt + a/bar.md + a/c/baz.txt validations: required: false - type: textarea attributes: label: Repro - description: Minimal `init.lua` to reproduce this issue. Save as `repro.lua` and run with `nvim -u repro.lua` + description: + Minimal `init.lua` to reproduce this issue. Save as `repro.lua` and run with `nvim -u repro.lua` This uses lazy.nvim (a plugin manager). You can add your config with the `config` key the same way you can do with packer.nvim. value: | - -- DO NOT change the paths and don't remove the colorscheme + -- save as repro.lua + -- run with nvim -u repro.lua + -- DO NOT change the paths local root = vim.fn.fnamemodify("./.repro", ":p") -- set stdpaths to use .repro - for _, name in ipairs({ "config", "data", "state", "cache" }) do + for _, name in ipairs({ "config", "data", "state", "runtime", "cache" }) do vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name end @@ -90,7 +97,9 @@ body: { "stevearc/oil.nvim", config = function() - require"oil".setup() -- add any needed settings here + require("oil").setup({ + -- add any needed settings here + }) end, }, -- add any other plugins here @@ -103,4 +112,10 @@ body: -- add anything else here render: Lua validations: - required: false + required: true + - type: checkboxes + attributes: + label: Did you check the bug with a clean config? + options: + - label: I have confirmed that the bug reproduces with `nvim -u repro.lua` using the repro.lua file above. + required: true