Rulepython
Git Workflow Rule
This repository has branch protection enabled on `main`. Direct pushes are blocked.
Git Workflow
This repository has branch protection enabled on main. Direct pushes are blocked.
Making Changes
-
Create a feature branch from the current commit:
git checkout -b <branch-name> -
Push the branch to origin:
git push -u origin <branch-name> -
Create a pull request:
gh pr create --title "<type>(<scope>): <description>" --body "Description here" -
Wait for status checks (MegaLinter must pass)
-
Merge after approval (or user self-approves if they have permission)
Branch Naming
Use <type>/<description> format matching conventional commit types:
feat/<feature-name>- New featuresfix/<issue>- Bug fixesdocs/<topic>- Documentation changesci/<change>- CI/CD changesrefactor/<change>- Code restructuringtest/<change>- Test updateschore/<task>- Maintenance tasksbuild/<change>- Build system changes
Important
- Never attempt
git pushdirectly tomain - Always go through the PR workflow
- MegaLinter status check is required before merge