-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support loading of GitLab !reference
data during validation
#274
Comments
Thanks for the detailed report! Looking back at #112 and looking at the implementation, it looks like the current implementation of I think this request will require implementing actual
I'm wondering if there is perhaps a simpler solution which would get you unblocked in the near term. As a brief aside, you can omit the - id: check-gitlab-ci
- args: ["--data-transform", "gitlab-ci"] The |
!reference
valid syntax is unsupported!reference
data during validation
Thanks for your work and this great tool! :) Is there any workaround besides excluding the whole file via pre-commit currently? My example: include:
- local: "rules.yml"
somejob:
rules:
- !reference [.ci_commit_tag_matches_semantic_version, rules]
- when: never
script:
- ls rules.yml .ci_commit_tag_matches_semantic_version:
rules:
- if: '$CI_COMMIT_TAG =~ /^v\d+.\d+.\d+((a|b|rc)\d+)?/' # examples: v0.7.5, v1.2.3a0, v0.14.12b0, v3.4.0rc5 |
Unfortunately, there is not. I haven't been able to put in the hours needed to develop a real solution. Right now, I think I will pursue support only for I'm not sure when I can get to it. I've been running behind on |
Preface
GitLab
!reference
support was added in #112 but there are still some edge cases.How I verified that there are no duplicate issues in the issue tracker
I searched for the "reference" word between open and closed issues and I found only closed #112.
.pre-commit-config.yaml
Valid
.gitlab-ci.yml
check-gitlab-ci
outputExpected result
Accept the mentioned YAML syntax.
The text was updated successfully, but these errors were encountered: