Git workflow
master moves only through pull requests: a direct push is rejected.
The loop
git checkout master
git pull --ff-only origin master
git checkout -b <initials>/<short-description>
# work, then
julia -e 'using JuliaFormatter; format(".")'
julia --project -e 'using Pkg; Pkg.test()'
git add <the files of this change>
git commit -m "ADD graphs: indexed path-completeness predicate"
git push -u origin <initials>/<short-description>Open the pull request from the link the push prints.
Commit messages
ACTION module: descriptionLowercase, no trailing period, at most 60 characters, and no Co-Authored-By line.
| Action | Meaning |
|---|---|
ADD | new feature |
IMP | improvement |
FIX | bug fix |
REF | refactor, no behavior change |
REM | removal |
MOV | move or rename |
REV | revert |
The module is the directory touched: graphs, systems, templates, problems, lifts, refinements, common, test, docs, examples for docs/src/examples/ and experiments/, and meta for configuration, CI and tooling.
ADD problems: optimal control edge inequality
FIX graphs: path-completeness on an empty alphabet
IMP meta: one actions/checkout version across workflowsOne commit per change
A bug fix and an unrelated improvement are two commits, even in one pull request. For a wide rename, port the tests first, untouched, then rename the code against them: renamed on both sides at once, a mistake can pass every test.
Releasing
The version in Project.toml follows semantic versioning. Below 1.0, a breaking change bumps the minor version, from 0.1 to 0.2, and any other change the patch version.
- Bump
versioninProject.tomlthrough a pull request. - Once it is merged, comment
@JuliaRegistrator registeron the merge commit, with the release notes under aRelease notes:line. - When the General registry merges the version, TagBot tags it and creates the GitHub release, and the tag deploys the
stabledocs.
Never committed
Manifest.toml, any file over 5 MB, and experiment output. .gitignore lists the usual kinds. A blob committed once stays in the history of every clone.