Open YashKumarVerma opened 5 years ago
Alright so here's what I think we should do.
@pythongiant maybe we can use some probot to do the commenting / github operation, and our curl to message on gitter
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.
@YashKumarVerma That's what probot makes easy to do
yeah my thoughts exactly
@YashKumarVerma That's what probot makes easy to do
probot is just a node library which allows you to react to github webhook events
References
A complete list of bots can be found here https://probot.github.io/apps/
alright so now the bot does not post comments. It only messages to the gitter channel
Should take room ID from config
@iamareebjamal could you launch a PR please? I am unable to solve the issue
const config = await context.config('config.yml') app.log(config.room) gives me a null
Because your repo does not have a config file. Sounds good to me
It did have one
in the .github folder ( like the docs suggest )
I can't see it. Paste the link
Paste the link to what? The docs?
Paste link to your config file
its not on github.
Well that how can I debug it and how the bot is going to read it?
@pythongiant it's supposed to be here
@iamareebjamal i requested permission to install https://probot.github.io/apps/ci-reporter/.
How do I know it's granted ?
I granted it
thanks ! @iamareebjamal
@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
Actually, it doesn't need any config to work
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?
Hence no point pushing it to github
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
@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
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
Expected Behavior
Current Behavior
Possible Solution