You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enforce restrictions for the users and teams that may push to the branch - only available for organization-owned repositories. See Restrictions below for details.
677
-
678
-
Default is `{}`.
679
-
680
-
The `restrictions` object accepts the following attributes:
This resource allows you to configure branch protection for repositories in your organization.
@@ -646,6 +646,14 @@ section {
646
646
END
647
647
}
648
648
649
+
attribute"require_conversation_resolution" {
650
+
type=bool
651
+
default=false
652
+
description=<<-END
653
+
Setting this to true requires all conversations to be resolved.
654
+
END
655
+
}
656
+
649
657
attribute"require_signed_commits" {
650
658
type=bool
651
659
default=false
@@ -757,137 +765,12 @@ section {
757
765
}
758
766
759
767
variable"branch_protections" {
760
-
type=list(branch_protection)
768
+
type=list(branch_protection_v3)
761
769
default=[]
762
770
description=<<-END
763
771
**_DEPRECATED_** To ensure compatibility with future versions of this module, please use `branch_protections_v3`.
764
-
This argument is ignored if `branch_protections_v3` is used.
772
+
This argument is ignored if `branch_protections_v3` is used. Please see `branch_protections_v3` for supported attributes.
765
773
END
766
-
767
-
attribute"branch" {
768
-
required=true
769
-
type=string
770
-
description=<<-END
771
-
The Git branch to protect.
772
-
END
773
-
}
774
-
775
-
attribute"enforce_admins" {
776
-
type=bool
777
-
default=false
778
-
description=<<-END
779
-
Setting this to true enforces status checks for repository administrators.
780
-
END
781
-
}
782
-
783
-
attribute"require_signed_commits" {
784
-
type=bool
785
-
default=false
786
-
description=<<-END
787
-
Setting this to true requires all commits to be signed with GPG.
788
-
END
789
-
}
790
-
791
-
attribute"required_status_checks" {
792
-
type=object(required_status_checks)
793
-
default={}
794
-
description=<<-END
795
-
Enforce restrictions for required status checks.
796
-
See Required Status Checks below for details.
797
-
END
798
-
799
-
attribute"strict" {
800
-
type=bool
801
-
description=<<-END
802
-
Require branches to be up to date before merging.
803
-
Defaults is `false`.
804
-
END
805
-
}
806
-
807
-
attribute"contexts" {
808
-
type=list(string)
809
-
default=[]
810
-
description=<<-END
811
-
The list of status checks to require in order to merge into this branch. If default is `[]` no status checks are required.
812
-
END
813
-
}
814
-
}
815
-
816
-
attribute"required_pull_request_reviews" {
817
-
type=object(required_pull_request_reviews)
818
-
default={}
819
-
description=<<-END
820
-
Enforce restrictions for pull request reviews.
821
-
END
822
-
823
-
attribute"dismiss_stale_reviews" {
824
-
type=bool
825
-
default=true
826
-
description=<<-END
827
-
Dismiss approved reviews automatically when a new commit is pushed.
828
-
END
829
-
}
830
-
831
-
attribute"dismissal_users" {
832
-
type=list(string)
833
-
default=[]
834
-
description=<<-END
835
-
The list of user logins with dismissal access
836
-
END
837
-
}
838
-
839
-
attribute"dismissal_teams" {
840
-
type=list(string)
841
-
default=[]
842
-
description=<<-END
843
-
The list of team slugs with dismissal access.
844
-
Always use slug of the team, not its name.
845
-
Each team already has to have access to the repository.
846
-
END
847
-
}
848
-
849
-
attribute"require_code_owner_reviews" {
850
-
type=bool
851
-
default=false
852
-
description=<<-END
853
-
Require an approved review in pull requests including files with a designated code owner.
854
-
END
855
-
}
856
-
}
857
-
858
-
attribute"restrictions" {
859
-
type=object(restrictions)
860
-
default={}
861
-
description=<<-END
862
-
Enforce restrictions for the users and teams that may push to the branch - only available for organization-owned repositories. See Restrictions below for details.
863
-
END
864
-
865
-
attribute"users" {
866
-
type=list(string)
867
-
default=[]
868
-
description=<<-END
869
-
The list of user logins with push access.
870
-
END
871
-
}
872
-
873
-
attribute"teams" {
874
-
type=list(string)
875
-
default=[]
876
-
description=<<-END
877
-
The list of team slugs with push access.
878
-
Always use slug of the team, not its name.
879
-
Each team already has to have access to the repository.
0 commit comments