Skip to content

Commit 7ba1e07

Browse files
committed
log for debugging
1 parent 21a5294 commit 7ba1e07

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/actions/file/src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)