-
Notifications
You must be signed in to change notification settings - Fork 0
repo config
github-actions[bot] edited this page Apr 29, 2025
·
1 revision
Teko uses a "configuration as code" approach to manage GitHub repository settings. This ensures that repository settings are version-controlled, documented, and automatically applied.
The repository configuration system consists of:
-
Configuration File:
.github/config.jsondefines repository settings -
Automation Workflow:
.github/workflows/repo-config.ymlapplies the settings
The config.json file includes:
- Basic repository metadata (name, description, topics)
- Feature toggles (issues, wiki, projects)
- Merge strategies (squash, merge, rebase)
- Default branch settings
- Required status checks for the master branch
- Linear history requirements
- Conversation resolution requirements
- Edit the
.github/config.jsonfile - Commit and push changes to the master branch
- The workflow will automatically apply your changes
You can also manually trigger the workflow:
- Go to the "Actions" tab in your GitHub repository
- Select the "Repository Configuration" workflow
- Click "Run workflow"
The workflow uses the standard GITHUB_TOKEN that is automatically provided by GitHub Actions, so no additional setup is required.
If the workflow fails:
- Check the workflow logs for specific error messages
- Verify the JSON syntax in the config file is valid
- Confirm that branch names in protection rules match existing branches