This is how work is organized in every repository of the
jpipe-mcscert organization. GitHub shows this guide
in any repository that has no contributing guide of its own. A repository that has one
(CONTRIBUTING.md or docs/contributing.md) links here and adds only what is specific
to it, such as the development setup, the tests to run, or the CI checks. It does not
change the workflow described here.
Pull requests are invite-only. Only the maintainers and the collaborators they invite can open one.
To contribute, open an issue first. Describe the problem, or the change you have in mind, and discuss it with us there. If we agree that it should be done, and that you should do it, a maintainer invites you as a collaborator, and you then work as this guide describes.
Issues are open to everyone: bug reports, questions and proposals are welcome. Unsolicited pull requests are not accepted, whoever or whatever wrote them. An issue in our backlog is not an invitation to send a fix, and we do not label issues for newcomers.
Collaborators, too, open an issue before starting anything larger than a fix, so that we can agree on the approach before the code is written.
| Branch | Role |
|---|---|
main |
Released code. A release is a tag on main (vX.Y.Z). |
dev |
The integration branch, and the default branch on GitHub. New work starts here and comes back here. |
| a work branch | One per piece of work, cut from dev: feat/…, fix/…, chore/…, docs/…. |
| a release branch | One per release, cut from dev: release/X.Y.Z. It goes into main, not back into dev. |
Changes reach main only through a pull request, and new work reaches dev the same
way. A repository may let maintainers push small changes straight to dev; its own guide
says so when it does.
Main-only repositories. A repository without a dev branch is main-only: work
branches are cut from its default branch and come back to it through a pull request.
Everything else in this guide applies, reading the default branch where it says dev.
The Claude plugin marketplace jpipe-skills
is one, because users install it straight from its default branch and a dev branch
there would ship unreleased work. Content repositories (tutorials, examples, demos), the
website and this .github repository are others.
Catalogue repositories are not part of this workflow. The Scoop bucket
scoop-mcscert and the Homebrew tap
homebrew-mcscert are written only by
the release pipelines of the projects they distribute. Nobody modifies them by hand, and
they take no pull requests. A problem in a catalogue is fixed in the release automation
that writes it.
- Cut a work branch from
dev, named after what it does. - Keep the whole change on that branch, as one or more commits. If something else needs doing along the way, open an issue for it rather than starting a second branch.
- Close issues from the commits that resolve them: end the message with
Closes #N. - Keep the
CHANGELOGin step with what users will notice: features, behaviour changes, breaking changes, fixes to a released version. Internal changes stay out. Update the documentation too when behaviour changes. - Push. CI runs on your branch.
A pull request goes into dev. It goes into main only from a release branch, for a
hotfix, or in a main-only repository. It moves through these steps:
- Review it locally first, and address what the review finds.
- Open it as a draft.
- Pass the quality gate. Repositories analyzed by SonarCloud get a
SonarQubecheck on every push to the pull request. Fix its issues, or justify the ones you keep, until the gate passes. - Request one Copilot review. A pull request gets one round; it is not re-requested after the fixes.
- Answer every review comment on GitHub. Say what you changed, and resolve the thread. If you disagree or are unsure, reply with your reasoning and leave the thread open for the reviewer.
- Mark it ready for review. A maintainer reviews it and merges it.
A release is one pull request, from a release branch into main:
- Cut
release/X.Y.Zfromdev. It holds everythingdevholds: the release is whatdevholds at that moment. - On it, set the version and move the
CHANGELOG's[Unreleased]notes under the new version and date. - Open the release pull request from
release/X.Y.Zintomain, and take it through the steps above. Its diff is the whole release: what was merged intodevsince the last one, and the release commit. - A maintainer merges it, then tags the merge commit on
main(vX.Y.Z) and pushes the tag. The tag triggers the repository's release workflow. - Merge
mainback intodev, which brings the release commit todev, so that the next release merges cleanly; then setdevto the next development version, in a repository that keeps one.
The release commit goes into main without a pull request into dev first: the changes
it releases were each reviewed on their way into dev, and the release pull request is
where the release as a whole is reviewed and gated. Work merged into dev while the
release pull request is open waits for the next release.
Hotfixes. A fix to the released version that cannot wait for the next release is cut
from main (fix/…), comes back into main through a pull request, and is released with
a patch tag. Merge main back into dev afterwards, as for a release.
Main-only repositories release from their default branch. Not every merge is a
release: a maintainer sets the version and the CHANGELOG through an ordinary pull
request, then tags the resulting commit (vX.Y.Z).
Only a maintainer merges a release or a hotfix into main and pushes a release tag.
Coding assistants working in these repositories, for a maintainer or an invited collaborator, follow the same workflow, with these limits:
- Stay on the branch the session is on. Do not create a branch without the
maintainer's approval. If something seems to need a branch of its own, say so and wait.
If the session is on
mainordev(or a main-only repository's default branch), ask for a work branch before committing anything. - Never commit to
mainordevwithout an explicit request, merge a pull request, or push a tag. A human merges, unless the maintainer explicitly asks the assistant to merge a given pull request. Even then, a release or hotfix pull request intomainand every tag stay with the maintainer. - Open a pull request only when asked, then follow the steps under Pull requests in order and stop once it is ready for review. Report the threads left open and why.