|
| 1 | +# Contributing |
| 2 | + |
| 3 | +## Branches |
| 4 | + |
| 5 | +| Branch | Purpose | |
| 6 | +|---|---| |
| 7 | +| `main` | Releases only – one merge commit per release, tagged `vX.Y.Z` | |
| 8 | +| `dev` | Integration branch for the next release | |
| 9 | +| `feature/<name>`, `bugfix/<name>` | Work branches, created from `dev` | |
| 10 | + |
| 11 | +1. Create a branch from `dev`: `git switch dev && git pull && git switch -c feature/<name>`. |
| 12 | +2. Open a pull request into `dev`. |
| 13 | +3. Merge it with **Squash and merge** – one commit per feature or fix on `dev`. |
| 14 | +4. Do not commit directly to `main` or `dev`. |
| 15 | + |
| 16 | +## Release |
| 17 | + |
| 18 | +1. Update `APPLICATION_VERSION` in `source/modules/_config_Application.bas` on `dev` |
| 19 | + (via a `release/X.Y.Z` branch and pull request). |
| 20 | +2. Pull request `dev` -> `main`, merged with **Create a merge commit** (title `Release X.Y.Z`). |
| 21 | + No squash, so `main` and `dev` keep a shared history. The workflow `sync-dev-with-main.yml` |
| 22 | + then fast-forwards `dev` to `main`, so no merge back is needed. |
| 23 | +3. Tag the merge commit on `main` and push only this tag: |
| 24 | + ``` |
| 25 | + git switch main && git pull |
| 26 | + git tag -a vX.Y.Z -m "Release X.Y.Z" |
| 27 | + git push origin vX.Y.Z |
| 28 | + ``` |
| 29 | +4. Publish a GitHub release for the tag with the release notes. The workflow |
| 30 | + `build-release-zip-file.yml` builds the add-in and attaches `ACLibImportWizard_vX.Y.Z.zip`. |
| 31 | + |
| 32 | +`git log --first-parent main` lists the releases only. |
| 33 | + |
| 34 | +## Development |
| 35 | + |
| 36 | +- The add-in is built from the source files in `source/`, exported with the |
| 37 | + [Version Control add-in](https://github.com/joyfullservice/msaccess-vcs-integration). |
| 38 | + Do not commit Access binaries (`.accda`, `.accdb`). |
| 39 | +- Edit and export the add-in in a trusted location; import or rebuild from `source/` |
| 40 | + after editing the source files. |
| 41 | +- Code, comments and commit messages in English; commit subject in imperative mood, max. ~72 characters. |
| 42 | +- Text files use CRLF line endings; keep the encoding of exported files (UTF-8 with BOM in `source/`). |
| 43 | +- Use copies of databases for tests (trusted location), never your real databases. |
0 commit comments