probot / probot

🤖 A framework for building GitHub Apps to automate and improve your workflow
https://probot.github.io
ISC License
8.97k stars 953 forks source link

[Help Wanted] Run a script using execSync & commit the changes #1722

Closed vedantmgoyal9 closed 2 years ago

vedantmgoyal9 commented 2 years ago

Hello everyone,

I've just started using Probot to make GitHub Apps and wanted to automate some tasks like adding labels, merging PRs, etc... and some of the CI functions.

I wanted to run a piece of script using execSync and commit the changes using the bot, but the GitHub errors out while delivering the payload.

image

Source Code: https://github.com/vedantmgoyal2009/vedantmgoyal2009/blob/0344fbb3d6f0953c0aa630a852f50406416a21a6/src/github-bot.js#L32

Is there anything I'm missing out on?

P.S. I'm a noob in JavaScript too.

vedantmgoyal9 commented 2 years ago

@zeke @swinton @travi @lee-dohm @JasonEtco @hiimbex please help 🙏🏻

gr2m commented 2 years ago

mass pinging like this is not okay, please stop. Given that so many people receive notifications now I'll close and lock this issue. Please open a new issue. It can have many reasons why nobody responds, I'm sorry if that happens, but that is the reality of Open Source.