Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a1944072
Commit
a1944072
authored
Jul 12, 2021
by
Marcin Sedlak-Jakubowski
Committed by
Heinrich Lee Yu
Jul 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Review and revise Campfire integration UI text
parent
2723df2e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
58 additions
and
10 deletions
+58
-10
app/models/integrations/campfire.rb
app/models/integrations/campfire.rb
+29
-3
doc/api/services.md
doc/api/services.md
+8
-7
locale/gitlab.pot
locale/gitlab.pot
+21
-0
No files found.
app/models/integrations/campfire.rb
View file @
a1944072
...
@@ -2,6 +2,8 @@
...
@@ -2,6 +2,8 @@
module
Integrations
module
Integrations
class
Campfire
<
Integration
class
Campfire
<
Integration
include
ActionView
::
Helpers
::
UrlHelper
prop_accessor
:token
,
:subdomain
,
:room
prop_accessor
:token
,
:subdomain
,
:room
validates
:token
,
presence:
true
,
if: :activated?
validates
:token
,
presence:
true
,
if: :activated?
...
@@ -13,15 +15,39 @@ module Integrations
...
@@ -13,15 +15,39 @@ module Integrations
'Send notifications about push events to Campfire chat rooms.'
'Send notifications about push events to Campfire chat rooms.'
end
end
def
help
docs_link
=
link_to
_
(
'Learn more.'
),
Rails
.
application
.
routes
.
url_helpers
.
help_page_url
(
'api/services'
,
anchor:
'campfire'
),
target:
'_blank'
,
rel:
'noopener noreferrer'
s_
(
'CampfireService|Send notifications about push events to Campfire chat rooms. %{docs_link}'
).
html_safe
%
{
docs_link:
docs_link
.
html_safe
}
end
def
self
.
to_param
def
self
.
to_param
'campfire'
'campfire'
end
end
def
fields
def
fields
[
[
{
type:
'text'
,
name:
'token'
,
placeholder:
''
,
required:
true
},
{
{
type:
'text'
,
name:
'subdomain'
,
placeholder:
''
},
type:
'text'
,
{
type:
'text'
,
name:
'room'
,
placeholder:
''
}
name:
'token'
,
title:
_
(
'Campfire token'
),
placeholder:
''
,
help:
s_
(
'CampfireService|API authentication token from Campfire.'
),
required:
true
},
{
type:
'text'
,
name:
'subdomain'
,
title:
_
(
'Campfire subdomain (optional)'
),
placeholder:
''
,
help:
s_
(
'CampfireService|The %{code_open}.campfirenow.com%{code_close} subdomain.'
)
%
{
code_open:
'<code>'
.
html_safe
,
code_close:
'</code>'
.
html_safe
}
},
{
type:
'text'
,
name:
'room'
,
title:
_
(
'Campfire room ID (optional)'
),
placeholder:
'123456'
,
help:
s_
(
'CampfireService|From the end of the room URL.'
)
}
]
]
end
end
...
...
doc/api/services.md
View file @
a1944072
...
@@ -258,7 +258,8 @@ GET /projects/:id/services/buildkite
...
@@ -258,7 +258,8 @@ GET /projects/:id/services/buildkite
## Campfire
## Campfire
Simple web-based real-time group chat
Send notifications about push events to Campfire chat rooms.
Note that
[
new users can no longer sign up for Campfire
](
https://basecamp.com/retired/campfire
)
.
### Create/Edit Campfire service
### Create/Edit Campfire service
...
@@ -270,12 +271,12 @@ PUT /projects/:id/services/campfire
...
@@ -270,12 +271,12 @@ PUT /projects/:id/services/campfire
Parameters:
Parameters:
| Parameter
| Type | Required | Description
|
| Parameter
| Type | Required | Description
|
|
--------- | ---- | -------- | -----------
|
|
---------------|---------|----------|---------------------------------------------------------------------------------------------
|
|
`token`
| string | true | Campfire token
|
|
`token`
| string | true | Campfire API token. To find it, log into Campfire and select
**My info**
.
|
|
`subdomain`
| string | false | Campfire subdomain
|
|
`subdomain`
| string | false | Campfire subdomain. Text between
`https://`
and
`.campfirenow.com`
when you're logged in.
|
|
`room`
| string | false | Campfire room
|
|
`room`
| string | false | Campfire room. The last part of the URL when you're in a room.
|
|
`push_events`
| boolean | false
| Enable notifications for push events
|
|
`push_events`
| boolean | false
| Enable notifications for push events.
|
### Delete Campfire service
### Delete Campfire service
...
...
locale/gitlab.pot
View file @
a1944072
...
@@ -5938,6 +5938,27 @@ msgstr ""
...
@@ -5938,6 +5938,27 @@ msgstr ""
msgid "Callback URL"
msgid "Callback URL"
msgstr ""
msgstr ""
msgid "Campfire room ID (optional)"
msgstr ""
msgid "Campfire subdomain (optional)"
msgstr ""
msgid "Campfire token"
msgstr ""
msgid "CampfireService|API authentication token from Campfire."
msgstr ""
msgid "CampfireService|From the end of the room URL."
msgstr ""
msgid "CampfireService|Send notifications about push events to Campfire chat rooms. %{docs_link}"
msgstr ""
msgid "CampfireService|The %{code_open}.campfirenow.com%{code_close} subdomain."
msgstr ""
msgid "Can be manually deployed to"
msgid "Can be manually deployed to"
msgstr ""
msgstr ""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment