Software factory / Start
Pick who starts each agent
You turned on an agent, and you want to choose who it runs for: only your team, only the items with a label, or nobody for now.
3 min read
Who starts it decides this, for each agent. You need admin access to the repository, or to be an owner of the organization.
1. Open the settings of the agent
- Open the factory settings. On a repository, open Agents, then click Agents under Software factory in the sidebar. On an organization, open the Software factory tab.
- Click Settings next to the agent.
Note
The switch of each agent turns it on or off for all authors, and saves at once. Every agent is off by default.
2. Pick who starts it
In Who starts it, pick one choice:
| Choice | The agent runs for |
|---|---|
| Off | Nobody. |
| When an item has a label | Issues and pull requests that have the label that you type. |
| Authors with a role or higher | Authors with this role or a higher one: read, triage, write, maintain or admin. |
| Everyone | Every author. |
Who starts it holds for each step of the agent, except the three steps in Steps that follow another step.
3. Save
Click Save with the name of the agent, for example Save PR review.
The mode, Who starts it and the model save when you click this button. In Settings, the switches of the steps save at once.
Done
The agent now runs only for the authors or the labels that you picked.
Steps that follow another step
These three steps start for everyone, because they follow another step:
- Push fixes runs after a review with findings.
- Resolve conflicts in the merge queue runs when the merge queue starts it.
- Open a fix PR follows its own choice: the label
factory:fix, or each issue that Issue fix reproduced.
Rules that are not settings
These rules hold whatever you pick:
- For an author without write access, Push fixes, Resolve merge conflicts, Fix failing CI and Resolve conflicts in the merge queue run only after a clean audit.
- Only the merge queue starts Resolve conflicts in the merge queue, when its front pull request conflicts with the base branch.
- While Issue fix is on, the label
factory:investigatestarts it on an issue, whatever its trigger.
Who starts it does not change when these three agents run:
- Architecture: only a push or a merge to the default branch starts it, or a person who clicks Generate now.
- Dependencies: only a failed CI run on one of its update pull requests starts it. See Keep dependencies up to date.
- CI cache: only a push to the default branch that changes a workflow starts it, or an admin who clicks Suggest caches. See Get a pull request that caches your CI steps.