File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 } `
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments