Coder Social home page Coder Social logo

mediawiki-slack's People

Contributors

grundleborg avatar hpopp avatar volas avatar ytone avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mediawiki-slack's Issues

Integration sends notification for empty edits

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.

Please remove wikimedia and mediawiki from Packagist maintainers

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.

Mediawiki 1.37 support

This seems to break after upgrading to Mediawiki 1.37 (updates no longer go through). Worked fine on 1.36.

Composer install

Mediawiki uses composer to install extensions these days. Make this installable like that.

Optionally show diff in message

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.

File creation triggers notification

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?

Worked beautifully, then stopped

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?

use proxy to connect to slack api endpoint

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.

Add `extension.json`

Just a small request to add a extension.json file for forward compatibility (and the ability to use wfLoadExtension now)...

No protocol in URL in Slack message

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...

No notifications of new pages

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.