Skip to content

Add auto-delete-on-merge and default team grant to github component#2

Merged
opariffazman merged 2 commits into
mainfrom
github-repo-defaults
Jun 8, 2026
Merged

Add auto-delete-on-merge and default team grant to github component#2
opariffazman merged 2 commits into
mainfrom
github-repo-defaults

Conversation

@Lexxick

@Lexxick Lexxick commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Two repo-governance defaults on the released github component, both driven by
the existing variables pattern:

  • delete_branch_on_merge (per-repo, optional, default true) auto-deletes the
    head branch after a PR merges.
  • default_team (org-wide, default "engineering") grants a team push access to
    every managed repo via github_team_repository; set default_team = "" to opt
    out. Adds a team_grants output.

Documents both behaviors in the component README and adds an [Unreleased]
Changed entry to the CHANGELOG. Requires GITHUB_TOKEN with admin:org for the
team grant to apply.

Two repo-governance defaults on the released github component, both
driven by
the existing variables pattern:
- delete_branch_on_merge (per-repo, optional, default true) auto-deletes
the
  head branch after a PR merges.
- default_team (org-wide, default "engineering") grants a team push
access to
  every managed repo via github_team_repository; set default_team = ""
to opt
  out. Adds a team_grants output.

Documents both behaviors in the component README and adds an
[Unreleased]
Changed entry to the CHANGELOG. Requires GITHUB_TOKEN with admin:org for
the
team grant to apply.
@Lexxick Lexxick requested a review from opariffazman as a code owner June 8, 2026 07:04
Comment thread github/terraform/variables.tf Outdated
variable "default_team" {
type = string
description = "Team slug granted access to every managed repo by default. Empty string disables the default grant. The team must already exist in the org."
default = "engineering"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change to engineers

@opariffazman opariffazman merged commit 2e0b52b into main Jun 8, 2026
5 checks passed
@opariffazman opariffazman deleted the github-repo-defaults branch June 8, 2026 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants