This repository contains the source code for the Keep your functions running to schedule with the cron-connector.
blog post.
This bot locks outdated issues in github on a schedule.
The function has annotations:
annotations:
topic: cron-function
schedule: "*/1 * * * *"
In order to be recognized by the cron-connector and to be ran on the cron schedule pointed in the configuration */1 * * * *
which means once a minute.
The environmental variables:
environment:
github_repository: push2
inactive_days: 90
define how much days are needed since the last comment in order to consider issue outdated. The repository I chose is my testing ground called push2 which I consider GitHub API playground.
There is pretty cool site called crontab guru
you can find it here which translates in a verbose way the schedule you created.