You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -155,6 +155,30 @@ terraform:
155
155
# ...
156
156
```
157
157
158
+
You can also let tfnotify add a label to PRs whose `terraform plan` output result in no change to the current infrastructure. Currently, this feature is for Github labels only.
159
+
160
+
```yaml
161
+
---
162
+
# ...
163
+
terraform:
164
+
# ...
165
+
plan:
166
+
template: |
167
+
{{ .Title }} <sup>[CI link]( {{ .Link }} )</sup>
168
+
{{ .Message }}
169
+
{{if .Result}}
170
+
<pre><code>{{ .Result }}
171
+
</pre></code>
172
+
{{end}}
173
+
<details><summary>Details (Click me)</summary>
174
+
175
+
<pre><code>{{ .Body }}
176
+
</pre></code></details>
177
+
when_no_changes:
178
+
label: "no-changes"
179
+
# ...
180
+
```
181
+
158
182
Sometimes you may want not to HTML-escape Terraform command outputs.
159
183
For example, when you use code block to print command output, it's better to use raw characters instead of character references (e.g. `-/+` -> `-/+`, `"` -> `"`).
Template: "## :warning: WARNING: Resource Deletion will happen :warning:\n\nThis plan contains **resource deletion**. Please check the plan result very carefully!\n",
0 commit comments