Connecting Your Code
Linking Cosine with GitHub
Section titled “Linking Cosine with GitHub”Cosine operates as a GitHub App, allowing it to interact with your repositories securely.
- Install the Cosine GitHub App: During onboarding or when adding a new project, you’ll be prompted to install the Cosine app.
- Authorize Access: You’ll be redirected to GitHub to authorize the app.
- Select Repositories: Choose the repositories you want Cosine to access.
- Confirm Installation: Click Install & Authorize.
Once authorized, Cosine will have access to the selected repositories.
Importing a Repository
Section titled “Importing a Repository”With GitHub connected, importing a repository is straightforward:
- Navigate to the Dashboard: From Cosine’s main dashboard, click on New Project.
- Select Repository: You’ll see a list of repositories you’ve authorized.
- Import: Click Import next to the repository you want to work on.
Cosine will begin indexing your codebase, preparing it for task assignments.
Managing Projects
Section titled “Managing Projects”Each repository you import becomes a separate project within Cosine.
- Adding New Projects: Repeat the import process for additional repositories.
- Removing Projects: To remove a project, navigate to its settings and select Delete Project.
Note: Deleting a project is irreversible. Ensure you no longer need Cosine’s assistance with it before proceeding.
Project Settings Overview
Section titled “Project Settings Overview”Within each project’s settings, you can configure various preferences:
- Task Settings: Define how Cosine should handle tasks for this project.
- Workflows: Specify CI workflows Cosine should monitor.
- Integrations: Connect third-party services like Vercel, Linear, or Jira.
- Events: Set preferences for how Cosine responds to events, such as ignoring bot comments on pull requests.
- Reinitialize Project: If Cosine encounters issues, reinitializing can help sync it with the latest state of your repository.
By configuring these settings, you tailor Cosine’s behavior to fit your project’s needs.
With your repositories connected and projects configured, Cosine is ready to assist you in streamlining your development workflow.