summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/slash_commands
Commit message (Collapse)AuthorAgeFilesLines
* Resolve "Rename the `Master` role to `Maintainer`" BackendMark Chao2018-07-114-4/+4
|
* Add slash command for moving an issueSean McGivern2018-03-153-0/+148
| | | | Carried over from https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/8857
* Expose ChatName objects to slash commandsslash-commands-changes-for-chatopsYorick Peterse2018-02-235-6/+11
| | | | | | | Instead of only exposing a User to slash commands we now also expose the ChatName object that the User object is retrieved from. This is necessary for GitLab Chatops as we need for example the user ID of the chat user.
* Make user/author use project.creator in most factoriesRémy Coutable2018-01-311-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Replace '.team << [user, role]' with 'add_role(user)' in specs36782-replace-team-user-role-with-add_role-user-in-specsblackst0ne2017-12-223-3/+3
|
* Change all `:empty_project` to `:project`rs-empty_project-defaultRobert Speicher2017-08-028-9/+9
|
* Improve wording related to deploy chatops commandfix/gb/fix-chatops-deploy-multiple-actions-matchingGrzegorz Bizon2017-07-283-5/+5
|
* Improve deploy environment chatops slash commandGrzegorz Bizon2017-07-282-30/+46
| | | | | | | We now match deployment actions better. If there is more than one deployment action matched, we check if there is an action which name equals to environment name, instead of raising an error about too many actions defined.
* Remove superfluous lib: true, type: redis, service: true, models: true, ↵Rémy Coutable2017-07-275-5/+5
| | | | | | services: true, no_db: true, api: true Signed-off-by: Rémy Coutable <remy@rymai.me>
* Rename "Slash commands" to "Quick actions"Eric Eastwood2017-06-1513-557/+576
| | | | | | | | | | | | | 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`
* Display slash commands outcome when previewing Markdownadam-separate-slash-commandsRares Sfirlogea2017-05-042-17/+101
| | | | | | | | | | Remove slash commands from Markdown preview and display their outcome next to the text field. Introduce new "explanation" block to our slash commands DSL. Introduce optional "parse_params" block to slash commands DSL that allows to process a parameter before it is passed to "explanation" or "command" blocks. Pass path for previewing Markdown as "data" attribute instead of setting a variable on "window".
* Auto-correct `RSpec/DescribedClass` violationsrs-described_class-cop-2Robert Speicher2017-05-011-1/+1
|
* Allow slashes in slash command argumentsRémy Coutable2017-02-171-0/+8
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fix behavior around commands with optional arguments4273-slash-commandsDouwe Maan2016-08-182-29/+48
|
* Remove unneeded aliasesDouwe Maan2016-08-181-8/+8
|
* Fix specs and implement fixes based on failing specsDouwe Maan2016-08-171-49/+15
|
* Fixed specs and fixes based on failing specsDouwe Maan2016-08-163-176/+222
|
* Refactor slash command definitionDouwe Maan2016-08-121-15/+15
|
* Simplify the slash commands DSL to store action blocks instead of creating ↵Rémy Coutable2016-08-131-53/+92
| | | | | | | | | | | | | 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-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Accept blocks for `.desc` and `.condition` slash commands DSLRémy Coutable2016-08-131-19/+42
| | | | | | | 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-15/+67
| | | | | | | | | | | | | - 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-132-7/+13
| | | | | | 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-0/+27
| | | | | | Improve slash command descriptions, support /due tomorrow Signed-off-by: Rémy Coutable <remy@rymai.me>
* Support slash commands in noteable description and notesRémy Coutable2016-08-132-0/+287
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>