Skip to content

Commit 0dee85c

Browse files
author
Brandon Doyle
committed
Test release
1 parent 99d99f6 commit 0dee85c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/gitlabci_lint/validate.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525

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

2829

2930
def validateCiConfig(baseUrl: str, configFile: str, silent: bool) -> int:
@@ -52,7 +53,7 @@ def validateCiConfig(baseUrl: str, configFile: str, silent: bool) -> int:
5253
errprint(f'Cannot open {configFile}')
5354
returnValue = 1
5455
else:
55-
url = urljoin(baseUrl, '/api/v4/ci/lint')
56+
url = urljoin(baseUrl, f'/api/v4/projects/{containingProjectName}/ci/lint')
5657
headers = {
5758
'Content-Type': 'application/json',
5859
'Content-Length': str(len(data))

0 commit comments

Comments
 (0)