fossasia / labyrinth

FOSSASIA Labyrinth
GNU Affero General Public License v3.0
1.52k stars 147 forks source link

Feature Requests : Enhance the bot #913

Open YashKumarVerma opened 5 years ago

YashKumarVerma commented 5 years ago

Expected Behavior

Current Behavior

Possible Solution

pythongiant commented 5 years ago

Alright so here's what I think we should do.

pythongiant commented 5 years ago

https://probot.github.io/apps/welcome/ https://probot.github.io/apps/stale/

YashKumarVerma commented 5 years ago

OR, you can use a webhook to a now.sh site (which can run basic node, etc) and then do all what you want from there.

https://zeit.co/now

iamareebjamal commented 5 years ago

@YashKumarVerma That's what probot makes easy to do

pythongiant commented 5 years ago

yeah my thoughts exactly

@YashKumarVerma That's what probot makes easy to do

iamareebjamal commented 5 years ago

probot is just a node library which allows you to react to github webhook events

YashKumarVerma commented 5 years ago

References

A complete list of bots can be found here https://probot.github.io/apps/

pythongiant commented 5 years ago

alright so now the bot does not post comments. It only messages to the gitter channel

iamareebjamal commented 5 years ago

Should take room ID from config

pythongiant commented 5 years ago

@iamareebjamal could you launch a PR please? I am unable to solve the issue

pythongiant commented 5 years ago

const config = await context.config('config.yml') app.log(config.room) gives me a null

iamareebjamal commented 5 years ago

Because your repo does not have a config file. Sounds good to me

pythongiant commented 5 years ago

It did have one

pythongiant commented 5 years ago

in the .github folder ( like the docs suggest )

iamareebjamal commented 5 years ago

I can't see it. Paste the link

pythongiant commented 5 years ago

Paste the link to what? The docs?

pythongiant commented 5 years ago

image

iamareebjamal commented 5 years ago

Paste link to your config file

pythongiant commented 5 years ago

its not on github.

iamareebjamal commented 5 years ago

Well that how can I debug it and how the bot is going to read it?

YashKumarVerma commented 5 years ago

@pythongiant it's supposed to be here

YashKumarVerma commented 5 years ago

@iamareebjamal i requested permission to install https://probot.github.io/apps/ci-reporter/.

How do I know it's granted ?

iamareebjamal commented 5 years ago

I granted it

YashKumarVerma commented 5 years ago

thanks ! @iamareebjamal

YashKumarVerma commented 5 years ago

@iamareebjamal i've made a new PR, still it doesn't trigger CI reporter ? Can you help ?

The config file is here https://github.com/fossasia/labyrinth/blob/master/.github/ci-reporter.yml PR: https://github.com/fossasia/labyrinth/pull/980

iamareebjamal commented 5 years ago

Actually, it doesn't need any config to work

iamareebjamal commented 5 years ago

https://github.com/JasonEtco/ci-reporter/issues/40

pythongiant commented 5 years ago

I meant it didnt work on the development server. The file was stored in .github folder on my root dir

Well that how can I debug it and how the bot is going to read it?

pythongiant commented 5 years ago

Hence no point pushing it to github

iamareebjamal commented 5 years ago

Then no point in discussing things that cannot be tested. Also, there are hundreds of probot apps, so there is no chance that there is something wrong in their API and everything is correct in your code

YashKumarVerma commented 5 years ago

@iamareebjamal Can you create a webhook which posts pull request and issue to https://labyrinth-bot.now.sh/ -- > source code at https://github.com/YashKumarVerma/labyrinth-message-bot

iamareebjamal commented 5 years ago

You can first complete the code and test on your repositories. However, I don't know why you would choose PHP and not do it via probot