File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,10 +59,13 @@ export default async function () {
5959 let response : OctokitResponse < IssueResponse > | undefined
6060 try {
6161 if ( isResolvedFiling ( filing ) ) {
62+ console . log ( 'resolved filing, closing' )
6263 // Close the filing’s issue (if necessary)
6364 response = await closeIssue ( octokit , new Issue ( filing . issue ) )
6465 filing . issue . state = 'closed'
6566 } else if ( isNewFiling ( filing ) ) {
67+ console . log ( 'new filing, opening' )
68+
6669 // Open a new issue for the filing
6770 response = await openIssue ( octokit , repoWithOwner , filing . findings [ 0 ] , screenshotRepo )
6871 ; ( filing as Filing ) . issue = { state : 'open' } as Issue
@@ -79,6 +82,7 @@ export default async function () {
7982 } )
8083 }
8184 } else if ( isRepeatedFiling ( filing ) ) {
85+ console . log ( 'repeated filing, updating issue with new findings' )
8286 // Reopen the filing's issue (if necessary) and update the body with the latest finding
8387 response = await reopenIssue (
8488 octokit ,
You can’t perform that action at this time.
0 commit comments