Skip to content

Commit

Permalink
added explicit keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielle authored and Daniellem97 committed Aug 30, 2024
1 parent b68aaa8 commit c81913a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion notification/pull-request-comment-summary.rego
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# regal ignore:use-rego-v1
package spacelift

import future.keywords
import future.keywords.contains
import future.keywords.if
import future.keywords.in

# regal ignore:line-length
header := sprintf("### Resource changes ([link](%s))\n\n![add](https://img.shields.io/badge/add-%d-brightgreen) ![change](https://img.shields.io/badge/change-%d-yellow) ![destroy](https://img.shields.io/badge/destroy-%d-red) ![import](https://img.shields.io/badge/import-%d-blue) ![move](https://img.shields.io/badge/move-%d-purple) ![forget](https://img.shields.io/badge/forget-%d-b07878) \n\n| Action | Resource | Changes |\n| --- | --- | --- |", [input.run_updated.urls.run, count(added), count(changed), count(deleted), count(imported), count(moved), count(forgotten)])
Expand Down
4 changes: 3 additions & 1 deletion notification/pull-request-comment-summary_test.rego
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
package spacelift_test

import data.spacelift
import future.keywords
import future.keywords.contains
import future.keywords.if
import future.keywords.in

# Test with 1 resource having "create-before-destroy" action with moved false
test_create_before_destroy if {
Expand Down

0 comments on commit c81913a

Please sign in to comment.