question

marcowilliamspf avatar image
marcowilliamspf asked

GitHub Integration shows no repositories, what do I do?

The Problem:

I have enabled the GitHub Add-on and I am stuck in "Pending" state. There are no repositories in the drop-down list, and there is no way to remove the Add-on.

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Redmond Urbino avatar image Redmond Urbino commented ·

+1 on this issue. Making the repo a personal one then moving it to the organization won't work for my studio.

0 Likes 0 ·
marcowilliamspf avatar image
marcowilliamspf answered

The Reason:

There are two reasons that this can happen. The most obvious one is that you have no respositories that you own on the GitHub account that you have authorized. Our Add-on system only becomes active once you have selected a repository. If you don't see any repository, and you go back to the Add-on list it will show that the Add-on for Github is in a Pending state.

The second reason that this can happen, and this is something that we will update our documentation about so that it is very clear, is if you used an account that is part of an Organization. In that model, you have access to the repositories of your Organization in GitHub, but those repos are not owned by you, and so will not appear in the GitHub integration Add-on in PlayFab. At this time, the GitHub API does not allow anyone other than the account owner to register Webhooks for the repository.

The Solution:

As it stands, we recommend that you create a new GitHub account for use with PlayFab. Once you have your new account you should create a repository for each Title.

If you're stuck in a pending state you can resolve the issue by logging into GitHub under the account you Authenticated with and then navigating to this GitHub settings page (https://github.com/settings/applications) and Revoke the access to Game Manager.

In other words:

Step 1: Login to your github account ( the same one that you authenticated with when installing the addon )
Step 2: Navigate to: https://github.com/settings/applications
Step 3: Revoke GameManager

Then, go back to GameManager --> Addons --> GitHub in your title and you can authorize your new GitHub account.

Now you should see the repositories that you created on your new GitHub account in the dropdown.

Sorry for any confusion this has caused. We will get the docs updated ASAP and put some additional information in the Add-on install page to help alleviate the confusion here.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

mike avatar image
mike answered

@marco: It would be really nice to have access to the repositories of a Github "organization" for this integration. In fact, it's critical. Our organization has a paid Github account with several available private repositories. Are you saying that we need to pay for another individual Github account? This causes lots of logistical issues. Also, it makes it very difficult to collaborate with multiple team members.

It should be possible to have access to those repositories if you set up Third-Party application access: https://help.github.com/articles/about-third-party-application-restrictions/ ... ie, the requirement of "owning" a repository is handled by Github's security policies.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Marco Williams avatar image
Marco Williams answered

@mike thanks for the info we will look into this further. However, I can't give a timeline for when this will happen but I will create a ticket internally to look into it.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

andreas avatar image
andreas answered

+1 on this. I am the creator and admin of the GitHub organization but, as you are saying, there is no way I can access the repo. As Organization is the only way of keeping a project private (unless private but I believe that goes against GitHub rules for a commercial company) there is no way to actually use this feature.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

dsmith avatar image
dsmith answered

I seem to have worked around PlayFab's inability to access a repository within a GitHub organization by creating a private repository, connecting it to PlayFab, and _then_ transferring the repository to the organization. Here's what I did:

  1. Create a repository in a personal github account.
  2. Push your cloudscript JavaScript file into the new repository.
  3. Connect PlayFab to the GitHub repository according to the standard PlayFab documentation. (I.e. click the orange "GitHub" button on the Automation/CloudScript page and follow the instructions).
  4. Push a change to your JavaScript file, refresh the PlayFab cloudscript page, and verify that the latest revision reflects your changes.
  5. Return to the GitHub page for the repository, click the settings link, click the red button to transfer the repository to an organization, and follow the instructions.
  6. Push another change to the file and verify it still shows up in PlayFab.
  7. Optionally, return to the GitHub settings page for the repository and make it a private repository.
2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

oskar avatar image oskar commented ·

Can confirm this works. Thanks @dsmith !

0 Likes 0 ·
Thomas Brown avatar image Thomas Brown commented ·

What a life saver. Thanks!

0 Likes 0 ·
marcschaerer avatar image
marcschaerer answered

It would be nice if this could be prioritized along the last spring teased ability to have multiple environments on a single application.


We are a studio using PlayFab Pro in live operations and from CI/CD perspective as well as longer term reliability, using personal repositories in an organisation with well over a dozen developers and multiple environments (development, staging and live) and changes to the team is risky at best especially given the operation critical nature of the data.

2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

brendan avatar image brendan commented ·

Just so you know, our focus in terms of Cloud Script is adding an Azure Functions version (C#, full debugging). It will also provide better options for revision management.

0 Likes 0 ·
marcschaerer avatar image marcschaerer brendan commented ·

Will the better revision management be independent of Azure and Azure functions or depend on them?

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.