Skip to content

Commit

Permalink
feat: Configure squash merges
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarea committed Jul 28, 2023
1 parent 92dc329 commit ba702ba
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ resource "github_repository" "main" {
visibility = "public"
topics = var.topics

// Only allow squash merges
allow_merge_commit = false
allow_rebase_merge = false

allow_auto_merge = false
delete_branch_on_merge = true
// PR merging
allow_merge_commit = false
allow_rebase_merge = false
squash_merge_commit_title = "PR_TITLE"
squash_merge_commit_message = "PR_BODY"
allow_auto_merge = false
delete_branch_on_merge = true

has_issues = var.support_issues
has_discussions = var.support_discussions
Expand Down

0 comments on commit ba702ba

Please sign in to comment.