@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Updated the docs so chatbots can use the Conduit API

Summary: Previously, the chatbot docs instructed users to get certificates for the conduit API and put the cert in a `conduit.cert` config key. In order to get the chatbot to work, I needed to instead get an API key and put it in the `conduit.token` config entry.

Test Plan: Doc fix. Tried the new documented way and it worked.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D16443

Josh Cox 8cdf1a89 2c9a93ed

+7 -11
+1 -2
resources/chatbot/example_config.json
··· 15 15 ], 16 16 17 17 "conduit.uri" : null, 18 - "conduit.user" : null, 19 - "conduit.cert" : null, 18 + "conduit.token" : null, 20 19 21 20 "macro.size" : 48, 22 21 "macro.aspect" : 0.66,
+3 -5
src/docs/tech/chatbot.diviner
··· 32 32 - `join` Array, list of channels to join. 33 33 - `handlers` Array, list of handlers to run. These are like plugins for the 34 34 bot. 35 - - `conduit.uri`, `conduit.user`, `conduit.cert` Conduit configuration, 35 + - `conduit.uri`, `conduit.token` Conduit configuration, 36 36 see below. 37 37 - `notification.channels` Notification configuration, see below. 38 38 ··· 72 72 73 73 - `conduit.uri` The URI for your Phabricator install, like 74 74 `http://phabricator.example.com/` 75 - - `conduit.user` The username your bot should login to Phabricator with -- 76 - whatever you selected above, like `phabot`. 77 - - `conduit.cert` The user's certificate, from the "Conduit Certificate" tab 78 - in the user's administrative view. 75 + - `conduit.token` The user's conduit API token, from the "Conduit API Tokens" 76 + tab in the user's administrative view. 79 77 80 78 Now the bot should be able to connect to Phabricator via Conduit. 81 79
+3 -4
src/infrastructure/daemon/bot/PhabricatorBot.php
··· 159 159 if (empty($this->conduit)) { 160 160 throw new Exception( 161 161 pht( 162 - "This bot is not configured with a Conduit uplink. Set '%s', ". 163 - "'%s' and '%s' in the configuration to connect.", 162 + "This bot is not configured with a Conduit uplink. Set '%s' and ". 163 + "'%s' in the configuration to connect.", 164 164 'conduit.uri', 165 - 'conduit.user', 166 - 'conduit.cert')); 165 + 'conduit.token')); 167 166 } 168 167 return $this->conduit; 169 168 }