Remove editor

This responder removes the assigned editor from the body of the issue (the one that can be assigned using the Assign Editor responder). The user will also be removed from the issue’s assignees. Allows labeling.

Listens to

@botname remove editor

Requirements

In the body of the issue the editor should be enclosed in HTML comments.

...
<!--editor--> @sarah_m_g <!--end-editor-->
...

Settings key

remove_editor

Params

no_editor_text:

The text that will go in the editor place to state there’s no one assigned. The default value is Pending.

Examples

Simplest use case:

...
  responders:
    remove_editor:
...

Action restricted to editors:

...
  teams:
    editors: 1111111
...
  responders:
    remove_editor:
      only: editors
...

Restrict access to editors, use custom text when there’s not editor:

...
  responders:
    remove_editor:
      only: editors
      no_editor_text: To be decided
...

In action

  • Initial state:

../_images/remove_editor_1.png

  • Invocation:

../_images/remove_editor_2.png

  • Final state:

../_images/remove_editor_3.png