Skip to content
jpipe-mcscertPublic

About

No description, website, or topics provided.

Contributing

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Contributing to jPipe

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.

Contributions are by invitation

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.

Branches

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.

Making a change

  1. Cut a work branch from dev, named after what it does.
  2. 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.
  3. Close issues from the commits that resolve them: end the message with Closes #N.
  4. Keep the CHANGELOG in 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.
  5. Push. CI runs on your branch.

Pull requests

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:

  1. Review it locally first, and address what the review finds.
  2. Open it as a draft.
  3. Pass the quality gate. Repositories analyzed by SonarCloud get a SonarQube check on every push to the pull request. Fix its issues, or justify the ones you keep, until the gate passes.
  4. Request one Copilot review. A pull request gets one round; it is not re-requested after the fixes.
  5. 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.
  6. Mark it ready for review. A maintainer reviews it and merges it.

Releases

A release is one pull request, from a release branch into main:

  1. Cut release/X.Y.Z from dev. It holds everything dev holds: the release is what dev holds at that moment.
  2. On it, set the version and move the CHANGELOG's [Unreleased] notes under the new version and date.
  3. Open the release pull request from release/X.Y.Z into main, and take it through the steps above. Its diff is the whole release: what was merged into dev since the last one, and the release commit.
  4. 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.
  5. Merge main back into dev, which brings the release commit to dev, so that the next release merges cleanly; then set dev to 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.

For AI assistants

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 main or dev (or a main-only repository's default branch), ask for a work branch before committing anything.
  • Never commit to main or dev without 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 into main and 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.

About

No description, website, or topics provided.

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors