contributing: don't use main branch (#18688)

* contributing: don't use main branch

* lint

* Apply suggestion from @dominic-r

Signed-off-by: Dominic R <dominic@sdko.org>

---------

Signed-off-by: Dominic R <dominic@sdko.org>
This commit is contained in:
Dominic R
2025-12-09 18:12:17 -05:00
committed by GitHub
parent 379a9d09f1
commit d1c2c1c565
2 changed files with 22 additions and 0 deletions
@@ -137,6 +137,24 @@ The process described here has several goals:
- Engage the community in working toward the best possible authentik
- Enable a sustainable system for authentik's maintainers to review contributions
#### Always use feature branches
**DO NOT open pull requests from your `main` branch.** Always create a feature branch for your changes.
Here's one way to do it correctly (your own preferred git commands may differ):
```bash
# Create and switch to a new feature branch
git checkout -b feature/my-awesome-feature
# Make your changes, then commit and push
git add .
git commit -m "providers/oauth2: add awesome feature"
git push -u origin feature/my-awesome-feature
```
Then open your PR from the feature branch.
Please follow these steps to have your contribution considered by the maintainers:
1. Follow the [style guides](#style-guides)