So I’ve got an AWS Lambda function written in python designed to help auto-merge PRs that @dependabot has submitted. It queries all my github repositories, then auto-merges them based on particular configs. It’s done this way because then I don’t have to remember to configure each and every repository individually, and it does it in two stages:
- A scheduled execution.
- This checks to see if it’s scheduled, then invokes the function with parameters specifying the repo to check.
- The subsequent “invoked” runs, which interact with the GitHub API to do the per-repo checks.
I’d recently made some changes and failed to test them properly - the “am I scheduled” was running, but ALSO the “run on a repository” check.
[Read More]