Jump to content

Phabricator/Bots

From mediawiki.org
This page is a translated version of the page Phabricator/Bots and the translation is 39% complete.
Outdated translations are marked like this.

Phabricator bots are users in Phabricator for whom actions are automated or are a consequence of the actions of multiple users. See the upstream documentation for more information.

Phabricator bots are similar to MediaWiki bots, and much of the general Wikimedia bot policy is relevant to them.

Separación de las cuentas bot de las cuentas personales

A personal user account is not appropriate for repetitive patterns of activity, as in the human case they would almost universally be considered spam, or at best be locked into someone's personal account. Activity that originates from a specific account that appears to be spam may require the account to be disabled or deleted. En estos casos, si la cuenta de ofender es también la cuenta personal de un usuario, no serán capaces de apelar o explicar la situación.

Adquiriendo un bot

Unlike regular Phabricator accounts, which are tied to a Wikimedia SUL or LDAP account, bot accounts are created natively in Phabricator. In order to request a bot account, please create a task under the Phabricator-Bot-Requests project with the following details:

  • Nombre
  • Propósito
  • Una dirección de correo electrónico (algunos pueden ser nulos pero tiene que ser único)
  • Organización o usuarios responsables

Phabricator admins: Steps to perform

Steps for Phabricator admins to create such an account:

  • For transparency, add human owner to bot account description
  • Ir para "Editar Encuadres", ir a "Conduit API Tokens", y click en "Genera token".

Copiar el token.

  • Create paste containing that token and set "View policy" to human owner and yourself
  • Paste link in the creation request task and ask human owner to close the task once it works as expected

Bot account holders: Steps to perform

These are the steps to configure arc to use your bot account.

  • Acquire account certificate for your bot
  • Create an arc configuration file matching the following, replacing "<your bot account id>" and "<your bot certificate>" with the appropriate values.
 {
   "config": {
     "default": "https:\/\/phabricator.wikimedia.org\/"
   },
   "hosts": {
     "https:\/\/phabricator.wikimedia.org\/api\/": {
       "token": "api-token_which_starts_with_api"
     }
   }
 }
  • Save this file somewhere.

The default location arc looks is ".arcrc" in your home directory (~/.arcrc on Linux and Mac), but if you already have an arcrc file on the machine you're testing with, you may prefer to save it elsewhere. Para propósitos de este ejemplo, utilizaremos "bot.arcrc" en el actual directorio laborable.

  • Correr la orden siguiente como prueba:
 $ arc tasks --unassigned --limit 1 --arcrc-file bot.arcrc

Esto tendría que regresar a un resumen corto de una tarea sola fuera de Maniphest.