Skip to content

Commit 78ef2ca

Browse files
authored
Merge pull request #2312 from bhcleek/issue/config
fix :GoReportGitHubIssue
2 parents aed548a + 13111c3 commit 78ef2ca

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/ISSUE_TEMPLATE.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@ If possible, please provide clear steps for reproducing the problem.
66

77
### What did you expect to happen?
88

9-
109
### What happened instead?
1110

12-
1311
### Configuration (**MUST** fill this out):
1412

1513
#### vim-go version:
@@ -20,10 +18,13 @@ If possible, please provide clear steps for reproducing the problem.
2018
</pre></details>
2119

2220
#### Vim version (first three lines from `:version`):
21+
<!-- :version -->
2322

24-
#### Go version (`go version`):
23+
#### Go version (`go version`):
24+
<!-- go version -->
2525

2626
#### Go environment
2727
<details><summary><code>go env</code> Output:</summary><br><pre>
28+
<!-- go env -->
2829

2930
</pre></details>

autoload/go/issue.vim

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ function! s:issuebody() abort
1818
for l in lines
1919
let body = add(body, l)
2020

21-
if l =~ '^\* Vim version'
21+
if l =~ '^<!-- :version'
2222
redir => out
2323
silent version
2424
redir END
2525
let body = extend(body, split(out, "\n")[0:2])
26-
elseif l =~ '^\* Go version'
26+
elseif l =~ '^<!-- go version -->'
2727
let [out, err] = go#util#Exec(['go', 'version'])
2828
let body = add(body, substitute(l:out, rtrimpat, '', ''))
29-
elseif l =~ '^\* Go environment'
29+
elseif l =~ '^<!-- go env -->'
3030
let [out, err] = go#util#Exec(['go', 'env'])
3131
let body = add(body, substitute(l:out, rtrimpat, '', ''))
3232
endif

0 commit comments

Comments
 (0)