Setup Instructions¶
Step 1: Create GitHub Repository¶
You have two options:
Option A: Using GitHub CLI (if authenticated)¶
gh repo create policy-repository --private --description "Acme Corp Platform - Policies and Procedures"
Option B: Using GitHub Web Interface¶
- Go to https://github.com/new
- Repository name:
policy-repository - Description:
Acme Corp Platform - Policies and Procedures - Visibility: Private
- Do NOT initialize with README, .gitignore, or license (we already have these)
- Click "Create repository"
Step 2: Push Code to GitHub¶
After creating the repository on GitHub, run:
cd c:/Users/bertc/policy-repository
# Add remote (replace YOUR-USERNAME with your GitHub username)
git remote add origin git@github.com:YOUR-USERNAME/policy-repository.git
# Push to GitHub
git push -u origin master
Step 3: Configure Repository Settings¶
Enable Branch Protection¶
- Go to repository Settings ? Branches
- Add branch protection rule for
master: - ? Require a pull request before merging
- ? Require approvals: 2
- ? Require review from Code Owners
- ? Require status checks to pass before merging
- ? Do not allow bypassing the above settings
Set Up Teams (Optional but Recommended)¶
Create GitHub teams for different policy reviewers:
- security-team
- compliance-team
- hr-director
- clinical-director
- operations-lead
Then update the CODEOWNERS file with actual team/usernames.
Step 4: Update CODEOWNERS¶
Edit CODEOWNERS file and replace:
- @your-username with your actual GitHub username
- Team names with your organization's GitHub teams
# Example:
# Before:
* @your-username
# After:
* @bertcarlton @Acme Corp-compliance-team
Commit the change:
git add CODEOWNERS
git commit -m "Update CODEOWNERS with actual usernames"
git push
Step 5: Test the Workflow¶
Test Policy Review Reminder¶
Run the workflow manually to test: 1. Go to Actions tab in GitHub 2. Click "Policy Review Reminder" 3. Click "Run workflow" 4. Check if it completes successfully
Test Pull Request Process¶
-
Create a test branch:
git checkout -b test/new-policy -
Create a simple policy:
cp templates/policy-template.md policies/operations/test-policy.md # Edit the file with basic info -
Commit and push:
git add policies/operations/test-policy.md git commit -m "Add test policy" git push -u origin test/new-policy -
Create Pull Request on GitHub
- Verify CODEOWNERS are requested as reviewers
- Verify PR template appears
Step 6: Configure Notifications (Optional)¶
Set up Slack/email notifications for: - New policy review issues - Pull request approvals needed - Workflow failures
Use GitHub webhooks or integrations.
Next Steps¶
- Migrate existing policies - Convert current Word/PDF policies to markdown
- Set review dates - Audit all policies and set appropriate next_review dates
- Train team - Show stakeholders how to review and update policies
- Schedule first review - Run the automated workflow weekly
- Create remaining policies - Use the template to document all organizational policies
Support¶
If you encounter issues: - Check GitHub Actions logs for workflow errors - Verify CODEOWNERS syntax: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners - Review branch protection rules if PRs are not enforcing reviews
Created: 2025-11-08