Commit ae965046 authored by James Edwards-Jones's avatar James Edwards-Jones

GitHub service appears in list of services

parent b89accf8
...@@ -137,6 +137,7 @@ class Project < ActiveRecord::Base ...@@ -137,6 +137,7 @@ class Project < ActiveRecord::Base
has_one :mock_monitoring_service has_one :mock_monitoring_service
has_one :microsoft_teams_service has_one :microsoft_teams_service
has_one :packagist_service has_one :packagist_service
has_one :github_service
# TODO: replace these relations with the fork network versions # TODO: replace these relations with the fork network versions
has_one :forked_project_link, foreign_key: "forked_to_project_id" has_one :forked_project_link, foreign_key: "forked_to_project_id"
......
...@@ -240,6 +240,7 @@ class Service < ActiveRecord::Base ...@@ -240,6 +240,7 @@ class Service < ActiveRecord::Base
external_wiki external_wiki
flowdock flowdock
gemnasium gemnasium
github
hipchat hipchat
irker irker
jenkins jenkins
......
...@@ -35,6 +35,7 @@ Click on the service links to see further configuration instructions and details ...@@ -35,6 +35,7 @@ Click on the service links to see further configuration instructions and details
| External Wiki | Replaces the link to the internal wiki with a link to an external wiki | | External Wiki | Replaces the link to the internal wiki with a link to an external wiki |
| Flowdock | Flowdock is a collaboration web app for technical teams | | Flowdock | Flowdock is a collaboration web app for technical teams |
| Gemnasium | Gemnasium monitors your project dependencies and alerts you about updates and security vulnerabilities | | Gemnasium | Gemnasium monitors your project dependencies and alerts you about updates and security vulnerabilities |
| GitHub | Sends pipeline notifications to GitHub |
| [HipChat](hipchat.md) | Private group chat and IM | | [HipChat](hipchat.md) | Private group chat and IM |
| [Irker (IRC gateway)](irker.md) | Send IRC messages, on update, to a list of recipients through an Irker gateway | | [Irker (IRC gateway)](irker.md) | Send IRC messages, on update, to a list of recipients through an Irker gateway |
| [JIRA](jira.md) | JIRA issue tracker | | [JIRA](jira.md) | JIRA issue tracker |
......
class GithubService < Service
def title
'GitHub'
end
def description
'Sends pipeline notifications to GitHub'
end
def self.to_param
'github'
end
end
...@@ -22,5 +22,6 @@ describe 'User views services' do ...@@ -22,5 +22,6 @@ describe 'User views services' do
expect(page).to have_content('Asana') expect(page).to have_content('Asana')
expect(page).to have_content('Irker (IRC gateway)') expect(page).to have_content('Irker (IRC gateway)')
expect(page).to have_content('Packagist') expect(page).to have_content('Packagist')
expect(page).to have_content('GitHub')
end end
end end
...@@ -44,6 +44,7 @@ describe Project do ...@@ -44,6 +44,7 @@ describe Project do
it { is_expected.to have_one(:bamboo_service) } it { is_expected.to have_one(:bamboo_service) }
it { is_expected.to have_one(:teamcity_service) } it { is_expected.to have_one(:teamcity_service) }
it { is_expected.to have_one(:jira_service) } it { is_expected.to have_one(:jira_service) }
it { is_expected.to have_one(:github_service) }
it { is_expected.to have_one(:redmine_service) } it { is_expected.to have_one(:redmine_service) }
it { is_expected.to have_one(:custom_issue_tracker_service) } it { is_expected.to have_one(:custom_issue_tracker_service) }
it { is_expected.to have_one(:bugzilla_service) } it { is_expected.to have_one(:bugzilla_service) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment