Skip to content

Markdown report generation fails for a big org => ERROR: Cannot read properties of undefined (reading 'map') #116

Open
@a-magdy

Description

@a-magdy

Describe the bug
I am generating a report for a private organization with 800+ repos
The command I used is:
npx @stoe/action-reporting-cli --owner <org_name> --token <token> --all --md report.md

Then I get this error:

(this could take a while...)

  ERROR: Cannot read properties of undefined (reading 'map')
TypeError: Cannot read properties of undefined (reading 'map')
    at Reporting.saveMarkdown (file:///Users/zak/.npm/_npx/ed8d5df6c6ad42b9/node_modules/@stoe/action-reporting-cli/utils/reporting.js:1023:28)
    at async file:///Users/zak/.npm/_npx/ed8d5df6c6ad42b9/node_modules/@stoe/action-reporting-cli/index.js:238:7

    Usage

Screenshots
Image

Desktop (please complete the following information):

  • OS: MacOS Sequoia - M4

It is worth nothing that csv & json reports are generated successfully.
Also generating the .md report for a single repo in there works, it fails when targeting the whole org, so it might be that a specific repo breaks it somehow

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions