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
048859b8
Commit
048859b8
authored
Mar 02, 2022
by
Justin Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove conditions for PivotalTracker
parent
b545d3a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
28 deletions
+0
-28
app/models/integrations/pivotaltracker.rb
app/models/integrations/pivotaltracker.rb
+0
-10
spec/models/integrations/pivotaltracker_spec.rb
spec/models/integrations/pivotaltracker_spec.rb
+0
-18
No files found.
app/models/integrations/pivotaltracker.rb
View file @
048859b8
...
...
@@ -71,18 +71,8 @@ module Integrations
end
end
def
activate_disabled_reason
{
trackers:
external_issue_trackers
}
if
external_issue_trackers
.
any?
end
private
def
external_issue_trackers
return
[]
unless
project_level?
@external_issue_trackers
||=
project
.
integrations
.
external_issue_trackers
end
def
allowed_branch?
(
ref
)
return
true
unless
ref
.
present?
&&
restrict_to_branch
.
present?
...
...
spec/models/integrations/pivotaltracker_spec.rb
View file @
048859b8
...
...
@@ -93,22 +93,4 @@ RSpec.describe Integrations::Pivotaltracker do
end
end
end
describe
'#activate_disabled_reason'
do
let
(
:integration
)
{
build
(
:pivotaltracker_integration
,
project:
project
)
}
let_it_be_with_refind
(
:project
)
{
create
:project
}
subject
{
integration
.
activate_disabled_reason
}
context
'when there is an external issue tracker integration'
do
let_it_be
(
:custom_tracker
)
{
create
(
:custom_issue_tracker_integration
,
project:
project
)
}
it
{
is_expected
.
to
eq
(
trackers:
[
custom_tracker
])
}
end
context
'when there is no external issue tracker integration'
do
it
{
is_expected
.
to
be
(
nil
)
}
end
end
end
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