Skip to content

Commit

Permalink
Add comment about undocumented API feature
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko authored Aug 14, 2018
1 parent 4febc5f commit 0ecf325
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions github/resource_github_repository_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ func resourceGithubRepositoryWebhook() *schema.Resource {
Optional: true,
Sensitive: true,
DiffSuppressFunc: func(k, oldV, newV string, d *schema.ResourceData) bool {
// Undocumented GitHub feature where API returns 8 asterisks in place of the secret
maskedSecret := "********"
if oldV == maskedSecret {
return true
Expand Down

0 comments on commit 0ecf325

Please sign in to comment.