Skip to content

Commit 102d2c9

Browse files
authored
Merge pull request #30 from mineiros-io/mariux/add-apps-to-branch-protection-restrictions
Add apps to branch_protection.restrictions (introduced in 2.5.0 of gi…
2 parents e214609 + d4acb87 commit 102d2c9

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ features like Branch Protection or Collaborator Management.
5050

5151
- *Features not yet implemented*:
5252
Repository Webhooks,
53-
Project Columns support
53+
Project Columns support,
54+
Actions,
55+
Repository File
5456

5557
## Getting Started
5658
Most basic usage creating a new private github repository.
@@ -408,6 +410,10 @@ Always use slug of the team, not its name.
408410
Each team already has to have access to the repository.
409411
Default is `[]`.
410412

413+
- **`apps`**: *(Optional `list(string)`)*
414+
The list of app slugs with push access.
415+
Default is `[]`.
416+
411417
#### [`issue_label`](#issue-labels-configuration) Object Attributes
412418
- **`name`**: ***(Required `string`)***
413419
The name of the label.

main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ locals {
7070
merge({
7171
users = []
7272
teams = []
73+
apps = []
7374
}, b.restrictions)] : []
7475
]
7576
}
@@ -167,6 +168,7 @@ resource "github_branch_protection" "branch_protection" {
167168
users = restrictions.value.users
168169
# TODO: try to convert teams to team-slug array
169170
teams = restrictions.value.teams
171+
apps = restrictions.value.apps
170172
}
171173
}
172174
}

0 commit comments

Comments
 (0)