Skip to content

Commit ea3aa70

Browse files
committed
fix: add named queries default parameters on migration
1 parent e9657f8 commit ea3aa70

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

queries/github_container_package.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ title: Find Container Packages to be utilized in tasks
44
description: Find Container Packages in GitHub for tasks
55
integration_type:
66
- github_account
7+
parameters:
8+
- key: github_package
9+
value: '*'
10+
- key: limit_of_packages
11+
value: '100'
712
query: |
813
SELECT
914
id,
@@ -14,10 +19,10 @@ query: |
1419
github_container_package
1520
WHERE
1621
(
17-
COALESCE('{{.github_package}}', '*') = '*'
22+
COALESCE(NULLIF('{{.github_package}}', '<no value>'), '*') = '*'
1823
OR name = ANY(STRING_TO_ARRAY('{{.github_package}}', ','))
1924
)
20-
LIMIT {{.limit_of_packages}};
25+
LIMIT COALESCE(NULLIF('{{.limit_of_packages}}', '<no value>'), '100')::INTEGER;
2126
tags:
2227
cloud_provider:
2328
- github

0 commit comments

Comments
 (0)