Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

source 'https://rubygems.org'

gemspec
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Errbit Github Plugin

[![RSpec](https://github.com/errbit/errbit_github_plugin/actions/workflows/rspec.yml/badge.svg)](https://github.com/errbit/errbit_github_plugin/actions/workflows/rspec.yml)
[![RSpec on JRuby](https://github.com/errbit/errbit_github_plugin/actions/workflows/jruby.yml/badge.svg)](https://github.com/errbit/errbit_github_plugin/actions/workflows/jruby.yml)
[![Ruby Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://github.com/standardrb/standard)

This plugin provides GitHub issue tracker integration for Errbit and it is the
only plugin included by default in Errbit.
2 changes: 2 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# frozen_string_literal: true

require "bundler/gem_tasks"
2 changes: 2 additions & 0 deletions errbit_github_plugin.gemspec
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'errbit_github_plugin/version'
Expand Down
2 changes: 2 additions & 0 deletions lib/errbit_github_plugin.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "errbit_github_plugin/version"
require 'errbit_github_plugin/error'
require 'errbit_github_plugin/issue_tracker'
Expand Down
2 changes: 2 additions & 0 deletions lib/errbit_github_plugin/error.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module ErrbitGithubPlugin
class AuthenticationError < Exception; end
end
10 changes: 6 additions & 4 deletions lib/errbit_github_plugin/issue_tracker.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
# frozen_string_literal: true

require 'octokit'

module ErrbitGithubPlugin
class IssueTracker < ErrbitPlugin::IssueTracker

LABEL = 'github'

NOTE = 'Please configure your github repository in the <strong>GITHUB ' <<
'REPO</strong> field above.<br/> Instead of providing your ' <<
'username & password, you can link your Github account to your ' <<
'user profile, and allow Errbit to create issues using your ' <<
NOTE = 'Please configure your github repository in the <strong>GITHUB ' \
'REPO</strong> field above.<br/> Instead of providing your ' \
'username & password, you can link your Github account to your ' \
'user profile, and allow Errbit to create issues using your ' \
'OAuth token.'

FIELDS = {
Expand Down
2 changes: 2 additions & 0 deletions lib/errbit_github_plugin/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module ErrbitGithubPlugin
VERSION = '0.4.0'
end
2 changes: 2 additions & 0 deletions spec/issue_tracker_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

describe ErrbitGithubPlugin::IssueTracker do
describe '.label' do
it 'return LABEL' do
Expand Down
2 changes: 2 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'simplecov'

SimpleCov.start
Expand Down