# Cleanup tool for terraform-infra's Atlantis and Checkov comments

The tool is designed to delete or minimize old Atlantis and Checkov comments in the terraform-infra repository to make pull-requests look cleaner.

## Required environment variables

The tool expects the following environment variables to be configured:

Variable | Default | Description
---|---|---
GITHUB_API_KEY |   | Github token with enough permissions to manage pull-request issue comments.
GITHUB_REPO_NAME |   | Github repository name in the next format: `<org or username>/<repo name>`.
GITHUB_PR_NUM |   | Github pull-request number from the repository to clean.
CLEANUP_DELETE | false | Minimize comments or delete them.
CLEANUP_USERS | orchardci,orcdjenkins | Comma-separated list of Github user logins whose comments to clean.
CLEANUP_TTL | 600 | Don't minimize or remove comments that have less than 10 minutes since their creation.
