Skip to content

Commit

Permalink
Redact
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Doyle committed Sep 12, 2022
1 parent 0dee85c commit 9deaee4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 2 additions & 3 deletions src/gitlabci_lint/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from functools import partial


__version__ = '1.1.1'
__version__ = '1.1.3'


if not (token := os.getenv('GITLAB_TOKEN')):
Expand All @@ -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:
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 9deaee4

Please sign in to comment.