Skip to content

Commit 49568ce

Browse files
committed
Add contributing guide
1 parent 9a21517 commit 49568ce

2 files changed

Lines changed: 46 additions & 0 deletions

File tree

‎CONTRIBUTING.md‎

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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.

‎README.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,6 @@ Notes:
5353
* Compile the project after `Import` and check the result.
5454
* With [msaccess-vcs-mcp](https://github.com/joyfullservice/msaccess-vcs-mcp):
5555
`vcs_call_vba(database_path="<target>.accdb", function_name="<add-in path without .accda>.API", args=["Resolve", "text/String2.cls"])`
56+
57+
#### Contributing
58+
See [CONTRIBUTING.md](CONTRIBUTING.md) for branches, releases and development.

0 commit comments

Comments
 (0)