Skip to content

Commit

Permalink
Merge pull request #1053 from NicholasAsimov/add-blockpage-field-supp…
Browse files Browse the repository at this point in the history
…ress
  • Loading branch information
jacobbednarz committed Aug 22, 2022
2 parents 989cc31 + b803b6a commit 5c68ab9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/1053.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
teams_account: add support for `suppress_footer`
```
1 change: 1 addition & 0 deletions teams_accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ type TeamsBlockPage struct {
Name string `json:"name,omitempty"`
MailtoAddress string `json:"mailto_address,omitempty"`
MailtoSubject string `json:"mailto_subject,omitempty"`
SuppressFooter *bool `json:"suppress_footer,omitempty"`
}

type TeamsRuleType = string
Expand Down
4 changes: 3 additions & 1 deletion teams_accounts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ func TestTeamsAccountConfiguration(t *testing.T) {
"mailto_address": "admin@example.com",
"mailto_subject": "Blocked User Inquiry",
"logo_path": "https://logos.com/a.png",
"background_color": "#ff0000"
"background_color": "#ff0000",
"suppress_footer": true
}
}
}
Expand Down Expand Up @@ -101,6 +102,7 @@ func TestTeamsAccountConfiguration(t *testing.T) {
Name: "Cloudflare",
MailtoAddress: "admin@example.com",
MailtoSubject: "Blocked User Inquiry",
SuppressFooter: BoolPtr(true),
},
})
}
Expand Down

0 comments on commit 5c68ab9

Please sign in to comment.