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
9a740aee
Commit
9a740aee
authored
Mar 30, 2018
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/master' into ce-to-ee-2018-03-30
parents
c7ec27fc
0ce07326
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
45 additions
and
22 deletions
+45
-22
app/assets/javascripts/gfm_auto_complete.js
app/assets/javascripts/gfm_auto_complete.js
+14
-5
app/views/shared/issuable/_sidebar.html.haml
app/views/shared/issuable/_sidebar.html.haml
+1
-1
changelogs/unreleased/Link_to_project_labels_page.yml
changelogs/unreleased/Link_to_project_labels_page.yml
+5
-0
changelogs/unreleased/escape-autocomplete-values-for-markdown.yml
...gs/unreleased/escape-autocomplete-values-for-markdown.yml
+5
-0
doc/administration/issue_closing_pattern.md
doc/administration/issue_closing_pattern.md
+2
-2
doc/integration/google.md
doc/integration/google.md
+1
-1
doc/policy/maintenance.md
doc/policy/maintenance.md
+1
-1
doc/update/10.5-to-10.6.md
doc/update/10.5-to-10.6.md
+4
-4
doc/user/project/pipelines/settings.md
doc/user/project/pipelines/settings.md
+1
-1
doc/workflow/todos.md
doc/workflow/todos.md
+1
-2
package.json
package.json
+0
-3
spec/javascripts/gfm_auto_complete_spec.js
spec/javascripts/gfm_auto_complete_spec.js
+9
-1
yarn.lock
yarn.lock
+1
-1
No files found.
app/assets/javascripts/gfm_auto_complete.js
View file @
9a740aee
...
...
@@ -54,6 +54,7 @@ class GfmAutoComplete {
alias
:
'
commands
'
,
searchKey
:
'
search
'
,
skipSpecialCharacterTest
:
true
,
skipMarkdownCharacterTest
:
true
,
data
:
GfmAutoComplete
.
defaultLoadingData
,
displayTpl
(
value
)
{
if
(
GfmAutoComplete
.
isLoading
(
value
))
return
GfmAutoComplete
.
Loading
.
template
;
...
...
@@ -376,15 +377,23 @@ class GfmAutoComplete {
return
$
.
fn
.
atwho
.
default
.
callbacks
.
filter
(
query
,
data
,
searchKey
);
},
beforeInsert
(
value
)
{
let
resultantValue
=
value
;
let
withoutAt
=
value
.
substring
(
1
);
const
at
=
value
.
charAt
();
if
(
value
&&
!
this
.
setting
.
skipSpecialCharacterTest
)
{
const
withoutAt
=
value
.
substring
(
1
);
const
regex
=
value
.
charAt
()
===
'
~
'
?
/
\W
|^
\d
+$/
:
/
\W
/
;
const
regex
=
at
===
'
~
'
?
/
\W
|^
\d
+$/
:
/
\W
/
;
if
(
withoutAt
&&
regex
.
test
(
withoutAt
))
{
resultantValue
=
`
${
value
.
charAt
()}
"
${
withoutAt
}
"`
;
withoutAt
=
`
"
${
withoutAt
}
"`
;
}
}
return
resultantValue
;
// We can ignore this for quick actions because they are processed
// before Markdown.
if
(
!
this
.
setting
.
skipMarkdownCharacterTest
)
{
withoutAt
=
withoutAt
.
replace
(
/
([
~
\-
_*`
])
/g
,
'
\\
$&
'
);
}
return
`
${
at
}${
withoutAt
}
`
;
},
matcher
(
flag
,
subtext
)
{
const
match
=
GfmAutoComplete
.
defaultMatcher
(
flag
,
subtext
,
this
.
app
.
controllers
);
...
...
app/views/shared/issuable/_sidebar.html.haml
View file @
9a740aee
...
...
@@ -85,7 +85,7 @@
=
dropdown_content
do
.js-due-date-calendar
-
if
@labels
&&
@labels
.
any?
-
if
@labels
-
selected_labels
=
issuable
.
labels
.block.labels
.sidebar-collapsed-icon.js-sidebar-labels-tooltip
{
title:
issuable_labels_tooltip
(
issuable
.
labels_array
),
data:
{
placement:
"left"
,
container:
"body"
}
}
...
...
changelogs/unreleased/Link_to_project_labels_page.yml
0 → 100644
View file @
9a740aee
---
title
:
Always display Labels section in issuable sidebar, even when the project has no labels
merge_request
:
18081
author
:
Branka Martinovic
type
:
fixed
changelogs/unreleased/escape-autocomplete-values-for-markdown.yml
0 → 100644
View file @
9a740aee
---
title
:
Escape Markdown characters properly when using autocomplete
merge_request
:
author
:
type
:
fixed
doc/administration/issue_closing_pattern.md
View file @
9a740aee
...
...
@@ -24,11 +24,11 @@ Because Rubular doesn't understand `%{issue_ref}`, you can replace this by
**For Omnibus installations**
1.
Open
`/etc/gitlab/gitlab.rb`
with your editor.
1.
Change the value of
`gitlab_rails['issue_closing_pattern']`
to a regular
1.
Change the value of
`gitlab_rails['
gitlab_
issue_closing_pattern']`
to a regular
expression of your liking:
```ruby
gitlab_rails['issue_closing_pattern'] = "((?:[Cc]los(?:e[sd]|ing)|[Ff]ix(?:e[sd]|ing)?) +(?:(?:issues? +)?%{issue_ref}(?:(?:, *| +and +)?))+)"
gitlab_rails['
gitlab_
issue_closing_pattern'] = "((?:[Cc]los(?:e[sd]|ing)|[Ff]ix(?:e[sd]|ing)?) +(?:(?:issues? +)?%{issue_ref}(?:(?:, *| +and +)?))+)"
```
1.
[Reconfigure] GitLab for the changes to take effect.
...
...
doc/integration/google.md
View file @
9a740aee
...
...
@@ -35,7 +35,7 @@ In Google's side:
1.
You should now be able to see a Client ID and Client secret. Note them down
or keep this page open as you will need them later.
1.
From the
**Dashboard**
select
**ENABLE APIS AND SERVICES > Compute > Google
Container
Engine API > Enable**
1.
From the
**Dashboard**
select
**ENABLE APIS AND SERVICES > Compute > Google
Kubernetes
Engine API > Enable**
On your GitLab server:
...
...
doc/policy/maintenance.md
View file @
9a740aee
...
...
@@ -44,7 +44,7 @@ This decision is made on a case-by-case basis.
## Upgrade recommendations
We encourage everyone to run the
latest stable release
to ensure that you can
We encourage everyone to run the
[
latest stable release
](
https://about.gitlab.com/blog/categories/release/
)
to ensure that you can
easily upgrade to the most secure and feature-rich GitLab experience. In order
to make sure you can easily run the most recent stable release, we are working
hard to keep the update process simple and reliable.
...
...
doc/update/10.5-to-10.6.md
View file @
9a740aee
...
...
@@ -103,7 +103,7 @@ rm go1.8.3.linux-amd64.tar.gz
```
bash
cd
/home/git/gitlab
sudo
-u
git
-H
git fetch
--all
sudo
-u
git
-H
git fetch
--all
--prune
sudo
-u
git
-H
git checkout
--
db/schema.rb
# local changes will be restored automatically
sudo
-u
git
-H
git checkout
--
locale
```
...
...
@@ -131,7 +131,7 @@ sudo -u git -H git checkout 10-6-stable-ee
```
bash
cd
/home/git/gitlab-shell
sudo
-u
git
-H
git fetch
--all
--tags
sudo
-u
git
-H
git fetch
--all
--tags
--prune
sudo
-u
git
-H
git checkout v
$(
</home/git/gitlab/GITLAB_SHELL_VERSION
)
sudo
-u
git
-H
bin/compile
```
...
...
@@ -146,7 +146,7 @@ If you are not using Linux you may have to run `gmake` instead of
```
bash
cd
/home/git/gitlab-workhorse
sudo
-u
git
-H
git fetch
--all
--tags
sudo
-u
git
-H
git fetch
--all
--tags
--prune
sudo
-u
git
-H
git checkout v
$(
</home/git/gitlab/GITLAB_WORKHORSE_VERSION
)
sudo
-u
git
-H
make
```
...
...
@@ -182,7 +182,7 @@ sudo -u git -H sed -i.pre-10.1 's/\[\[storages\]\]/[[storage]]/' /home/git/gital
```
shell
cd
/home/git/gitaly
sudo
-u
git
-H
git fetch
--all
--tags
sudo
-u
git
-H
git fetch
--all
--tags
--prune
sudo
-u
git
-H
git checkout v
$(
</home/git/gitlab/GITALY_SERVER_VERSION
)
sudo
-u
git
-H
make
```
...
...
doc/user/project/pipelines/settings.md
View file @
9a740aee
...
...
@@ -29,7 +29,7 @@ if the job surpasses the threshold, it is marked as failed.
### Timeout overriding on Runner level
> - [Introduced][ce-17221] in GitLab 10.
6
.
> - [Introduced][ce-17221] in GitLab 10.
7
.
Project defined timeout (either specific timeout set by user or the default
60 minutes timeout) may be
[
overridden on Runner level
][
timeout overriding
]
.
...
...
doc/workflow/todos.md
View file @
9a740aee
...
...
@@ -28,11 +28,10 @@ A Todo appears in your Todos dashboard when:
-
an issue or merge request is assigned to you,
-
you are
`@mentioned`
in an issue or merge request, be it the description of
the issue/merge request or in a comment,
-
you are
`@mentioned`
in a comment on a commit,
-
a job in the CI pipeline running for your merge request failed, but this
job is not allowed to fail.
>**Note:** Commenting on a commit will _not_ trigger a Todo.
### Directly addressed Todos
> [Introduced][ce-7926] in GitLab 9.0.
...
...
package.json
View file @
9a740aee
...
...
@@ -123,8 +123,5 @@
"
nodemon
"
:
"
^1.15.1
"
,
"
prettier
"
:
"
1.11.1
"
,
"
webpack-dev-server
"
:
"
^2.11.2
"
},
"optionalDependencies"
:
{
"fsevents"
:
"^1.1.3"
}
}
spec/javascripts/gfm_auto_complete_spec.js
View file @
9a740aee
...
...
@@ -81,13 +81,21 @@ describe('GfmAutoComplete', function () {
});
it
(
'
should quote if value contains any non-alphanumeric characters
'
,
()
=>
{
expect
(
beforeInsert
(
atwhoInstance
,
'
~label-20
'
)).
toBe
(
'
~"label-20"
'
);
expect
(
beforeInsert
(
atwhoInstance
,
'
~label-20
'
)).
toBe
(
'
~"label
\\
-20"
'
);
expect
(
beforeInsert
(
atwhoInstance
,
'
~label 20
'
)).
toBe
(
'
~"label 20"
'
);
});
it
(
'
should quote integer labels
'
,
()
=>
{
expect
(
beforeInsert
(
atwhoInstance
,
'
~1234
'
)).
toBe
(
'
~"1234"
'
);
});
it
(
'
should escape Markdown emphasis characters, except in the first character
'
,
()
=>
{
expect
(
beforeInsert
(
atwhoInstance
,
'
@_group
'
)).
toEqual
(
'
@
\\
_group
'
);
expect
(
beforeInsert
(
atwhoInstance
,
'
~_bug
'
)).
toEqual
(
'
~
\\
_bug
'
);
expect
(
beforeInsert
(
atwhoInstance
,
'
~a `bug`
'
)).
toEqual
(
'
~"a
\\
`bug
\\
`"
'
);
expect
(
beforeInsert
(
atwhoInstance
,
'
~a ~bug
'
)).
toEqual
(
'
~"a
\\
~bug"
'
);
expect
(
beforeInsert
(
atwhoInstance
,
'
~a **bug
'
)).
toEqual
(
'
~"a
\\
*
\\
*bug"
'
);
});
});
describe
(
'
DefaultOptions.matcher
'
,
function
()
{
...
...
yarn.lock
View file @
9a740aee
...
...
@@ -3605,7 +3605,7 @@ fs.realpath@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
fsevents@^1.0.0
, fsevents@^1.1.3
:
fsevents@^1.0.0:
version "1.1.3"
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.1.3.tgz#11f82318f5fe7bb2cd22965a108e9306208216d8"
dependencies:
...
...
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