Skip to content

Commit 32a3b10

Browse files
committed
upgrade@7931539654
1 parent d2bd149 commit 32a3b10

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

scripts/src/actions/shared/get-access-summary-description.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,16 @@ function getAccessSummaryFrom(source: State | Config): Record<string, any> {
4747
}
4848

4949
function describeAccessSummary(accessSummary: Record<string, any>): string {
50-
const lines: string[] = []
50+
const lines: string[] = [
51+
'<details><summary>Access Summary</summary>',
52+
'',
53+
'```',
54+
]
55+
5156
const permissions = ['admin', 'maintain', 'push', 'triage', 'pull']
5257

5358
for (const [username, summary] of Object.entries(accessSummary)) {
54-
lines.push(`User @${username}:`)
59+
lines.push(`User ${username}:`)
5560
if (summary.role !== undefined) {
5661
lines.push(` - is a ${summary.role} of the organization`)
5762
} else {
@@ -69,7 +74,7 @@ function describeAccessSummary(accessSummary: Record<string, any>): string {
6974
if (access.type === 'collaborator') {
7075
buffer.push(` - ${repository} as a direct collaborator`)
7176
} else {
72-
buffer.push(` - ${repository} through team @${access.team}`)
77+
buffer.push(` - ${repository} through team ${access.team}`)
7378
}
7479
}
7580
}
@@ -86,6 +91,8 @@ function describeAccessSummary(accessSummary: Record<string, any>): string {
8691
}
8792
}
8893

94+
lines.push('```', '')
95+
8996
return lines.join('\n')
9097
}
9198

terraform/resources.tf

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,6 @@ resource "github_branch_protection" "this" {
162162
]) : item.index => local.resources[item.source].github_branch_protection.this[item.index]
163163
}
164164

165-
depends_on = [github_repository.this]
166-
167165
pattern = each.value.pattern
168166

169167
repository_id = try(each.value.repository_id, github_repository.this[lower(each.value.repository)].node_id)
@@ -239,7 +237,7 @@ resource "github_team_repository" "this" {
239237
]) : item.index => local.resources[item.source].github_team_repository.this[item.index]
240238
}
241239

242-
depends_on = [github_team.this, github_repository.this]
240+
depends_on = [github_repository.this]
243241

244242
repository = each.value.repository
245243
permission = each.value.permission
@@ -261,8 +259,6 @@ resource "github_team_membership" "this" {
261259
] : item.index => local.resources[item.source].github_team_membership.this[item.index]
262260
}
263261

264-
depends_on = [github_team.this]
265-
266262
username = each.value.username
267263
role = each.value.role
268264

@@ -292,8 +288,6 @@ resource "github_repository_file" "this" {
292288
]) : item.index => local.resources[item.source].github_repository_file.this[item.index]
293289
}
294290

295-
depends_on = [github_repository.this]
296-
297291
repository = each.value.repository
298292
file = each.value.file
299293
content = each.value.content

0 commit comments

Comments
 (0)