From 051046070400a3e3f3ea5e9675830386e1919a0d Mon Sep 17 00:00:00 2001 From: Silas Schöffel Date: Tue, 24 Dec 2024 18:39:23 +0100 Subject: --wip-- [skip ci] --- CONTRIBUTING.md | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'CONTRIBUTING.md') diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 330cbeb..70760ae 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,16 +1,25 @@ # Branches + Following branches are used: + ## develop + This contains all upcoming changes for the next pull request to `main`. All feature branches should merge into this branch. + ## feature branches + These branches are created on a per-feature basis and will be merged into `develop`. This merge happens without ci testing and prior review, but a pull request should be opened to trigger a notification. + ## main + Changes in this branch trigger an automatic rebuild on the server, so all merges should be peer-reviewed and tested. However, exceptions can be made for changes, which close security vulnerabilities. The only branch able to be merged into `main` is `develop`. # Development process + If adding a new feature you should follow this loose guide: + 1. Clone the repository 1. Allow the `.envrc`: `direnv allow` (see [development environment](#development-environment), if you don't know what this does) 1. Checkout your feature branch from develop: `git checkout -b develop` @@ -19,6 +28,7 @@ If adding a new feature you should follow this loose guide: 1. Push your change and open a pull request to `develop`: `git push --set-upstream origin ` # Development environment + All required tools should be specified in the `devShells` output of the flake. This is because we use [Direnv](https://github.com/direnv/direnv) in combination with [Nix integration](https://github.com/direnv/direnv/wiki/Nix) — in this case [Nix-direnv](https://github.com/nix-community/nix-direnv) — to enforce reliable development environments (and some uncluttering of PATH). Setting it up is rather easy, just see [Nix-direnv's install instructions](https://github.com/nix-community/nix-direnv#installation). -- cgit 1.4.1