gitlab-ci files are not recognized, if they live under `.gitlab/ci`
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- gitlab
- Domain
- ci-cd
Research direction
Start at src/api/json/catalog.json around line 2396 and inspect the GitLab CI fileMatch entry. Update the matching patterns to cover valid YAML files under .gitlab/ci, then verify that an example such as .gitlab/ci/docker.yml selects the GitLab CI schema.
Written by the indexing model from the issue text.
Description
Area with issue?
JSON Schema
✔️ Expected Behavior
To break the gitlab ci configuration into smaller files it is possible to put them into the folder .gitlab/ci. Then you can include these files in the .gitlab-ci.yml file, which is lying in the root dir of the project.
This makes it easy to work with complex pipelines.
In catalog.json you could expand the fileMatch argument with the following parameters:
"**.gitlab/ci/*.yml", "**.gitlab/ci/*.yaml"
This would be great, so you could organize the files as the stages or jobs they represent.
❌ Actual Behavior
If i place a gitlab-ci file, which has something to do with docker images under .gitlab/ci and name it docker.yml it will result in the following file path: .gitlab/ci/docker.yml.
Although it is a valid gitlab-ci file, the fileMatch regex is not satisfied and therefore the correct schema could not be selected.
YAML or JSON file that does not work.
Any otherwise correct .gitlab-ci.yml file under the dir $PROJECT_ROOT/.gitlab/ci
IDE or code editor.
None
Are you making a PR for this?
Yes, I will create a PR.
Edit: changed link to correct position and corrected fileMatch pattern
- Dominant language
- JavaScript
- Stars
- 3.8k
- Forks
- 2.3k
- Avg merge
- 19h 59m
- Merged PRs (30d)
- 127
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from SchemaStore/schemastore
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
SchemaStore/schemastore#6351 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
SchemaStore/schemastore#6019 · 4 comments ·
-
Bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
SchemaStore/schemastore#5210 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
SchemaStore/schemastore#6349 ·
-
Help Wanted Schema
Difficulty 3/5 1-2 days Newbie friendliness 58/100
SchemaStore/schemastore#6327 ·
All issues in SchemaStore/schemastore
Similar issues
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
githubnext/gh-aw-cao#13143 ·
-
status: needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100