Skip to content

Commit 9deaee4

Browse files
author
Brandon Doyle
committed
Redact
1 parent 0dee85c commit 9deaee4

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
setup(
2525
name='pre-commit-gitlabci-lint',
26-
version='1.1.1',
26+
version='1.1.3',
2727
description='Validate your GitLab CI with GitLab\'s API endpoint.',
2828
cmdclass=cmd_classes,
2929
long_description=long_description,

src/gitlabci_lint/validate.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from functools import partial
1616

1717

18-
__version__ = '1.1.1'
18+
__version__ = '1.1.3'
1919

2020

2121
if not (token := os.getenv('GITLAB_TOKEN')):
@@ -24,7 +24,6 @@
2424

2525

2626
errprint = partial(print, file=sys.stderr)
27-
containingProjectName = os.path.basename(os.getcwd())
2827

2928

3029
def validateCiConfig(baseUrl: str, configFile: str, silent: bool) -> int:
@@ -53,7 +52,7 @@ def validateCiConfig(baseUrl: str, configFile: str, silent: bool) -> int:
5352
errprint(f'Cannot open {configFile}')
5453
returnValue = 1
5554
else:
56-
url = urljoin(baseUrl, f'/api/v4/projects/{containingProjectName}/ci/lint')
55+
url = urljoin(baseUrl, '/api/v4/ci/lint')
5756
headers = {
5857
'Content-Type': 'application/json',
5958
'Content-Length': str(len(data))

0 commit comments

Comments
 (0)