Commit graph

14 commits

Author SHA1 Message Date
Vlad
945e0684af added date parameter for time tracking 2017-10-13 11:41:49 +01:00
Andrew Newdigate
47d19c2de1 Stop using branch_names.include? and use branch_exists? 2017-10-10 14:56:04 +00:00
Tiago Botelho
cfd475a45e Removes default scope from sortable 2017-09-07 13:01:59 +01:00
Manolis Mavrofidis
7e71f958ac /move project functionality. Squash commit.
Update to add all issues to be updated.
 Added functionality, proper tests, documentation and changelog.
2017-08-31 21:30:36 +01:00
Mehdi Lahmam
5ad9d94d8e Add /assign me alias support for assigning issuables to oneself
Currently, when a user wants to assign an issue/MR to himself, he needs
to type his full username or select it from the suggested ones in the
dropdown list.
This commits suggest a faster solution which is typing `/assign me`

Closes #35304.
2017-08-07 14:40:33 +02:00
Alex Ives
a07fe9d7f8 Fixes #29385: Add /shrug and /tableflip commands
- Updated DSL to support substitution definitions
- Added substitution definition, inherits from command definition
- Added tabelflip and shrug substitutions to interpret service
- Added support for substitution definitions to the extractor for preview mode.
- Added substitution handling in the interpret service

Signed-off-by: Alex Ives <alex@ives.mn>
2017-07-28 14:37:44 -05:00
Sean McGivern
1df696f5a6 Move duplicate issue management to a service 2017-07-21 12:53:56 +01:00
Ryan Scott
01c9488f4a Added slash command to close an issue as a duplicate. Closes #26372 2017-07-20 15:33:24 +01:00
Toon Claes
acbad6d837 Remove /reassign quick action
/reassign should only work when multiple assignees are available. And
since this is only the case for GitLab EE, remove it from CE.

This was picked using 517c97eb12e44f354787313dd35ac7a1642f5b20 of gitlab-ee.
2017-07-07 09:30:14 +02:00
Toon Claes
2194856fcf Ensure /reassign does not assign multiple users
Set the assignee to last user in the array if multiple assignees aren't
allowed.

Also, use `parse_params` where possible.
2017-06-20 22:02:41 +02:00
Toon Claes
451e25532f Make MergeRequest respond to assignee_ids & assignee_ids=
To make it simpler to assign users to an Issuable, make MergeRequest
support the attribute `assignee_ids`.
2017-06-20 21:32:49 +02:00
Toon Claes
fcd46c1af4 Backport /reassign quick command
The /reassign quick command works even when no multiple assignees are allowed of
there isn't any assignee yet. So for consistency, it's also be backported to
CE. But it functions the same as the /assign quick action.
2017-06-20 15:03:25 +02:00
Toon Claes
132cd0092d Backport issuable for assignee slash commands from EE
Avoid conflicts when merge CE to EE by backporting code from EE.

Instead of checking in `SlashCommands::InterpretService` what the issuable the
type of the issuable is, ask the issuable if it is capable to do those thing and
implement it in the issuable itself. The issuable will check if it's possible
and if the licensed feature is available.

This should also make it easier to ever add multiple assignees to MergeRequests.
2017-06-20 14:19:45 +02:00
Eric Eastwood
ea090291bb Rename "Slash commands" to "Quick actions"
Fix https://gitlab.com/gitlab-org/gitlab-ce/issues/27070

Deprecate "chat commands" in favor of "slash commands"

We looked for things like:

 - `slash commmand`
 - `slash_command`
 - `slash-command`
 - `SlashCommand`
2017-06-15 09:01:56 -05:00