Skip to content

Commit c383399

Browse files
authored
feat: Support expression-based filters in VS code extension (#379)
1 parent 7f8ba64 commit c383399

File tree

1 file changed

+71
-65
lines changed

1 file changed

+71
-65
lines changed

schema.json

Lines changed: 71 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -2134,81 +2134,87 @@
21342134
}
21352135
},
21362136
"filters": {
2137-
"type": "object",
2138-
"markdownDescription": "This is similar to to other `filters` in config, but has an additional key, `tags`",
2139-
"properties": {
2140-
"branches": {
2137+
"markdownDescription": "https://circleci.com/docs/reference/configuration-reference/#jobfilters \n\n A map or string to define filtering rules for job execution. Branch and tag filters require a map. Expression-based filters require a string.",
2138+
"oneOf": [
2139+
{
21412140
"type": "object",
2142-
"markdownDescription": "A map defining rules for execution on specific branches",
21432141
"properties": {
2144-
"only": {
2145-
"oneOf": [
2146-
{
2147-
"type": "string"
2142+
"branches": {
2143+
"type": "object",
2144+
"markdownDescription": "A map defining rules for execution on specific branches",
2145+
"properties": {
2146+
"only": {
2147+
"oneOf": [
2148+
{
2149+
"type": "string"
2150+
},
2151+
{
2152+
"type": "array",
2153+
"items": {
2154+
"type": "string"
2155+
}
2156+
}
2157+
],
2158+
"markdownDescription": "Either a single branch specifier, or a list of branch specifiers"
21482159
},
2149-
{
2150-
"type": "array",
2151-
"items": {
2152-
"type": "string"
2153-
}
2160+
"ignore": {
2161+
"oneOf": [
2162+
{
2163+
"type": "string"
2164+
},
2165+
{
2166+
"type": "array",
2167+
"items": {
2168+
"type": "string"
2169+
}
2170+
}
2171+
],
2172+
"markdownDescription": "Either a single branch specifier, or a list of branch specifiers"
21542173
}
2155-
],
2156-
"markdownDescription": "Either a single branch specifier, or a list of branch specifiers"
2174+
},
2175+
"additionalProperties": false
21572176
},
2158-
"ignore": {
2159-
"oneOf": [
2160-
{
2161-
"type": "string"
2177+
"tags": {
2178+
"type": "object",
2179+
"markdownDescription": "A map defining rules for execution on specific tags",
2180+
"properties": {
2181+
"only": {
2182+
"oneOf": [
2183+
{
2184+
"type": "string"
2185+
},
2186+
{
2187+
"type": "array",
2188+
"items": {
2189+
"type": "string"
2190+
}
2191+
}
2192+
],
2193+
"markdownDescription": "Either a single tag specifier, or a list of tag specifiers"
21622194
},
2163-
{
2164-
"type": "array",
2165-
"items": {
2166-
"type": "string"
2167-
}
2195+
"ignore": {
2196+
"oneOf": [
2197+
{
2198+
"type": "string"
2199+
},
2200+
{
2201+
"type": "array",
2202+
"items": {
2203+
"type": "string"
2204+
}
2205+
}
2206+
],
2207+
"markdownDescription": "Either a single tag specifier, or a list of tag specifiers"
21682208
}
2169-
],
2170-
"markdownDescription": "Either a single branch specifier, or a list of branch specifiers"
2209+
},
2210+
"additionalProperties": false
21712211
}
2172-
},
2173-
"additionalProperties": false
2212+
}
21742213
},
2175-
"tags": {
2176-
"type": "object",
2177-
"markdownDescription": "A map defining rules for execution on specific tags",
2178-
"properties": {
2179-
"only": {
2180-
"oneOf": [
2181-
{
2182-
"type": "string"
2183-
},
2184-
{
2185-
"type": "array",
2186-
"items": {
2187-
"type": "string"
2188-
}
2189-
}
2190-
],
2191-
"markdownDescription": "Either a single tag specifier, or a list of tag specifiers"
2192-
},
2193-
"ignore": {
2194-
"oneOf": [
2195-
{
2196-
"type": "string"
2197-
},
2198-
{
2199-
"type": "array",
2200-
"items": {
2201-
"type": "string"
2202-
}
2203-
}
2204-
],
2205-
"markdownDescription": "Either a single tag specifier, or a list of tag specifiers"
2206-
}
2207-
},
2208-
"additionalProperties": false
2214+
{
2215+
"type": "string"
22092216
}
2210-
},
2211-
"additionalProperties": false
2217+
]
22122218
},
22132219
"context": {
22142220
"oneOf": [

0 commit comments

Comments
 (0)