Mattermost-plugin-github: How can I susbcribe to a whole organisation?

Created on 12 Feb 2019  路  11Comments  路  Source: mattermost/mattermost-plugin-github

Hi!

Is there a way to subscribe a channel to all repos in a Github organization? I only found /github subscribe org/repo, which requires one command per repository (and does not add new repositories).

Thanks!

Help Wanted

Most helpful comment

I'll take this one

All 11 comments

Hi @cpitclaudel, currently you need to manually subscribe to each repository if you wanted to do this. I'm not opposed to adding a feature for this though. I've added the help wanted label in case someone wants to work on it

I'll take this one

If anyone is interested working on this ticket:

  1. First PR merged here: https://github.com/mattermost/mattermost-plugin-github/pull/52
  2. Second PR containing further bug fixes was closed, but not merged, here: https://github.com/mattermost/mattermost-plugin-github/pull/56~~

Moreover, a PR to unsubscribe from an organization was closed but not merged, here: https://github.com/mattermost/mattermost-plugin-github/pull/53

Submitted a PR to fix 2.

I'll work on this, from where benschuster788 left off. I am not familiar yet with the code base and this can be my 'hello world' project if you guys allow. Am I good to take his code and add the fixes needed in #53 and #56 ?

@dhadiseputro Go for it! If you have any questions working through it let us know. You're also open to sharing the approach you're planning to take for review 馃憤

I am planning to do something similar to benschuster.
The high level idea is, in SubscribeOrg I'll get all the repos in that org and do AddSubscription for each repo.

I have some questions:

pinging @crspeller or @aaronrothschild on the above

For channelID - that refers to the ID of a Mattermost channel. To find the ID of a channel, click the dropdown next to the channel name, then select "View Info". The ID is displayed at the bottom of the resulting dialog

image
image

Looks like https://github.com/mattermost/mattermost-plugin-github/pull/67 already implements this?
Is there work left to do on this ticket? @jwilander

Ah, yes.. #67 implemented this ticket. So repo can have the value of either just the org's name or the complete org/repo right? I was a little confused with the var naming

Yes, sorry should have closed this earlier. Sorry for the churn @dhadiseputro

Was this page helpful?
0 / 5 - 0 ratings