Skip to content

Commit

Permalink
github(_)label -> label
Browse files Browse the repository at this point in the history
  • Loading branch information
drlau committed May 11, 2020
1 parent 72b4356 commit 3c91c66
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ terraform:
<pre><code>{{ .Body }}
</pre></code></details>
when_no_changes:
github_label: "no-changes"
label: "no-changes"
# ...
```

Expand Down
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ type WhenDestroy struct {

// WhenNoChange is a configuration to add a label when the plan result contains no change
type WhenNoChanges struct {
GithubLabel string `yaml:"github_label,omitempty"`
Label string `yaml:"label,omitempty"`
}

// Apply is a terraform apply config
Expand Down
2 changes: 1 addition & 1 deletion config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func TestLoadFile(t *testing.T) {
Template: "## :warning: WARNING: Resource Deletion will happen :warning:\n\nThis plan contains **resource deletion**. Please check the plan result very carefully!\n",
},
WhenNoChanges: WhenNoChanges{
GithubLabel: "no-changes",
Label: "no-changes",
},
},
Apply: Apply{
Expand Down
2 changes: 1 addition & 1 deletion example-with-destroy-and-no-changes.tfnotify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ terraform:
<pre><code>{{ .Body }}
</pre></code></details>
when_no_changes:
github_label: "no-changes"
label: "no-changes"
when_destroy:
template: |
## :warning: WARNING: Resource Deletion will happen :warning:
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func (t *tfnotify) Run() error {
Template: t.template,
DestroyWarningTemplate: t.destroyWarningTemplate,
WarnDestroy: t.warnDestroy,
NoChangesLabel: t.config.Terraform.Plan.WhenNoChanges.GithubLabel,
NoChangesLabel: t.config.Terraform.Plan.WhenNoChanges.Label,
})
if err != nil {
return err
Expand Down

0 comments on commit 3c91c66

Please sign in to comment.