GitHub Integration for Generated Apps
Applies to: App Generation projects that use the SaaS Engine template
Connect GitHub when you need an external source repository. AppWizzy keeps its internal repository for project editing and version control.
Before you connect
You need these items:
- a GitHub account.
- permission to authorize the AppWizzy OAuth application.
- active source-code access for the project.
- an available name for the new GitHub repository.
If source access is locked, AppWizzy shows the applicable plan and credit requirements before connection.
Connect GitHub
- Open the generated application project.
- Open Code and select Push to Github.
- Activate source-code access when required.
- Sign in to GitHub.
- Authorize AppWizzy repository access.
- Enter a new repository name.
- Select public or private visibility.
- Confirm the connection.
- Wait for the initial source push.
You can also start the connection from Settings. AppWizzy shows the repository link after a successful connection.
Understand the branches
AppWizzy performs current development work on the ai-dev branch. Saved project versions use this branch.
The initial repository can also contain a master branch. The current stable deployment controls are unavailable.
Do not treat master as proof of a current production deployment. Check the AppWizzy deployment state separately.
Push AppWizzy changes
Use Save to create a project version after testing. Connected projects attempt to send saved changes to GitHub.
Use Code and Push to Github when the overview reports unpushed changes. This sends current internal repository content to ai-dev.
Do not keep competing histories in ai-dev. An AppWizzy push can replace divergent remote history.
Bring GitHub changes into AppWizzy
Commit external changes to ai-dev when AppWizzy must load them.
- Save or export important AppWizzy changes.
- Push the external commit to GitHub
ai-dev. - Open Edit via Chat.
- Open Version History.
- Select Pull Latest.
- Test the application.
- Save a new version when required.
Pull Latest discards unsaved tracked-file changes before the pull. Preserve required work first.
Use VS Code for the Web
Open Code and select Open in VSCode Web. AppWizzy opens the connected repository on github.dev.
Save and commit changes in GitHub before you use Pull Latest in AppWizzy.
Disconnect GitHub
- Open Settings.
- Find Project Code.
- Select Disconnect GitHub.
- Confirm the action.
Disconnection removes the repository link from the AppWizzy project. It does not delete the GitHub repository.
Disconnection does not revoke the AppWizzy OAuth authorization. It also does not remove the project's source-code entitlement.
Reconnect by creating another repository with an available name. Keep the old repository when you need its history.
Change the GitHub account
- Disconnect GitHub in the AppWizzy project.
- Open GitHub account settings.
- Open Applications and Authorized OAuth Apps.
- Revoke the AppWizzy authorization.
- Sign in to the required GitHub account.
- Connect GitHub from AppWizzy again.
Revoking authorization affects other AppWizzy projects that use the same stored GitHub connection.
Troubleshoot the connection
Check these items when a connection or push fails:
- the GitHub authorization is active.
- the repository name is available.
- the project source repository is ready.
- source-code access is active.
ai-devdoes not contain conflicting external work.
Retry after you correct the reported error. Do not delete a GitHub repository as a general connection repair step.