Extension:SlackNotifications
Slack Notifications リリースの状態: 安定 |
|
---|---|
![]() |
|
実装 | ユーザー インターフェイス, 通知 |
説明 | Sends notifications of actions in MediaWiki like adding, removing or deleting an article into Slack channel |
作者 | Aleksi Postari (kulttuuritalk) |
最新バージョン | 1.14 (2019-07-03) |
MediaWiki | 1.25+ |
PHP | 5.2+ |
データベースの変更 | いいえ |
ライセンス | MIT ライセンス |
ダウンロード | スナップショットをダウンロード 注: |
|
|
translatewiki.net で翻訳を利用できる場合は、SlackNotifications 拡張機能の翻訳にご協力ください | |
使用状況とバージョン マトリクスを確認してください。 |
The SlackNotifications sends notifications of actions in MediaWiki like adding, removing or deleting an article into Slack channel.
インストール
- ダウンロードして、ファイルを
extensions/
フォルダー内のSlackNotifications
という名前のディレクトリ内に配置します。
- 以下のコードを LocalSettings.php の末尾に追加します:
require_once "$IP/extensions/SlackNotifications/SlackNotifications.php"; // 必須。 Your Slack incoming webhook URL. Read more from here: https://api.slack.com/incoming-webhooks $wgSlackIncomingWebhookUrl = ""; // 必須。 Name the message will appear be sent from. $wgSlackFromName = "Wiki"; // URL into your MediaWiki installation with the trailing /. $wgWikiUrl = "http://your_wiki_url/"; // ウィキのスクリプト名。 Leave this to default one if you do not have URL rewriting enabled. $wgWikiUrlEnding = "index.php?title="; // What method will be used to send the data to Slack server. By default this is "curl" which only works if you have the curl extension enabled. This can be: "curl" or "file_get_contents". Default: "curl". $wgSlackSendMethod = "curl";
- 完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。
Configuration parameters
Please read the project README file for more configuration options.