How can i merge a pull request on schedule with probot #1790
Unanswered
kaf-lamed-beyt
asked this question in
Q&A
Replies: 2 comments 10 replies
-
I went with @gr2m's approach of using GitHub Actions. Now, after 50 unsuccessful workflow runs, action is passing now. But, the bot doesn't merge the pull request as I intend it to. Perhaps, someone can help me take a look. Here's the link to the repo, again. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I started building a GitHub app that merges any pull request on schedule with the robot app. But, I am totally stuck at the point where the bot has to merge the pull request when the scheduled date is true.
Here's how it works;
The bot listens to the
issue_comment.created
webhook event and parses the body of the comment to see if the user or owner of the repository has mentioned the name of the app, the "merge" keyword, and the "time" they want the pull request to be merged.I'm using the
node-scheduler
package to create a cron-like job and pass my merge function as a callback when the date of the pull request schedule is up.So far so good, the bot responds by creating a comment that notifies that their merge request has been taken into consideration, but it stops at just that.
This is the link to the repository incase anyone wants to help.
Beta Was this translation helpful? Give feedback.
All reactions