Limitations
Currently, the parsed repository cannot exceed 4.5MB. This is due to the request size limit of Vercel Functions. Submitting larger repositories will most likely result in a 500 error during the data submission phase of the parser.
Handling Large Repositories
To overcome this limitation, you can use the compress
parameter in your GitHub Action workflow:
Use the Compress Parameter
The frogermcs/codeaudits-parse
GitHub Action includes a compress
parameter that uses Repomix for intelligent code extraction. When enabled, it focuses on essential function and class signatures to reduce token count while maintaining the important structural information of your codebase.
Example usage in your workflow file:
- name: Parse Repository
uses: frogermcs/codeaudits-parse@v1.1.0
id: parse
with:
style: markdown
compress: true # Enable compression for large repositories
push-to-codeaudits: true
codeaudits-api-key: ${{ secrets.CODE_AUDITS_API_KEY }}
This approach allows you to analyze larger repositories by intelligently reducing the amount of code while preserving the important structural elements needed for effective code auditing.