An error occurred fetching the project authors.
  1. 18 Aug, 2016 1 commit
  2. 13 Aug, 2016 1 commit
  3. 12 Aug, 2016 2 commits
    • Rémy Coutable's avatar
      Simplify the slash commands DSL to store action blocks instead of creating methods · f393f2dd
      Rémy Coutable authored
      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: default avatarRémy Coutable <remy@rymai.me>
      f393f2dd
    • Rémy Coutable's avatar
      Support slash commands in noteable description and notes · 0eea8c88
      Rémy Coutable authored
      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: default avatarRémy Coutable <remy@rymai.me>
      0eea8c88