Quickstart with automations
In this quickstart, you set up an automation that reviews every pull request in a GitHub repository and posts its findings as comments on the pull request. Then you open a pull request and check what the run did.
Before you start
You have completed the Air Teams onboarding – see 1. Complete onboarding.
The repository is on GitHub and covered by the JetBrains Air app installation – see Connect repositories. You'll need to open a pull request in it.
Every run spends AI credits. This automation runs once each time a pull request is opened or pushed to.
1. Check the automations you already have
On the Choose Automations step of the onboarding, Air Teams offers ready-made automations for the repository you connected. Each one is a built-in template with its trigger and change handling already chosen, and it goes live as soon as the setup finishes.
The automations you turned on are listed on the Automations page: under Project if the onboarding created a project, otherwise under Personal. They're ordinary automations, so you can edit, pause, or delete them like any other. Their runs spend your personal AI credits until a project admin switches the project to its shared credits – see AI credits for project automations.
If you turned on Code review, skip to 3. Open a pull request.
2. Create a code review automation
Create an automation from the Code Review template
Open https://air.jetbrains.cloud, go to the Automations page, and click New Automation.
In Instructions, click Use Template, and in the Automation Templates dialog, select Code Review under By Air. The form fills in with the template's name and instructions. The template doesn't set a trigger – you choose it in the next steps.

Click Select repository and select your GitHub repository. Keep Personal in the scope selector next to it.

In Triggers, click Add Trigger and select .

Click Show filters on the trigger row and select Ignore drafts, so the agent doesn't review work that isn't ready. Leave the other filters empty – an empty filter matches every pull request.
Set what the trigger does with the changes to No code changes. The review is posted on the pull request, so the run has nothing to commit.

To review the pull request again after every push, add a second trigger, , with the same filter and No code changes. Skip this step to review each pull request only once.
Click Create.
3. Open a pull request
In the repository, open a pull request that isn't a draft. Air Teams receives the event from GitHub and starts a run. When the run finishes, the review is on the pull request: an inline comment for each finding, with its failure scenario and a suggested fix, and a verdict – Request changes if any finding blocks the merge, otherwise Approve.
Marking a draft as ready for review doesn't start a run, because Opened fires only when a pull request is created. To review those pull requests too, add a trigger – see GitHub events.
4. Check the run
Check what the run did
On the Automations page, select the automation.
In the Runs section, click the run. The run page shows its summary.
To see what the agent read and why it reached its verdict, click Show full chat.
If no run appeared, or the review isn't what you expected, see Troubleshoot automations.
Where to go next
Make the review yours – edit the instructions to add your team's conventions, or files the agent should skip. See Edit an automation.
Share it with your team – move the automation to a project so it runs for everyone. See Personal and project automations.
Hear about finished runs – failed runs are emailed to you already. To get every run's summary in Slack, add a webhook notification. See Automation notifications.
Automate the next workflow – browse the other built-in templates. See Automation templates.