-
Notifications
You must be signed in to change notification settings - Fork 87
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
Fix bug when scope is repository #17
base: main
Are you sure you want to change the base?
Conversation
@billyvg Hello, Please check me 🙏 |
src/main.ts
Outdated
return {error: `GitHub Apps can't accessible repository (${repository})`}; | ||
} | ||
|
||
return {error: ''}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of returning an object, let's throw
an error. This will simplify the error handling logic where we call this function. The exception will get caught by https://github.com/getsentry/action-github-app-token/pull/17/files#diff-4fab5baaca5c14d2de62d8d2fceef376ddddcc8e9509d86cfa5643f51b89ce3dR65
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i fixed in f318804 !
@billyvg Can you configure |
@whywaita Hmm it should be configured -- does this work for you locally? I'm not sure, but it sounds like https://github.com/getsentry/action-github-app-token/pull/17/files#diff-4fab5baaca5c14d2de62d8d2fceef376ddddcc8e9509d86cfa5643f51b89ce3dR70-R73 needs |
yes, I use the fork branch (whywaita@fix/repository-selected) to register a self-hosted runner. I will try to fix it. |
@billyvg I saw Actions page, I can't found |
I found a mistake, It needs to check pagination. |
@billyvg Hi, Can you re-run a CI in this branch? |
#11 added
scope
, but this change has a bug when setting the repository. 🙇GET /app/installations
response login_name, but it is organization name or username (not repository name).So this change fixes bugs when setting repository to scope.