grundleborg / mediawiki-slack Goto Github PK
View Code? Open in Web Editor NEWMediawiki Integration for Slack
License: MIT License
Mediawiki Integration for Slack
License: MIT License
Edits without any changes are mostly ignored by MediaWiki (e.g. they don't appear in the article's history), but apparently they do fire the hooks used by this integration. So it would be great if logic could be added to ignore them.
Need to escape the " character when sending to slack to avoid invalid messages.
Thanks for working on cool things to add to MediaWiki!
I'd appreciate it however if you didn't imply official affiliation of this extension with the Wikimedia Foundation and the MediaWiki project by adding our Packagist accounts as co-maintainers. It's perfectly acceptable to use "mediawiki" as your namespace identifier to increase SEO for your extension.
This seems to break after upgrading to Mediawiki 1.37 (updates no longer go through). Worked fine on 1.36.
Mediawiki uses composer to install extensions these days. Make this installable like that.
Optionally show diff in message, while making sure to truncate if the edit is too long.
An other solution is to provide a link to the Wiki diff.
Notify a single channel about an edit on a specific page.
Eg: if I edit /France , the notification goes to #France
When a new image/file is added to a wiki it triggers a notification on slack. Is there a way to have the file creation to be handled as a minor change?
Has anyone else had this suddenly stop working for no discernible reason? My installation last pushed a notification through to Slack on September 16. (I don't think we changed anything on the wiki site around that time, either.) We absolutely LOVED this integration, and I want to get it back online!
I tried generating a new webhook and updating that info in localsettings.php, but it remains stubbornly quiet in that channel. What else should I try to troubleshoot this?
Exemple : It would be very usefull when you use task objects in your wiki
But maybe I dream ...
Hi,
would it be possible to respect / handle http_proxy / https_proxy environment variables?
i had to add 'proxy' => 'tcp://127.0.0.1:3128' to the $options["http"] array in Slack.hooks.php (which points to my local CNTLM to prevent authentification issues) to tell php / file_get_contents to use
our corp. proxy.
An alternative would be the usage of curl which should automatically handle proxy environment variables.
Just a small request to add a extension.json
file for forward compatibility (and the ability to use wfLoadExtension
now)...
Under Slack, I received messages like this :
<//wiki.domain.com/wiki/index.php/pageName>_ modified by _userName*.
The protocol was missing in the URL (probably because of a specific configuration on my wiki).
I modified the extension's code in Slack.hooks.php, line 66 from :
// Build the message we're going to post to Slack.
$message = '<'.SlackHooks::encodeSlackChars($wikiPage->getTitle()->getFullURL())
.'|'.SlackHooks::encodeSlackChars($wikiPage->getTitle()).'> '
.$verb.' by *';
To :
// Build the message we're going to post to Slack.
$message = '<'.SlackHooks::encodeSlackChars($wikiPage->getTitle()->getFullURL('', false, PROTO_CURRENT))
.'|'.SlackHooks::encodeSlackChars($wikiPage->getTitle()).'> '
.$verb.' by *';
And it solved my problem. I now get proper Slack messages.
I did not investigate if this change could break the extension on other wikis so I create an issue instead of a pull request...
Page modifications seem to be working well, but when new pages are added to the wiki, no notification is sent to Slack. Is there an option we can configure somewhere to turn that on?
FYI if someone still stumbles upon to this old extension: more later version of the extension that does similar things and much more can be found here: https://github.com/kulttuuri/slack_mediawiki.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.