Skip to content

Commit

Permalink
Add validate func for repository name (#965)
Browse files Browse the repository at this point in the history
Signed-off-by: KeisukeYamashita <[email protected]>
  • Loading branch information
KeisukeYamashita authored Nov 30, 2021
1 parent c5146c5 commit 8ed7ddb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions github/resource_github_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ func resourceGithubRepository() *schema.Resource {

Schema: map[string]*schema.Schema{
"name": {
Type: schema.TypeString,
Required: true,
Type: schema.TypeString,
Required: true,
ValidateFunc: validation.StringLenBetween(1, 100),
},
"description": {
Type: schema.TypeString,
Expand Down

0 comments on commit 8ed7ddb

Please sign in to comment.