> ## Documentation Index
> Fetch the complete documentation index at: https://docs.repl.it/llms.txt
> Use this file to discover all available pages before exploring further.

# Contribute to a GitHub project

> Import a repository from a chat, ask for one small change, check it in a preview, and let Agent open the pull request.

Make a small change to a repository you have write access to, straight from a chat. Import
the repository from the prompt box, ask for the change in plain language, and check it in a
live preview. When it looks right, Agent commits it to a branch, pushes it, and opens the
pull request with the description filled in.

## Best for

* Developers who want to ship changes without setting up a local environment.
* Non-developers who need a small change, like a typo or a copy fix, made without pulling a developer off their work.

## Connectors

## Before you start

Pick one small, well-scoped change, and check the project's contributing guide if it has
one. You need write access to the repository, since Agent pushes the branch directly and
opens the pull request from there.

In the prompt box, open the **plus** menu, select **Import an existing project**, choose
**GitHub**, and paste the repository URL. You can also just paste the repository link
directly into the prompt box.

## Prompt the agent

This is \[Repo link], imported from GitHub. Change the H1 on the home
page from \[current text] to \[new text]. Keep the project's existing styling
and copy conventions, don't touch anything else, and show me a preview of the
page running.

## What to expect

**1. Connect GitHub if needed**

Agent asks you to connect GitHub if it isn't connected yet. Choose a repository you have permission to work on.

![](https://docs.repl.it/images/connectors/github.svg)
Connect GitHub

Connect GitHub so Agent can read your repository and submit your approved changes for review.

Dismiss
Connect GitHub

**2. Agent sets the project up**

It reads the repository, installs dependencies, and asks for anything it
can't infer, like a missing environment variable.

**3. It finds the right file**

Not just the matching string, and tells you what it plans to change
before editing.

**4. It applies the change and opens a preview**

So you see the real page instead of a diff.

**5. Ask for the pull request**

Once the preview looks right, ask for it in the same chat. This saves your
change and sends it to your team as a pull request, so someone can review
it before it goes live. Confirm your GitHub connection is still active
first.

Commit this change and open a pull request for review. Give it a clear
title and write the description based on what changed and how I
checked it.

You end up with a pull request on the repository, filled in with what changed, why, and how
you checked it. Review the diff yourself before it goes out: reviewers push back on
sprawling changes, so anything unrelated belongs in a separate pull request.

## Make it work for you

Before you commit, run the project's linter and test suite and show me
anything that fails. List every file the diff touches and flag anything
unrelated to \[change].

A reviewer left these review comments \[paste]. Apply the ones that are
factual fixes, tell me which ones you disagree with and why, then push to the
same branch.

## Troubleshooting

> [accordion] The preview won't start
>
> The project needs its run command or environment variables. Ask Agent to
> read the contributing guide and the example env file, then tell you exactly
> what's missing.

> [accordion] The push is rejected
>
> Confirm you have write access to the repository and that your GitHub
> connection is still active. Some organizations also restrict branch names
> or require signed commits. Ask Agent to show you the exact error.

> [accordion] A reviewer asks for changes
>
> Commit on the same branch and push again. The pull request updates itself,
> so don't open a second one.

## Related

> [card] [Generate release notes](https://docs.repl.it/use-cases/generate-release-notes.md)
>
> Turn merged pull requests into notes people can read.

> [card] [Preview your app](https://docs.repl.it/features/editor/preview.md)
>
> See changes running live before you open the pull request.
