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-bot
team 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-bot
then 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.yml
to the.github/workflows
folder. - Copy the
NOTIFIED
andREVIEWERS
files to the.github
folder. - Add rules to the
NOTIFIED
andREVIEWERS
files. Refer to theGerald-README.md
document for more info on adding rules. - Highly recommended: copy
Gerald-README.md
andSetup-README.md
into your repository to have these files handy.
- Open
~/.profile
in 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
.