@@ -159,7 +159,7 @@ func (m *repositoryResourceModel) from(r *forgejo.Repository) {
159159 m .DefaultBranch = types .StringValue (r .DefaultBranch )
160160
161161 if ! m .Mirror .ValueBool () {
162- // cannot archive/un-archive repository mirrors
162+ // Cannot archive/un-archive repository mirrors
163163 m .Archived = types .BoolValue (r .Archived )
164164 }
165165
@@ -178,7 +178,7 @@ func (m *repositoryResourceModel) from(r *forgejo.Repository) {
178178 m .MirrorUpdated = types .StringValue (r .MirrorUpdated .Format (time .RFC3339 ))
179179
180180 if m .HasPullRequests .ValueBool () {
181- // only update PR settings if PRs are enabled
181+ // Only update PR settings if PRs are enabled
182182 m .IgnoreWhitespaceConflicts = types .BoolValue (r .IgnoreWhitespaceConflicts )
183183 m .AllowMerge = types .BoolValue (r .AllowMerge )
184184 m .AllowRebase = types .BoolValue (r .AllowRebase )
@@ -214,7 +214,7 @@ func (m *repositoryResourceModel) to(o *forgejo.EditRepoOption) {
214214 o .AllowSquash = m .AllowSquash .ValueBoolPointer ()
215215
216216 if ! m .Mirror .ValueBool () {
217- // cannot archive/un-archive repository mirrors
217+ // Cannot archive/un-archive repository mirrors
218218 o .Archived = m .Archived .ValueBoolPointer ()
219219 }
220220
@@ -812,6 +812,7 @@ func (r *repositoryResource) Schema(_ context.Context, _ resource.SchemaRequest,
812812 Description : "Mirror interval of the repository. **Note**: This setting is only effective if `mirror` is `true`." ,
813813 Optional : true ,
814814 Computed : true ,
815+ // No static default value, because DEFAULT_INTERVAL controls server setting
815816 Validators : []validator.String {
816817 stringvalidator .All (
817818 stringvalidator .AlsoRequires (path.Expressions {
0 commit comments