diff --git a/script.py b/script.py index 595e2a2512c097a8d06f0141eb16458bee359544..acd686e98f501c2f6c0c41fc2c843040db8ec420 100644 --- a/script.py +++ b/script.py @@ -12,8 +12,8 @@ from dotenv import load_dotenv gitlab_url = 'https://gitlab.ard.de' -sender_email = 'gitlab-report@br.de' -recipient_email = 'dominik.sigmund@br.de' +sender_email = 'ard-gitlab-report@br.de' +recipient_email = 'gitlab-oc@cn.ard.de' def check_binaries(): required_binaries = ['df', 'gitlab-ctl'] @@ -155,8 +155,8 @@ def send_email(sender_email, recipient_email, subject, body): <head></head> <body> <h2>Monthly GitLab Report - {datetime.datetime.now().strftime('%B %Y')}</h2> - <p>{body['gitlab_version']}<</p> - <table border="1" cellpadding="5" style="border-collapse: collapse; width: 50%;"> + <p>Version: {body['gitlab_version']}</p> + <table border="1" cellpadding="5" style="border-collapse: collapse; width: 100%;"> <tr> <th>Metrics</th> <th>Values</th> @@ -239,7 +239,7 @@ check_binaries() api_token, confluence_token = load_api_token() -subject = 'Monthly GitLab Report - {month} {year}'.format(month=datetime.datetime.now().strftime('%B'), year=datetime.datetime.now().strftime('%Y')) +subject = '[gitlab.ard.de] Monthly Report - {month} {year}'.format(month=datetime.datetime.now().strftime('%B'), year=datetime.datetime.now().strftime('%Y')) # Get GitLab information num_projects, num_users, admin_users_list, free_space_on_disk, total_commits_last_month, gitlab_version = get_gitlab_info(api_token)