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
eced61d9
Commit
eced61d9
authored
May 02, 2018
by
Toon Claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass the result as a positive bool
parent
5e1d5357
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
app/workers/repository_check/single_repository_worker.rb
app/workers/repository_check/single_repository_worker.rb
+4
-3
No files found.
app/workers/repository_check/single_repository_worker.rb
View file @
eced61d9
...
...
@@ -5,15 +5,16 @@ module RepositoryCheck
def
perform
(
project_id
)
project
=
Project
.
find
(
project_id
)
result
=
check
(
project
)
save_result
(
project
,
!
check
)
save_result
(
project
,
result
)
end
private
def
save_result
(
project
,
failure
)
def
save_result
(
project
,
result
)
project
.
update_columns
(
last_repository_check_failed:
failure
,
last_repository_check_failed:
!
result
,
last_repository_check_at:
Time
.
now
)
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