GitHub teams

I'm trying to use github team integration to create a team: https://ci.appveyor.com/gitHubTeams
I got error message:

Cannot deserialize the current JSON object (e.g. {name into type 'Newtonsoft.Json.Linq.JObject[]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object. Path 'message', line 1, position 11.

  1. So, no GitHub teams listed on that page?

  2. No, only red error message, see attachment

  3. Apparently, it's unable to read teams of one of the orgs you belong to.

    What scopes GitHub account is authorized for on https://ci.appveyor.com/account page?

  4. Public only

  5. Re-authorize for public and private and give it another try.

  6. I could do it as a workaround, but it's not my intention: I want authorize it only for public.

  7. Yes, workaround. We'll add try..catch to skip orgs that cannot be read.

  8. ok, cool

  9. I am unable to let my github team in. the authorization is for public and private repos. Which information you need to inspect it?
    Thank you :)

  10. I tried to revoke the permission and now I am unable to reinsert it (see attachment)

  11. What's the name of that account? We can reset it from here.

  12. itajaja

  13. Done. You can re-authorize again. What should I do to reproduce the issue?

  14. Yes it worked, thanks! what I did was to revoke the permission from the github page and not from the appveyor page.

    Still, I can't see the repos.

    Repos are under the user "hylasoft", that has given permission to the "Owners" team of the "hylasoft-usa" organization. I cannot login with user "itajaja", member of the "Owners" team

  15. Do you login using "GitHub" sign in button? Do you see a dropdown with accounts when logging in to AppVeyor?

  16. yes and yes

  17. Then you should choose right account on login to see its projects.

  18. Well, they should be visible to both. Here is the configuration.
    The two users are "hylasoft" and "itajaja". The project are under the account "hylasoft". The accoun hylasoft is set up so that everyone in the "Owners" team of the "hylasoft-usa" organization have admin access. Both "hylasoft" and "itajaja" are in this team.
    Of course, if I login with "hylasoft" I see the project, not because it is shared with the team, but because they are projects of that account.
    If I enter with "itajaja", I cannot see them. Same thing for my colleagues' account in the same github team. Maybe I am doing something wrong, but I cannot see what...

  19. But this is how it's currently implemented in AppVeyor. Your GitHub username itajaja is associated with two AppVeyor accounts hylasoft and itajaja. When you login you choose what AppVeyor you want to manage. If you select hylasoft from dropdown you see projects of that account if you choose itajaja then your personal projects. You should re-login to see/manage projects under different AppVeyor accounts. The same for your colleagues (provided they see dropdown with accounts on Sign in page).

    I know it's counter-intuitive and this functionality will be revisited in the future.

  20. Ooooh... I feel stupid now. For some reason I thought I had both github credentials for my account in my broeser, that's why I thought I was seeing both, like Google multi-account selection.

    Now this might be a little OT, but since I revoked and regranted the permission, all the build on hylasoft are failing, Is there anything I can do beside deleting and readding the projects? I would like to avoid that.

    Thanks for your support.

  21. You don't need recreating the projects. Re-login to AppVeyor and select "Hylasoft" from dropdown then go to https://ci.appveyor.com/account to see what GitHub account is authorized there. Re-authorize with GitHub account  that has permissions to access those repositories.

    - Feodor

  22. still nothing:

    Build started  
    git config --global core.autocrlf input  
    git clone -q --branch=master git@github.com:hylasoft-usa/fmc-spom.git C:\projects\fmc-spom  
    Permission denied (publickey).  
    fatal: Could not read from remote repository.  
    
    Please make sure you have the correct access rights  
    and the repository exists.  
    Command exited with code 128
    

    The repo exists. Should I open another issue?

  23. Oh, it fails in this place. Did you delete AppVeyor's SSH public key from that repo?

    - Feodor

  24. It's not just one, but all of them. Could they have been revoked because I revoked the account permissions? How do I readd them?

  25. No, revoking account permissions deletes OAuth token.

    You can see SSH key on General tab of each private project. Add that SSH key to "Deploy keys" of appropriate repo on GitHub.

    - Feodor

  26. Worked. Thanks for your awesome support as always, Feodor!

  27. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:56 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac