SublimeText / YamlPipelines

Sublime Syntax Definitions for YAML CI/CD pipelines like GitHub Actions, AzureDevops, Kong API Gateway, Gitlab CICD, Bitbucket, Drone CI etc.
MIT License
18 stars 1 forks source link

Expand path pattern based pipeline syntax detection #13

Closed detly closed 1 year ago

detly commented 1 year ago

I wanted to add detection for a couple of common conventions:

  1. Gitlab CI config is often decomposed into files ending with .gitlab-ci.yml. For example, these templates. Sublime Text's file_extensions key does not allow for this.
  2. Github composite actions, which live alongside workflow files. They are nested one level deeper, so I had to make the pattern **/* instead of **.

This meant expanding the path-pattern-based detection of syntax to use a mapping.