Description
Describe the bug
The first time a contributor triggered the workflow (v2.4.0) on a repository, the action failed before doing much of anything. The error message is "Error: Could not retrieve repository contents. Status: 404".
Here's an example in a clean repository with the Action installed simply by copy/pasting YAML from the action's Marketplace page: https://github.com/liffiton/testrepotest/actions/runs/9551059846
The error appears to come from SetupClaCheck.ts. However, I can't tell how the error is being thrown, because if error.status
is 404
, which the error message says it is, then the conditional should trigger the createClaFileAndPRComment()
call instead. Maybe a type issue where error.status
is a string for some reason?
To Reproduce
Steps to reproduce the behavior:
- Create a new repository.
- Set up the workflow on that repository by copying the .yml file from contributor-assistant/github-action's README.
- Trigger the action with a new pull request on the repository.