redbrick / blockbot

Discord bot maintained by the Redbrick webgroup
GNU General Public License v3.0
1 stars 8 forks source link

/new webgroup issue command #9

Open JedHazaymeh opened 9 months ago

JedHazaymeh commented 9 months ago

Add a /new command so members can add an issue to the Webgroup backlog, from the Discord server.

Requirements

HypnoAnt commented 9 months ago

A blockbot service account may need to be specified for this to work to be able to submit the issues. The user could be specified based on their discord username.

JedHazaymeh commented 9 months ago

A blockbot service account may need to be specified for this to work to be able to submit the issues. The user could be specified based on their discord username.

I believe @wizzdom mentioned a RBCmt account, but I think a Webgroup service account would be more suitable (for the name but also for permissions).

JedHazaymeh commented 9 months ago

The website has an abstraction layer that uses the Github API to pull Markdown from repos, which I considered extracting into a common resource: useful for cases like this.

The implementation uses Javascript, so it would need to be extracted into a simple REST API (like github-adapter, etc) so non-Javascript services (blockbot) can use it.

wizzdom commented 9 months ago

A blockbot service account may need to be specified for this to work to be able to submit the issues. The user could be specified based on their discord username.

I believe @wizzdom mentioned a RBCmt account, but I think a Webgroup service account would be more suitable (for the name but also for permissions).

Yes, I guess it depends on the use case, we could either use a tightly controlled GitHub token on the RBCmt account or will use a separate webgroup service account. Will have to have a look into github access tokens and how tightly we can limit them in scope.