Skip to content

Commit 13e20e2

Browse files
committed
fix: describe access changes
1 parent d1f77fe commit 13e20e2

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

scripts/src/actions/shared/describe-access-changes.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,13 @@ export async function describeAccessChanges(
177177
)
178178
}
179179
if (change.rhs.repositories) {
180-
for (const [repository, {permission}] of Object.entries(
181-
change.rhs.repositories.repositories
182-
)) {
180+
const repositories = change.rhs.repositories as unknown as Record<
181+
string,
182+
{permission: string}
183+
>
184+
for (const [repository, config] of Object.entries(repositories)) {
183185
lines.push(
184-
` - will gain ${permission} permission to ${repository}`
186+
` - will gain ${config} permission to ${repository}`
185187
)
186188
}
187189
}
@@ -197,8 +199,12 @@ export async function describeAccessChanges(
197199
lines.push(` - will leave the organization`)
198200
}
199201
if (change.lhs.repositories) {
202+
const repositories = change.lhs.repositories as unknown as Record<
203+
string,
204+
{permission: string}
205+
>
200206
for (const [repository, {permission}] of Object.entries(
201-
change.lhs.repositories.repositories
207+
repositories
202208
)) {
203209
lines.push(
204210
` - will lose ${permission} permission to ${repository}`

scripts/src/resources/team-member.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ export class TeamMember extends String implements Resource {
6161
r.type === Team.StateType &&
6262
r.index === teamIndex
6363
)
64-
console.log(teamIndex, team)
6564
members.push(
6665
new TeamMember(
6766
team !== undefined && team.type === Team.StateType

0 commit comments

Comments
 (0)