From 9deaee4e75326e4fbc32ca674b8314c02d19bd8a Mon Sep 17 00:00:00 2001 From: Brandon Doyle Date: Mon, 12 Sep 2022 14:00:31 -0400 Subject: [PATCH] Redact --- setup.py | 2 +- src/gitlabci_lint/validate.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 0c09046..0293985 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ setup( name='pre-commit-gitlabci-lint', - version='1.1.1', + version='1.1.3', description='Validate your GitLab CI with GitLab\'s API endpoint.', cmdclass=cmd_classes, long_description=long_description, diff --git a/src/gitlabci_lint/validate.py b/src/gitlabci_lint/validate.py index dc48518..2e88206 100644 --- a/src/gitlabci_lint/validate.py +++ b/src/gitlabci_lint/validate.py @@ -15,7 +15,7 @@ from functools import partial -__version__ = '1.1.1' +__version__ = '1.1.3' if not (token := os.getenv('GITLAB_TOKEN')): @@ -24,7 +24,6 @@ errprint = partial(print, file=sys.stderr) -containingProjectName = os.path.basename(os.getcwd()) def validateCiConfig(baseUrl: str, configFile: str, silent: bool) -> int: @@ -53,7 +52,7 @@ def validateCiConfig(baseUrl: str, configFile: str, silent: bool) -> int: errprint(f'Cannot open {configFile}') returnValue = 1 else: - url = urljoin(baseUrl, f'/api/v4/projects/{containingProjectName}/ci/lint') + url = urljoin(baseUrl, '/api/v4/ci/lint') headers = { 'Content-Type': 'application/json', 'Content-Length': str(len(data))