@@ -8967,6 +8967,8 @@ const STYLES = ['simple', 'base', 'detail'];
89678967const DEFAULT_STYLE = 'base' ;
89688968const DEFAULT_WIDTH = 50 ;
89698969
8970+ const DEFAULT_SHOW_NUMBER = 50 ;
8971+
89708972const DEFAULT_TOTAL_EMOJI = '📊' ;
89718973const DEFAULT_USER_EMOJI = '😊' ;
89728974const DEFAULT_COMPANY_EMOJI = '🏢' ;
@@ -8979,6 +8981,7 @@ module.exports = {
89798981 STYLES ,
89808982 DEFAULT_STYLE ,
89818983 DEFAULT_WIDTH ,
8984+ DEFAULT_SHOW_NUMBER ,
89828985 DEFAULT_TOTAL_EMOJI ,
89838986 DEFAULT_USER_EMOJI ,
89848987 DEFAULT_COMPANY_EMOJI ,
@@ -9341,7 +9344,13 @@ const { dealStringToArr } = __nccwpck_require__(55);
93419344
93429345const { queryContributors, formatSimple, formatBase, formatDeatil } = __nccwpck_require__ ( 2873 ) ;
93439346
9344- const { STYLES , DEFAULT_STYLE , DEFAULT_WIDTH , DEFAULT_TOTAL_EMOJI } = __nccwpck_require__ ( 6818 ) ;
9347+ const {
9348+ STYLES ,
9349+ DEFAULT_STYLE ,
9350+ DEFAULT_WIDTH ,
9351+ DEFAULT_SHOW_NUMBER ,
9352+ DEFAULT_TOTAL_EMOJI ,
9353+ } = __nccwpck_require__ ( 6818 ) ;
93459354
93469355const context = github . context ;
93479356
@@ -9376,6 +9385,12 @@ async function run() {
93769385 return ! dealStringToArr ( blockUsers ) . includes ( c . login ) ;
93779386 } ) ;
93789387 }
9388+
9389+ let showNumber = core . getInput ( 'show-number' ) || DEFAULT_SHOW_NUMBER ;
9390+
9391+ if ( contributors . length > showNumber ) {
9392+ contributors = contributors . slice ( 0 , showNumber + 1 ) ;
9393+ }
93799394 core . info ( `[Actions: Query] The ${ owner } /${ repo } has ${ contributors . length } contributors.` ) ;
93809395 core . setOutput ( 'contributors' , contributors ) ;
93819396 if ( files . length == 0 ) {
0 commit comments