@@ -4,7 +4,7 @@ const configuration = {
44 close_if_suspicious : false ,
55} ;
66
7- async function collect_user_information_report ( { user } ) {
7+ async function make_information_report ( { user } ) {
88 // we might also create a (pre-)report for spam to GH using the following informations:
99 return `> [!WARNING] About the author:
1010>
@@ -154,7 +154,6 @@ module.exports = async ({ github, context, core }) => {
154154 // then use a weights/factors instead of booleans,
155155 // compute a confidence score to check against a threshold => if below, then reject
156156
157-
158157 async function processFailedChecks ( checks ) {
159158 const results = await Promise . all (
160159 checks . map ( async ( check ) => ( {
@@ -164,7 +163,6 @@ module.exports = async ({ github, context, core }) => {
164163 ) ;
165164 return results . filter ( ( { passed } ) => passed ) . map ( ( { check } ) => check ) ;
166165 }
167- // const failed_checks = checks.filter(check => ! check.pass());
168166
169167 processFailedChecks ( checks ) . then ( failed_checks => {
170168 const threshold = 0 ;
@@ -175,7 +173,8 @@ module.exports = async ({ github, context, core }) => {
175173
176174 when_suspicious ( { github, context, failed_checks} ) ;
177175
178- const user_information_as_comment = collect_user_information_report ( ) ;
176+ const user_information_as_comment = make_information_report ( { user : user } ) ;
179177 // do stuffs with user_information_as_comment
178+ console . log ( "user_information_as_comment" , user_information_as_comment ) ;
180179 } ) ;
181180} ;
0 commit comments