summaryrefslogtreecommitdiff
path: root/app/services/slash_commands
Commit message (Collapse)AuthorAgeFilesLines
* Add a /wip slash commandThomas Balthazar2016-10-031-0/+12
| | | | It toggles the 'WIP' prefix in the MR title.
* Fix permission for setting an issue's due dateRémy Coutable2016-09-281-2/+2
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fix behavior around commands with optional arguments4273-slash-commandsDouwe Maan2016-08-181-2/+2
|
* Remove unneeded aliasesDouwe Maan2016-08-181-14/+21
|
* Address feedbackDouwe Maan2016-08-171-3/+2
|
* Fix specs and implement fixes based on failing specsDouwe Maan2016-08-171-2/+2
|
* Fixed specs and fixes based on failing specsDouwe Maan2016-08-161-36/+43
|
* Prefer `/reopen` over `/open`, remove `/reassign`Douwe Maan2016-08-121-21/+21
|
* Allow setting labels, milestones and assignee based on nameDouwe Maan2016-08-121-3/+9
|
* Refactor slash command definitionDouwe Maan2016-08-121-8/+16
|
* Simplify the slash commands DSL to store action blocks instead of creating ↵Rémy Coutable2016-08-131-19/+14
| | | | | | | | | | | | | methods Other improvements: - Ensure slash commands autocomplete doesn't break when noteable_type is not given - Slash commands: improve autocomplete behavior and /due command - We don't display slash commands for note edit forms. - Add tests for reply by email with slash commands - Be sure to execute slash commands after the note creation in Notes::CreateService Signed-off-by: Rémy Coutable <remy@rymai.me>
* New TodoService#todo_exists? methodRémy Coutable2016-08-131-2/+2
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Accept blocks for `.desc` and `.condition` slash commands DSLRémy Coutable2016-08-131-97/+56
| | | | | | | Also, pass options as instance variables, making the DSL more user-friendly / natural. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Make slash commands contextualRémy Coutable2016-08-131-20/+117
| | | | | | | | | | | | | - Return only slash commands that make sense for the current noteable - Allow slash commands decription to be dynamic Other improvements: - Add permission checks in slash commands definition - Use IssuesFinder and MergeRequestsFinder - Use next if instead of a unless block, and use splat operator instead of flatten Signed-off-by: Rémy Coutable <remy@rymai.me>
* Add support for no-op slash commands that appear in autocompleteRémy Coutable2016-08-131-1/+9
| | | | | | The first one is /cc Signed-off-by: Rémy Coutable <remy@rymai.me>
* Don't extract slash commands inside blockcode, blockquote or HTML tagsRémy Coutable2016-08-131-5/+9
| | | | | | Improve slash command descriptions, support /due tomorrow Signed-off-by: Rémy Coutable <remy@rymai.me>
* Add the /title slash commandRémy Coutable2016-08-131-0/+6
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* New Notes::SlashCommandsService serviceRémy Coutable2016-08-131-1/+8
| | | | | | Check for update_issuable permission in Notes::SlashCommandsService Signed-off-by: Rémy Coutable <remy@rymai.me>
* Support slash commands in noteable description and notesRémy Coutable2016-08-131-0/+133
Some important things to note: - commands are removed from noteable.description / note.note - commands are translated to params so that they are treated as normal params in noteable Creation services - the logic is not in the models but in the Creation services, which is the right place for advanced logic that has nothing to do with what models should be responsible of! - UI/JS needs to be updated to handle notes which consist of commands only - the `/merge` command is not handled yet Other improvements: - Don't process commands in commit notes and display a flash is note is only commands - Add autocomplete for slash commands - Add description and params to slash command DSL methods - Ensure replying by email with a commands-only note works - Use :subscription_event instead of calling noteable.subscribe - Support :todo_event in IssuableBaseService Signed-off-by: Rémy Coutable <remy@rymai.me>