Skip to content

Commit c69f52a

Browse files
author
Jeremy Udit
committed
fix: correct schema for github_repository_autolink_reference
1 parent 534f002 commit c69f52a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

github/resource_github_repository_autolink_reference.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,14 @@ func resourceGithubRepositoryAutolinkReference() *schema.Resource {
4343
Type: schema.TypeString,
4444
Required: true,
4545
Description: "This prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit",
46+
ForceNew: true,
4647
},
4748
"target_url_template": {
4849
Type: schema.TypeString,
4950
Required: true,
5051
Description: "The template of the target URL used for the links; must be a valid URL and contain `<num>` for the reference number",
5152
ValidateFunc: validation.StringMatch(regexp.MustCompile(`^http[s]?:\/\/[a-z0-9-.]*\/.*?<num>.*?$`), "must be a valid URL and contain <num> token"),
53+
ForceNew: true,
5254
},
5355
"etag": {
5456
Type: schema.TypeString,

0 commit comments

Comments
 (0)