This file is intended to help you set up Gerald on an existing repository.
-
In order for Gerald to manage pull requests & reviewers and make comments, you need to give Write access to the
@Khan/khan-actions-botteam for the repo. When viewing the repo in Github you can achieve this by clicking Settings > Manage access > Invite teams or people > Typing@Khan/khan-actions-botthen giving that team write access. -
To take advantage of Gerald's Required Reviewers functionality, ensure that you have OLC tools set up. If OLC tools are not set up, required reviewers will function no differently than reviewers, but Gerald is still usable.
-
Make a
.github/workflows/folder if it doesn't already exist in your repository.
- Copy
gerald-pr.yml,gerald-push.yml, andgerald-comment.ymlto the.github/workflowsfolder. - Copy the
NOTIFIEDandREVIEWERSfiles to the.githubfolder. - Add rules to the
NOTIFIEDandREVIEWERSfiles. Refer to theGerald-README.mddocument for more info on adding rules. - Highly recommended: copy
Gerald-README.mdandSetup-README.mdinto your repository to have these files handy.
- Open
~/.profilein any editor. - Add the line
export PATH="$HOME/<PATH TO CURRENT WORKING DIRECTORY>/bin:$PATH". - Reopen your terminal. You should now be able to use
git gerald-tester.