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
8eab001f
Commit
8eab001f
authored
Aug 24, 2018
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/master' into ce-to-ee-2018-08-24
parents
2031fb20
ee2aaa29
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
app/helpers/projects_helper.rb
app/helpers/projects_helper.rb
+4
-2
app/views/projects/edit.html.haml
app/views/projects/edit.html.haml
+1
-1
danger/changelog/Dangerfile
danger/changelog/Dangerfile
+4
-2
No files found.
app/helpers/projects_helper.rb
View file @
8eab001f
...
...
@@ -449,7 +449,7 @@ module ProjectsHelper
end
def
project_permissions_panel_data
(
project
)
data
=
{
{
currentSettings:
project_permissions_settings
(
project
),
canChangeVisibilityLevel:
can_change_visibility_level?
(
project
,
current_user
),
allowedVisibilityOptions:
project_allowed_visibility_levels
(
project
),
...
...
@@ -459,8 +459,10 @@ module ProjectsHelper
lfsAvailable:
Gitlab
.
config
.
lfs
.
enabled
,
lfsHelpPath:
help_page_path
(
'workflow/lfs/manage_large_binaries_with_git_lfs'
)
}
end
data
.
to_json
.
html_safe
def
project_permissions_panel_data_json
(
project
)
project_permissions_panel_data
(
project
).
to_json
.
html_safe
end
def
project_allowed_visibility_levels
(
project
)
...
...
app/views/projects/edit.html.haml
View file @
8eab001f
...
...
@@ -78,7 +78,7 @@
=
form_for
[
@project
.
namespace
.
becomes
(
Namespace
),
@project
],
remote:
true
,
html:
{
multipart:
true
,
class:
"sharing-permissions-form"
},
authenticity_token:
true
do
|
f
|
%input
{
name:
'update_section'
,
type:
'hidden'
,
value:
'js-shared-permissions'
}
-# haml-lint:disable InlineJavaScript
%script
.js-project-permissions-form-data
{
type:
"application/json"
}=
project_permissions_panel_data
(
@project
)
%script
.js-project-permissions-form-data
{
type:
"application/json"
}=
project_permissions_panel_data
_json
(
@project
)
.js-project-permissions-form
=
f
.
submit
'Save changes'
,
class:
"btn btn-save"
...
...
danger/changelog/Dangerfile
View file @
8eab001f
...
...
@@ -53,9 +53,11 @@ end
changelog_needed
=
(
gitlab
.
mr_labels
&
NO_CHANGELOG_LABELS
).
empty?
changelog_found
=
git
.
added_files
.
find
{
|
path
|
path
=~
%r{
\A
(ee/)?(changelogs/unreleased)(-ee)?/}
}
mr_title
=
gitlab
.
mr_json
[
"title"
].
gsub
(
/^WIP: */
,
''
)
if
git
.
modified_files
.
include?
(
"CHANGELOG.md"
)
fail
"**CHANGELOG.md was edited.** Please remove the additions and create a CHANGELOG entry.
\n\n
"
+
format
(
CREATE_CHANGELOG_MESSAGE
,
mr_iid:
gitlab
.
mr_json
[
"iid"
],
mr_title:
gitlab
.
mr_json
[
"title"
]
,
labels:
presented_no_changelog_labels
)
format
(
CREATE_CHANGELOG_MESSAGE
,
mr_iid:
gitlab
.
mr_json
[
"iid"
],
mr_title:
mr_title
,
labels:
presented_no_changelog_labels
)
end
if
changelog_needed
...
...
@@ -63,6 +65,6 @@ if changelog_needed
check_changelog
(
changelog_found
)
else
warn
"**[CHANGELOG missing](https://docs.gitlab.com/ce/development/changelog.html).**
\n\n
"
+
format
(
CREATE_CHANGELOG_MESSAGE
,
mr_iid:
gitlab
.
mr_json
[
"iid"
],
mr_title:
gitlab
.
mr_json
[
"title"
]
,
labels:
presented_no_changelog_labels
)
format
(
CREATE_CHANGELOG_MESSAGE
,
mr_iid:
gitlab
.
mr_json
[
"iid"
],
mr_title:
mr_title
,
labels:
presented_no_changelog_labels
)
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