bigpresh/Bot-BasicBot-Pluggable-Module-GitHub — pull request #4 by throughnothing (2011-10-20 01:52:45+00:00)
Title: Support Multiple projects per channel

This adds support for multiple projects per channel. For now, the first channel is the primary/default.

I've moved `!setgithubproject` -> `!setgithubprojects` and added `!addgithubproject ` as well as `!deletegithubproject `.

For auth, I've added `!setauthforproject ` (not sure if this should have 'github' somewhere in the command name?), as well as `!setdefaultauth ` which will set a global auth default for anything without a specific auth set (very useful for me as I add many projects but all can use the same auth).

To facilitate multiple repos with issues/prs, i've updated EasyLinks.pm to use the following:

If you just type `issue 42` you will get the issue for the default project (the first one added to that channel). If there are other projects, you can do `api issue 42` and it will search through all your projects for the first one that matches 'api' and use that one. If none are found to match, it reverts back to the default again. The same happens with !pr. This makes it so that with !pr you don't have to type the full project name.

I've also made !pr support authenticated requests using the same auth_for_project and auth_default parameters as everything else. This does replace the LWP::Simple requirement with LWP::UserAgent (updated in the makefile).

I'd love some comments and feedback. Thanks!