Discourse-github plugin not letting me set org wide badge repositories

Hello there,
The Problem
I’m looking for a good way for discourse github plugin to allow badging for contributions across all repos in github organization. Or better yet if at all possible use a regexp pattern to match repos but that doesn’t seem to be possible. The linkback portion of the plugin allows for organization wide wild cards, but the badging integration does not.

Right now it looks like I have to list each repository separately, which isn’t particularly viable as there 100+ repos in the sensu-plugins org.

Minimum Viable Enhancement Needed
Here’s an example of what I’d like to do.
I’d love to be able to setup badging for all contributions associated with all repositories under sensu-plugins but the badging integration does not allow sensu-plugins/*. This would bring badging inline with what the link back functionality allows currently.

More Flexible Enhancement Desired
Going further, ideally I’d love to match just plugins that start with sensu-plugin* naming convention using a regexp pattern like ^sensu-plugins/sensu-plugin or a prefixed glob like sensu-plugins/sensu-plugin* for the github repository URL.

2 Likes

Certainly an interesting idea, I would support a change to discourse-github that let it configure a large number of repos.

One thing to watch out for though is that we clone all these repos, this can be a non trivial amount of traffic.

To be efficient at this scale webhooks need configuring.