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
74b3b482
Commit
74b3b482
authored
Aug 15, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
8cb66407
cf5d64e2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
6 deletions
+19
-6
Gemfile.lock
Gemfile.lock
+1
-1
changelogs/unreleased/sh-update-rugged-0-28-3.yml
changelogs/unreleased/sh-update-rugged-0-28-3.yml
+5
-0
lib/gitlab/danger/helper.rb
lib/gitlab/danger/helper.rb
+1
-1
spec/lib/gitlab/danger/helper_spec.rb
spec/lib/gitlab/danger/helper_spec.rb
+12
-4
No files found.
Gemfile.lock
View file @
74b3b482
...
...
@@ -876,7 +876,7 @@ GEM
rubyntlm (0.6.2)
rubypants (0.2.0)
rubyzip (1.2.2)
rugged (0.28.
2
)
rugged (0.28.
3.1
)
safe_yaml (1.0.4)
sanitize (4.6.6)
crass (~> 1.0.2)
...
...
changelogs/unreleased/sh-update-rugged-0-28-3.yml
0 → 100644
View file @
74b3b482
---
title
:
Upgrade Rugged to 0.28.3
merge_request
:
31794
author
:
type
:
security
lib/gitlab/danger/helper.rb
View file @
74b3b482
...
...
@@ -113,7 +113,7 @@ module Gitlab
yarn
\.
lock
)
\z
}x
=>
:frontend
,
%r{
\A
(ee/)?db/}
=>
:database
,
%r{
\A
(ee/)?db/
(?!fixtures)[^/]+
}
=>
:database
,
%r{
\A
(ee/)?lib/gitlab/(database|background_migration|sql|github_import)(/|
\.
rb)}
=>
:database
,
%r{
\A
(app/models/project_authorization|app/services/users/refresh_authorized_projects_service)(/|
\.
rb)}
=>
:database
,
%r{
\A
rubocop/cop/migration(/|
\.
rb)}
=>
:database
,
...
...
spec/lib/gitlab/danger/helper_spec.rb
View file @
74b3b482
...
...
@@ -101,13 +101,13 @@ describe Gitlab::Danger::Helper do
describe
'#changes_by_category'
do
it
'categorizes changed files'
do
expect
(
fake_git
).
to
receive
(
:added_files
)
{
%w[foo foo.md foo.rb foo.js db/foo lib/gitlab/database/foo.rb qa/foo ee/changelogs/foo.yml]
}
expect
(
fake_git
).
to
receive
(
:added_files
)
{
%w[foo foo.md foo.rb foo.js db/
migrate/
foo lib/gitlab/database/foo.rb qa/foo ee/changelogs/foo.yml]
}
allow
(
fake_git
).
to
receive
(
:modified_files
)
{
[]
}
allow
(
fake_git
).
to
receive
(
:renamed_files
)
{
[]
}
expect
(
helper
.
changes_by_category
).
to
eq
(
backend:
%w[foo.rb]
,
database:
%w[db/foo lib/gitlab/database/foo.rb]
,
database:
%w[db/
migrate/
foo lib/gitlab/database/foo.rb]
,
frontend:
%w[foo.js]
,
none:
%w[ee/changelogs/foo.yml foo.md]
,
qa:
%w[qa/foo]
,
...
...
@@ -173,8 +173,13 @@ describe Gitlab::Danger::Helper do
'ee/FOO_VERSION'
|
:unknown
'db/foo'
|
:database
'ee/db/foo'
|
:database
'db/schema.rb'
|
:database
'db/migrate/foo'
|
:database
'db/post_migrate/foo'
|
:database
'ee/db/migrate/foo'
|
:database
'ee/db/post_migrate/foo'
|
:database
'ee/db/geo/migrate/foo'
|
:database
'ee/db/geo/post_migrate/foo'
|
:database
'app/models/project_authorization.rb'
|
:database
'app/services/users/refresh_authorized_projects_service.rb'
|
:database
'lib/gitlab/background_migration.rb'
|
:database
...
...
@@ -188,6 +193,9 @@ describe Gitlab::Danger::Helper do
'lib/gitlab/sql/foo'
|
:database
'rubocop/cop/migration/foo'
|
:database
'db/fixtures/foo.rb'
|
:backend
'ee/db/fixtures/foo.rb'
|
:backend
'qa/foo'
|
:qa
'ee/qa/foo'
|
:qa
...
...
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