This tiny script sends a daily reminder via slack if there are unanswered gitlab issues in a gitlab service desk project.
GITLAB_TOKEN
: Gitlab access token (requiresread_api
access to gitlab project)GITLAB_HOST
: Gitlab host url, e.g.https://gitlab.com
GITLAB_PROJECT_ID
: Gitlab project id, e.g.123456
SLACK_WEBHOOK_URL
: Slack webhook url, e.g.https://hooks.slack.com/services/...
There is a kubernetes cron job template in the k8s
folder.
Just replace the configmap and secret values and use kubectl
to apply them.
You can also create a kustomize overlay for you custom values.
docker build -t mondata/gitlab-reminder:VERSION .
docker push mondata/gitlab-reminder:VERSION