File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -10,20 +10,19 @@ const categories = actionsCore.getInput('categories');
1010
1111const octokit = actionsGithub . getOctokit ( token )
1212octokit . rest . repos . listForOrg ( { org : organizationName } ) . then ( ( response ) => {
13- response . data . forEach ( ( repo ) => {
14- if ( onlyPublicRepositories && repo . private ) {
13+ response . data . forEach ( ( repository ) => {
14+ if ( onlyPublicRepositories && repository . private ) {
1515 return ;
1616 }
1717
18- octokit . rest . issues . listLabelsForRepo ( { owner : organizationName , repo : repo . name } ) . then ( ( labels ) => {
18+ octokit . rest . issues . listLabelsForRepo ( { owner : organizationName , repo : repository . name } ) . then ( ( labels ) => {
1919 const categoryLabel = labels . data . filter ( ( label ) => label . name . match ( new RegExp ( labelSearchPattern ) ) ) [ 0 ] ;
2020
2121 if ( ! categoryLabel ) {
2222 return ;
2323 }
2424
25- console . log ( categoryLabel . description ?. split ( ',' ) . map ( ( category ) => category . trim ( ) ) ) ;
26-
25+ console . log ( repository . name , categoryLabel . description ?. split ( ',' ) . map ( ( category ) => category . trim ( ) ) ) ;
2726 } )
2827 } )
2928} )
You can’t perform that action at this time.
0 commit comments