Skip to content

Commit 17cf3a3

Browse files
authored
Merge pull request #22 from AccessCodeLib/dev
Add contributing guide, MCP server link and dev sync workflow
2 parents 2f30fa3 + 49c6118 commit 17cf3a3

3 files changed

Lines changed: 74 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Sync dev with main
2+
3+
on:
4+
pull_request:
5+
types: [closed]
6+
branches: [main]
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
fast-forward-dev:
13+
if: github.event.pull_request.merged == true && github.event.pull_request.head.ref == 'dev'
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
ref: dev
19+
fetch-depth: 0
20+
21+
- name: Fast-forward dev to main
22+
run: |
23+
git fetch origin main
24+
git merge --ff-only origin/main
25+
git push origin dev

‎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: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ Details: https://wiki.access-codelib.net/ACLib-Import-Wizard
1010

1111
#### Automation API
1212
The wizard can be used without UI, e.g. from scripts or AI agents.
13+
For AI agents (MCP clients like Claude Code) there is an MCP server for this API:
14+
[ACLibImportWizard-MCP](https://github.com/AccessCodeLib/ACLibImportWizard-MCP)
15+
1316
`API` returns a JSON string:
1417

1518
```vba
@@ -50,3 +53,6 @@ Notes:
5053
* Compile the project after `Import` and check the result.
5154
* With [msaccess-vcs-mcp](https://github.com/joyfullservice/msaccess-vcs-mcp):
5255
`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)