File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -177,11 +177,13 @@ export async function describeAccessChanges(
177
177
)
178
178
}
179
179
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 ) ) {
183
185
lines . push (
184
- ` - will gain ${ permission } permission to ${ repository } `
186
+ ` - will gain ${ config } permission to ${ repository } `
185
187
)
186
188
}
187
189
}
@@ -197,8 +199,12 @@ export async function describeAccessChanges(
197
199
lines . push ( ` - will leave the organization` )
198
200
}
199
201
if ( change . lhs . repositories ) {
202
+ const repositories = change . lhs . repositories as unknown as Record <
203
+ string ,
204
+ { permission : string }
205
+ >
200
206
for ( const [ repository , { permission} ] of Object . entries (
201
- change . lhs . repositories . repositories
207
+ repositories
202
208
) ) {
203
209
lines . push (
204
210
` - will lose ${ permission } permission to ${ repository } `
Original file line number Diff line number Diff line change @@ -61,7 +61,6 @@ export class TeamMember extends String implements Resource {
61
61
r . type === Team . StateType &&
62
62
r . index === teamIndex
63
63
)
64
- console . log ( teamIndex , team )
65
64
members . push (
66
65
new TeamMember (
67
66
team !== undefined && team . type === Team . StateType
You can’t perform that action at this time.
0 commit comments