Product

Ysra Code changes your GitHub repository and opens a pull request for you to merge

Code is the developer colleague in the Ysra web app. Describe a change, and it works on a copy of your GitHub repository or a new cloud project in Ysra's cloud, checks the result with your own commands, and opens a draft pull request once you approve. You can start it from Slack, change several repositories with one request, and put an app online on Ysra.

The Ysra team4 min read

The Ysra cover for Code, with the title "From a sentence to a pull request"

Code is the developer colleague in the Ysra web app. Choose Code at the top of the box on Home, say what should change, and it works on a copy of your GitHub repository or on a new cloud project. When the change is ready, it asks to open a pull request, and the merge is yours.

Pick where it works

Under Where, pick a GitHub repository or New cloud project. A repository needs GitHub connected in Settings → Connectors, with the repositories you want to grant. A cloud project needs nothing: describe the app, and Ysra keeps its files between turns.

Either way, the work runs on a private machine in Ysra’s cloud, so your laptop can be closed. On a repository, Code works on a branch of its own and never changes your default branch.

Before it builds, Code lists the decisions only you can make, each with a suggestion (“Should a coupon work on sale prices?”), and starts with what you chose. Ask for a plan and you get the scope, what counts as done and the steps; reply to change it. A private preview of the changed app sits beside the thread while it works.

Diagram: on a GitHub repository, Code works on its own branch and asks to open a draft pull request you merge; in a cloud project, Ysra keeps the files and you publish it, put it online, download it or add a repository

It checks the change with your own commands

Code runs your repository’s own lint, tests and build, and a second colleague checks each thing you asked for against the result. The ending says what ran, such as “Ran: npm test”, so you know what you’re shipping. If something wasn’t fully checked, it tells you why, and still delivers when you say so. The details are in How Ysra checks a code change before it says it’s done.

A draft pull request, and you merge

When you’re happy with the change, Code asks Open a pull request?. Approve it and the pull request opens on GitHub as a draft, unless you ask for it ready for review. Ysra doesn’t merge. You read the change, mark it ready and merge it on GitHub, the way you would with a person’s work.

If you switched on pull request reviews for the repository, Mayz comments on it there. See Mayz reviews your pull requests on GitHub.

Start from a Slack thread

With Slack connected, mention @Ysra in a thread and describe the change. Name one of your linked repositories, or Code starts a new cloud project. Ysra replies with a link to the thread in Ysra and posts back when it’s done. Nothing is pushed until you approve it in Ysra. Slack is on Pro, Max and Team; how a software team goes from a Slack message to a pull request shows a week of it.

One request across several repositories

Some changes touch more than one repository. In Library → Projects, Products groups up to 8 repositories that ship together. Choose Define a product, add the repositories and write one line on what each does, such as “api: plans and billing, source of truth for prices”.

Then choose Start a request across the product, say what should change, set the Credits it may use and press Plan it. Ysra reads each repository and proposes the plan in order, with the source of truth first and the decisions every part holds. Leave out a repository, add a note, then Confirm and start. Each repository gets its own pull request, listed under Merge in this order. Merging stays with you, and Review all with Mayz reviews each one.

Products in Library → Projects, with a product of three repositories, each with a line saying what it does, and Start a request across

Put it online

For a cloud project, say “put it online” and Ysra picks the way that fits.

  • Publish on Ysra is for a website: pages, images and fonts. It takes seconds, costs nothing, and stays private until you choose Share.
  • Put it online runs an app with a server on Ysra hosting, with nothing to connect. Nothing goes online until you press Deploy. Essential apps sleep when nobody uses them and wake on the next visit; Starter includes 1, Pro 5, Max 15 and Team 3 a seat. Production Small is always on, for $15 a month per app. You can add your own domain.
  • Deploy sends it to a hosting account of yours instead, with a preview first.

Diagram comparing Publish on Ysra, Put it online on Ysra hosting and Deploy to your own hosting, with the Essential and Production Small plans

What still needs you

  • The decisions before a build, and the yes before a pull request, a push or a deploy.
  • The merge, on GitHub.
  • A look at the preview. Passing tests don’t prove the page looks right.
  • Secrets: when Code finds a key in the code, it asks whether to move it before it ships.

Who gets it

Code in Ysra’s cloud comes with a paid plan: Starter, Pro, Max or Team. Each thread shows the credits it used, and when credits run out, work pauses before its next step and keeps your changes.

Start at app.ysra.ai, or read Code in Ysra’s cloud.

  • Product
  • Code
  • GitHub
  • Pull requests
  • Slack
  • Hosting

All posts