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
1bbd091b
Commit
1bbd091b
authored
Apr 20, 2020
by
Kaitlyn Chappell
Committed by
Marcin Sedlak-Jakubowski
Apr 20, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update documentation for issue closing pattern
parent
6d8264b8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
doc/administration/issue_closing_pattern.md
doc/administration/issue_closing_pattern.md
+2
-2
doc/user/project/issues/managing_issues.md
doc/user/project/issues/managing_issues.md
+1
-1
No files found.
doc/administration/issue_closing_pattern.md
View file @
1bbd091b
...
...
@@ -28,7 +28,7 @@ Because Rubular doesn't understand `%{issue_ref}`, you can replace this by
expression of your liking:
```
ruby
gitlab_rails
[
'gitlab_issue_closing_pattern'
]
=
"
\b
((?:[Cc]los(?:e[sd]
|ing)|
\b
[Ff]ix(?:e[sd]|ing)?) +(?:(?:issues? +)?%{issue_ref}(?:(?:, *| +and +)?
))+)"
gitlab_rails
[
'gitlab_issue_closing_pattern'
]
=
"
\b
((?:[Cc]los(?:e[sd]
?|ing)|
\b
[Ff]ix(?:e[sd]|ing)?|
\b
[Rr]esolv(?:e[sd]?|ing)|
\b
[Ii]mplement(?:s|ed|ing)?)(:?) +(?:(?:issues? +)?%{issue_ref}(?:(?: *,? +and +| *,? *)?)|([A-Z][A-Z0-9_]+-
\d
+
))+)"
```
1.
[
Reconfigure
](
restart_gitlab.md#omnibus-gitlab-reconfigure
)
GitLab for the changes to take effect.
...
...
@@ -39,7 +39,7 @@ Because Rubular doesn't understand `%{issue_ref}`, you can replace this by
1.
Change the value of
`issue_closing_pattern`
:
```
yaml
issue_closing_pattern
:
"
\b
((?:[Cc]los(?:e[sd]
|ing)|
\b
[Ff]ix(?:e[sd]|ing)?)
+(?:(?:issues?
+)?%{issue_ref}(?:(?:,
*|
+and
+)?
))+)"
issue_closing_pattern
:
"
\b
((?:[Cc]los(?:e[sd]
?|ing)|
\b
[Ff]ix(?:e[sd]|ing)?|
\b
[Rr]esolv(?:e[sd]?|ing)|
\b
[Ii]mplement(?:s|ed|ing)?)(:?)
+(?:(?:issues?
+)?%{issue_ref}(?:(?:
*,?
+and
+|
*,?
*)?)|([A-Z][A-Z0-9_]+-
\
d+
))+)"
```
1.
[
Restart
](
restart_gitlab.md#installations-from-source
)
GitLab for the changes to take effect.
doc/user/project/issues/managing_issues.md
View file @
1bbd091b
...
...
@@ -182,7 +182,7 @@ Closes #4, #6, and https://gitlab.com/<username>/<projectname>/issues/<xxx>
When not specified, the default issue closing pattern as shown below will be used:
```
shell
((
?:[Cc]los
(
?:e[sd]?|ing
)
|[Ff]ix
(
?:e[sd]|ing
)
?|[Rr]esolv
(
?:e[sd]?|ing
)
|[Ii]mplement
(
?:s|ed|ing
)
?
)(
:?
)
+
(
?:
(
?:issues? +
)
?%
{
issue_ref
}(
?:
(
?:,
*
| +and +
)
?
)
|
([
A-Z][A-Z0-9_]+-
\d
+
))
+
)
\b
((
?:[Cc]los
(
?:e[sd]?|ing
)
|
\b
[
Ff]ix
(
?:e[sd]|ing
)
?|
\b
[
Rr]esolv
(
?:e[sd]?|ing
)
|
\b
[
Ii]mplement
(
?:s|ed|ing
)
?
)(
:?
)
+
(
?:
(
?:issues? +
)
?%
{
issue_ref
}(
?:
(
?:
*
,? +and +|
*
,?
*
)
?
)
|
([
A-Z][A-Z0-9_]+-
\d
+
))
+
)
```
This translates to the following keywords:
...
...
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