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
593e3ffc
Commit
593e3ffc
authored
Feb 01, 2018
by
Mateusz Bajorski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed inconsistent descriptions and refactored reference checking
parent
26087ae9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/services/quick_actions/interpret_service.rb
app/services/quick_actions/interpret_service.rb
+2
-2
doc/user/project/quick_actions.md
doc/user/project/quick_actions.md
+1
-1
No files found.
app/services/quick_actions/interpret_service.rb
View file @
593e3ffc
...
...
@@ -270,7 +270,7 @@ module QuickActions
desc
'Copy labels and milestone from other issue or merge request'
explanation
do
|
issuable_id
|
"Copy labels and milestone from issue or merge_request
\"
#{
issuable_id
}
\"
."
"Copy labels and milestone from issue or merge_request
#{
issuable_id
}
."
end
params
'#issue | !merge_request'
condition
do
...
...
@@ -279,7 +279,7 @@ module QuickActions
end
command
:copy_metadata
do
|
issuable_id
|
source_issuable
=
extract_references
(
issuable_id
,
:issue
).
first
source_issuable
=
extract_references
(
issuable_id
,
:merge_request
).
first
if
!
source_issuable
.
present?
source_issuable
||=
extract_references
(
issuable_id
,
:merge_request
).
first
if
source_issuable
.
present?
&&
source_issuable
.
project
.
id
==
issuable
.
project
.
id
@updates
[
:add_label_ids
]
=
source_issuable
.
labels
.
map
(
&
:id
)
...
...
doc/user/project/quick_actions.md
View file @
593e3ffc
...
...
@@ -41,4 +41,4 @@ do.
|
`/move path/to/project`
| Moves issue to another project |
|
`/tableflip`
| Append the comment with
`(╯°□°)╯︵ ┻━┻`
|
|
`/shrug`
| Append the comment with
`¯\_(ツ)_/¯`
|
|
<code>
/copy_metadata
<
#issue
|
!merge_request
>
</code>
| Copy labels and milestone from other issue or merge request |
|
<code>
/copy_metadata
#issue
|
!merge_request
</code>
| Copy labels and milestone from other issue or merge request |
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