Skip to content
Snippets Groups Projects
Commit 3a6b6c3c authored by Sigmund, Dominik's avatar Sigmund, Dominik
Browse files

Update file script.py

parent b7bd5ec6
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment