Skip to content

Commit 7362807

Browse files
authored
regal/ast: update metadata fields (#1988)
We've pivoted from `id` to `labels`. It's all within the release window so there's no reason to keep the `id` around. Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
1 parent 555135d commit 7362807

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bundle/regal/ast/comments.rego

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ comments["blocks"] := comment_blocks(comments_decoded)
3030
# METADATA
3131
# description: set of all the standard metadata attribute names, as provided by OPA
3232
comments["metadata_attributes"] := {
33-
"id",
3433
"scope",
3534
"title",
3635
"description",
36+
"labels",
3737
"related_resources",
3838
"authors",
3939
"organizations",
@@ -46,7 +46,7 @@ comments["metadata_attributes"] := {
4646
# METADATA
4747
# description: true if comment matches a metadata annotation attribute
4848
comments["annotation_match"](str) if regex.match(
49-
`^\s*(id|scope|title|description|related_resources|authors|organizations|schemas|entrypoint|custom|compile)\s*:`,
49+
`^\s*(scope|title|description|labels|related_resources|authors|organizations|schemas|entrypoint|custom|compile)\s*:`,
5050
str,
5151
)
5252

0 commit comments

Comments
 (0)