Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| cad35f8d9b |
@@ -24,16 +24,4 @@ resource "gitea_repository_branch_protection" "this" {
|
||||
require_signed_commits = var.require_signed_commits
|
||||
protected_file_patterns = var.protected_file_patterns
|
||||
unprotected_file_patterns = var.unprotected_file_patterns
|
||||
|
||||
lifecycle {
|
||||
# Gitea resolves whitelist names to IDs and returns them ordered by repo-reader (user ID for users, name for teams), dropping any entity without repo access, so the read-back representation never matches the config and plans a spurious update every run.
|
||||
ignore_changes = [
|
||||
push_whitelist_users,
|
||||
push_whitelist_teams,
|
||||
merge_whitelist_users,
|
||||
merge_whitelist_teams,
|
||||
approval_whitelist_users,
|
||||
approval_whitelist_teams,
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,4 +17,9 @@ resource "gitea_repository" "this" {
|
||||
website = var.website
|
||||
autodetect_manual_merge = var.autodetect_manual_merge
|
||||
archive_on_destroy = true
|
||||
|
||||
lifecycle {
|
||||
# migration_mirror_interval defaults to "8h0m0s" but Gitea returns an empty MirrorInterval for non-mirror repos, so the read-back never matches and plans a spurious update every run; it is a migration-only knob with no drift to track here.
|
||||
ignore_changes = [migration_mirror_interval]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user