Auto-merge in GitHub requires two distinct layers of configuration to function within PipeCraft workflows:
- Repository-Level Setting (
allow_auto_merge): This must be enabled at the repository level for the auto-merge feature to be available. PipeCraft configures this based on the .pipecraftrc file. - Per-PR Activation: Each Pull Request must be explicitly enabled for auto-merge. PipeCraft workflows automatically trigger this activation for branches defined in the
autoPromote section of .pipecraftrc.
{
"branchFlow": ["develop", "staging", "main"],
"autoPromote": {
"staging": true, // Auto-merge PRs to staging
"main": true // Auto-merge PRs to main
}
}