Skip to content
Snippets Groups Projects
Unverified Commit a71bf970 authored by Andrej Shadura's avatar Andrej Shadura
Browse files

Move the CI "name" and "email" to constants for future reuse


Signed-off-by: default avatarAndrej Shadura <andrew.shadura@collabora.co.uk>
parent 07b98e23
No related branches found
No related tags found
2 merge requests!167T7556: Add version suffix to newly imported updates,!93WIP: documentation-builder: Rebase on Apertis instead of Debian Buster
......@@ -24,6 +24,9 @@ from pathlib import Path
from debian.debian_support import Version
from debian.changelog import Changelog
APERTIS_CI_NAME = 'Apertis CI'
APERTIS_CI_EMAIL = 'devel@lists.apertis.org'
def git_dir() -> str:
return git('rev-parse', '--git-dir').strip('\n')
......@@ -49,7 +52,7 @@ def configure_git_user(name, email):
def prepare_git_repo(upstream_branch):
run(['git', 'branch', '-f', upstream_branch, 'origin/' + upstream_branch])
configure_git_user('Apertis CI', 'devel@lists.apertis.org')
configure_git_user(APERTIS_CI_NAME, APERTIS_CI_EMAIL)
configure_git_merge()
def get_package_name():
......
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