InfraStudio Agents Start free

Guides

A product with several repositories

Add the other repositories of a product, and see which jobs read all of them.

Last updated

After this guide, one product can hold all its repositories, for example one for the website and one for the server. A repository is the place on GitHub where one part of your code is kept.

Who can do it: a workspace admin or owner.

Plans: Free has one repository in each product. Pro has up to 5, Team up to 20, and Enterprise has no limit. See Plans and limits.

Before you start

  • The product has its main repository already. The first repository you added is the main one.
  • The InfraStudio AI app on GitHub can reach the other repository. To check, open Settings → Integrations, and look at the row GitHub. To change which repositories the app reaches, press Change on GitHub. If the other repository belongs to another GitHub account or organization, press Connect another account on the GitHub row, and install the app there too. On a workspace without GitHub, the button is Connect GitHub.

Add a repository

  1. Open the product's settings: Settings → Products, then Settings on the product's row.
  2. Find the part Repositories.
  3. Press Add a repository.
  4. Pick the repository, and press Add the repository.

If your product's settings have no part Repositories, your workspace cannot add a second repository yet.

What you see when it worked

  • The page says that the agents start following the repository within two minutes.
  • The repository is in the list. The main one is marked Main.
  • Under the list, the page counts the repositories, for example "2 of 5 repositories".

If the agents cannot work in a repository, its row says why.

The rules of each repository

Each repository has its own branch and its own repository rules. Press Details on its row to change them:

  • Default branch
  • CI workflow name
  • Deploy job name
  • Health URL

Then press Save on the same row. Repository rules and privacy explains each one.

Which jobs read every repository

Some jobs read the code of every repository of the product:

  • the Product analytics review and Error triage;
  • a plan for a suggestion;
  • a question in Chat or in Telegram.

They read every repository when a person of the workspace or the platform started them: on the website, in Telegram or Slack, on a schedule, or with Start now.

A job that starts on GitHub or in Jira stays in its own repository. There is one exception. When someone asks a question or writes @infrastudio-ai implement in a comment on GitHub, the job reads every repository only if that person can push to every repository of the product.

The code of a private repository never goes where more people can read it. If a job would write the code of a private repository into a public one, it reads only its own repository.

With Start now on a pull request or an issue, the window asks for the Repository too.

A change in several repositories

One suggestion can change more than one repository. It then has a pull request in each one. The agents follow, review, merge and reject them as a set. The suggestion waits for your yes until the automatic tests passed in every repository.

Remove a repository

  1. In Repositories, press Remove on the repository's row.
  2. Press Remove in the window.

The agents stop following it, and what waits for it is cancelled. Its pull requests stay open on GitHub. The main repository cannot be removed.

More