forge-moderation-script/config.yml.example

102 lines
1.7 KiB
Plaintext

#
# Example config file. All setting can be overwritten with
# environmental variables (examples given)
#
#
# Set log level.
# Options: DEBUG, INFO, WARNING, ERRROR, CRITICAL
#
# Example:
# log_level: DEBUG
#
# Environment variable example:
# MOD_LOG_LEVEL=WARNING
#
log_level: INFO
#
# URL of forge server (no trailing '/')
#
# Example:
# base_url: https://git.example.com
#
# Environment variable example:
# MOD_BASE_URL=https://git.example.com
#
base_url: ""
#
# API token for user with permissions to delete issues/PRs and commnents
# This will be overwritten by the MOD_API_TOKEN environment variable
#
# Example:
# api_token: 0123456789abcdef0123456789abcdef01234567
#
# Environment variable example:
# MOD_API_TOKEN=0123456789abcdef0123456789abcdef01234567
#
api_token: ""
#
# List of orgs to moderate (will watch all repos in org)
#
# Example:
# orgs:
# - org-1
# - org-2
#
# Environment variable example: (comma separated)
# MOD_ORGS=org-1,org-2
orgs: []
#
# List of repos to moderate (will be added to list of org repos)
#
# Example:
# repos:
# - owner/repo-1
# - owner/repo-2
# - owner/repo-3
#
# Environment variable example: (comma separated)
# MOD_REPOS=owner/repo-1,owner/repo-2,owner/repo-3
#
repos: []
#
# List of users to restrict with optional end date-time.
# End date-time should be UTC time in format YYYY-MM-DDTHH:MM:SS
#
# Example:
# block_users:
# - user-1:2023-06-1T19:00:00
# - user-2
#
# Environment variable example:
# MOD_BLOCK_USERS=user-1:2023-04-01T19:00:00,user-2
#
block_users: []
#
# Max history of issues/PRs/comments to search
# Should be longer then cron schedule
#
# Example:
# history:
# hours: 1
# minutes: 30
#
# Environment variable example:
# MOD_HISTORY=hours:1,minutes:30
#
history:
hours: 26