Commit d05acd6e9adfc9c18270b63e70304e02aab4cbad

Authored by Andrew Kane
1 parent 885f0559

Added issue templates [skip ci]

.github/ISSUE_TEMPLATE.md
... ... @@ -1,7 +0,0 @@
1   -Hi,
2   -
3   -Before creating an issue, please check out the Contributing Guide:
4   -
5   -https://github.com/ankane/searchkick/blob/master/CONTRIBUTING.md
6   -
7   -Thanks!
.github/ISSUE_TEMPLATE/bug_report.md 0 โ†’ 100644
... ... @@ -0,0 +1,53 @@
  1 +---
  2 +name: Bug report
  3 +about: Create a report to help us improve
  4 +title: ''
  5 +labels: ''
  6 +assignees: ''
  7 +
  8 +---
  9 +
  10 +**Describe the bug**
  11 +A clear and concise description of what the bug is.
  12 +
  13 +**To Reproduce**
  14 +
  15 +Use this code to reproduce:
  16 +
  17 +```ruby
  18 +require "bundler/inline"
  19 +
  20 +gemfile do
  21 + source "https://rubygems.org"
  22 +
  23 + gem "activerecord", require: "active_record"
  24 + gem "activejob", require: "active_job"
  25 + gem "sqlite3"
  26 + gem "searchkick", git: "https://github.com/ankane/searchkick.git"
  27 +end
  28 +
  29 +puts "Searchkick version: #{Searchkick::VERSION}"
  30 +puts "Elasticsearch version: #{Searchkick.server_version}"
  31 +
  32 +ActiveRecord::Base.establish_connection adapter: "sqlite3", database: ":memory:"
  33 +ActiveJob::Base.queue_adapter = :inline
  34 +
  35 +ActiveRecord::Migration.create_table :products do |t|
  36 + t.string :name
  37 +end
  38 +
  39 +class Product < ActiveRecord::Base
  40 + searchkick
  41 +end
  42 +
  43 +Product.reindex
  44 +Product.create!(name: "Test")
  45 +Product.search_index.refresh
  46 +p Product.search("test", fields: [:name]).response
  47 +```
  48 +
  49 +**Expected behavior**
  50 +A clear and concise description of what you expected to happen.
  51 +
  52 +**Additional context**
  53 +Add any other context about the problem here.
... ...
.github/ISSUE_TEMPLATE/config.yml 0 โ†’ 100644
... ... @@ -0,0 +1,5 @@
  1 +blank_issues_enabled: false
  2 +contact_links:
  3 + - name: Help
  4 + url: https://stackoverflow.com/questions/tagged/searchkick
  5 + about: Ask and answer questions here
... ...
.github/ISSUE_TEMPLATE/feature_request.md 0 โ†’ 100644
... ... @@ -0,0 +1,20 @@
  1 +---
  2 +name: Feature request
  3 +about: Suggest an idea for this project
  4 +title: ''
  5 +labels: ''
  6 +assignees: ''
  7 +
  8 +---
  9 +
  10 +**Is your feature request related to a problem? Please describe.**
  11 +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
  12 +
  13 +**Describe the solution you'd like**
  14 +A clear and concise description of what you want to happen.
  15 +
  16 +**Describe alternatives you've considered**
  17 +A clear and concise description of any alternative solutions or features you've considered.
  18 +
  19 +**Additional context**
  20 +Add any other context or screenshots about the feature request here.
... ...