There are a few tools that have already setup git hosting with gerrit/diffusion prior to the introduction of a self-service UI for this in Striker. Tool maintainers can opt-in to having their tools and repos connected so that future enhancements in Striker will apply to them as well.
Requesting connection of a tool and a repo
Create a subtask listing the tool name and the repo name. The ticket must be created by or approved with a comment by a current maintainer of the tool.
Fulfilling a request
- Verify that the request has been created/approved by an existing maintainer of the tool
- Change the edit and push policy of the repo to grant all current maintainers (and Diffusion-Repository-Administrators) control of the repo.
- This step requires membership in the Diffusion-Repository-Administrators group on Phabricator
- Use the admin console of Striker to create a diffusionrepo object connecting the tool with the repo.
- Tool: Name of tool without tools. prefix (e.g. giftbot).
- Name: Name of the Diffusion repo (e.g. labs-tool-giftbot).
- Phid: Phabricator "phid" of the repo (e.g. PHID-REPO-llsavegs7zzejwamycxb). This can be looked up using the conduit diffusion.repository.search endpoint, e.g. with constraint being {"name": "labs-tools-ZppixBot"} for rLTZB
- Created by: The user creating the association (e.g. BryanDavis).
- This step requires maintainership in the admin tool on Tool Labs