FEATURE - Add possibility to check branches
Dear author,
I'm using this tool in the pipeline of the pipelines to check the syntax of the changes (install pre-commit hook, and run locally, inside the job)
It is a possibility:
- run locally, on existing files the check ? OR
- Possible to define branch, as an argument?
Example:
- repo: https://gitlab.com/devopshq/gitlab-ci-linter
rev: v1.0.3
hooks:
- id: gitlab-ci-linter
name: .gitlab-ci.yml linter xxx
description: Validates .gitlab-ci.yml file (pure-python version without dependencies)
entry: gitlab-ci-linter
language: python
language_version: python3
pass_filenames: false
files: 'gitlab-ci.yml'
args:
- '--server'
- 'https://MY_GITLAB_INSTANCE'
- '--project'
- 'myproject/aws/pipeline'
- '--filename'
- 'gitlab-ci.yml'
Add something like:
- repo: https://gitlab.com/devopshq/gitlab-ci-linter
rev: v1.0.3
hooks:
- id: gitlab-ci-linter
name: .gitlab-ci.yml linter xxx
description: Validates .gitlab-ci.yml file
entry: gitlab-ci-linter
language: python
language_version: python3
pass_filenames: false
files: 'gitlab-ci.yml'
args:
- '--server'
- 'https://MY_GITLAB_INSTANCE'
- '--project'
- 'myproject/aws/pipeline'
- '--filename'
- 'gitlab-ci.yml'
- '--branch'
- 'develop'
-
- '--branch' - 'develop'