GitHub
Install the Lyna GitHub App, link or create a repository, push and pull your project, and work with pull requests, issues and workflow runs from the editor.
Every Lyna project is a Git repository. Connect it to GitHub to keep a copy of your code there, work with other tools, and review changes with pull requests.
What you can do
- Install the Lyna GitHub App on your account or organization.
- Create a repository for your project, or link one that exists.
- Push your commits and pull changes made elsewhere.
- Create and review pull requests.
- Read and create issues.
- See your workflow runs and deployments.
Connect a repository
Open Source Control
In the editor, open the Source Control panel (Cmd/Ctrl + Shift + H) and go to GitHub.
Connect GitHub
Choose Connect GitHub and install the GitHub App on the account or organization that should hold the repository. You choose which repositories the app can reach.
Create or link
- Create Repository: pick the Owner (your personal account or an organization), a Repository name and Public or Private.
- Link Existing Repository: search your repositories, or type
owner/repo.
Push and pull
The panel shows how many commits you are ahead and behind.
- Push sends your commits to GitHub. Force Push overwrites the remote history: use it only when you mean to, it cannot be undone.
- Pull brings in changes from GitHub. Pull with Rebase replays your commits on top of them. If the pull finds conflicts, resolve them in the editor.
Lyna saves your work as commits as you build. Push when you want GitHub to have the latest version.
Pull requests, issues and actions
- Pull requests: Create Pull Request from a feature branch into a base branch. Open a pull request to see its files, checks and reviews, then Approve, Request Changes or Add Comment.
- Issues: list open issues and create a New Issue.
- Actions and Deployments: see the latest workflow runs and deployments of the repository.
Create a branch first to open a pull request: you cannot open one from the base branch. See Git.
Unlink or disconnect
- Unlink Repository removes the remote from the project. The repository stays on GitHub.
- Disconnect GitHub removes the app connection.