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

can not authorize alloy when the user has no repositories #25

Open
Licenser opened this issue Sep 22, 2017 · 1 comment
Open

can not authorize alloy when the user has no repositories #25

Licenser opened this issue Sep 22, 2017 · 1 comment

Comments

@Licenser
Copy link

When the user logged in alloy has no own repositories but only access to GH-org repositories the add repositories page keeps showing the red "you need to install alloy" banner.

to recreate:

  1. create a GH user that has no repositories but access to repositories by an org.
  2. log into alloy using this user.
  3. go to + New Project
  4. see the list of repositories in the org and the red "install alloy" banner
  5. install alloy to the org

Result:
the banner remains

Expected:
alloy is now authorized.

Workaround:
create a single empty repo in the user and authorize alloy for the user too.

@suprnova32
Copy link
Member

suprnova32 commented Sep 28, 2017

@Licenser thanks for the report. you are correct, this happens because AlloyCI checks if the GitHub app has been installed on the user's account, and not on the orgs. This was the simplest approach to make sure the app is installed.

I will make sure future versions take this limitation into consideration, and that the expected behavior is achieved.

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