sonarqube happy as well
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -4,15 +4,15 @@ import gitlab
|
||||
import os
|
||||
|
||||
|
||||
def getProject(client, project_name):
|
||||
def get_project(client, project_name):
|
||||
return client.projects.get(project_name)
|
||||
|
||||
|
||||
def getLanguage(project):
|
||||
def get_language(project):
|
||||
return list(project.languages().items())
|
||||
|
||||
|
||||
def helmSet(lang):
|
||||
def helm_set(lang):
|
||||
ret = ''
|
||||
for i in range(len(lang)):
|
||||
ret += f"--set global.language[{i}]={lang[i][0]}"
|
||||
@ -21,4 +21,4 @@ def helmSet(lang):
|
||||
|
||||
if __name__ == '__main__':
|
||||
with gitlab.Gitlab(url=os.environ['GITLAB_URL'], private_token=os.environ['GITLAB_TOKEN'], user_agent='my-package/1.0.0') as gl:
|
||||
print(helmSet(getLanguage(getProject(gl, 'root/test'))), end=" ")
|
||||
print(helm_set(get_language(get_project(gl, 'root/test'))), end=" ")
|
||||
|
Reference in New Issue
Block a user