Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better error message when the app isn't installed to the repo #69

Open
CatChen opened this issue Jun 1, 2023 · 1 comment
Open

Better error message when the app isn't installed to the repo #69

CatChen opened this issue Jun 1, 2023 · 1 comment

Comments

@CatChen
Copy link

CatChen commented Jun 1, 2023

The error message Error: Cannot read properties of undefined (reading 'id') isn't very descriptive. I looked into this action's source code and realized that the app wasn't properly installed to the repo so this line throws:

let installationId = installations.data[0].id;

@ChrisAcrobat
Copy link

ChrisAcrobat commented Aug 2, 2023

I think I have this issue currently. Do you know how to fix it?
I had it working on an older repo, but I get this error on a new repo after copy-pasting the workflow.
EDIT: Fixed it. Thanks for pointing me to the right direction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants