From c95fc0ce1393a47ddff01e1aa0bb598b5984cbb5 Mon Sep 17 00:00:00 2001 From: Peter Corke Date: Sat, 28 Nov 2026 17:02:30 +1000 Subject: [PATCH 1/3] docs(agents): ask contributors to allow edits from maintainers Co-Authored-By: Claude Sonnet 5.5 --- AGENTS.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 02908c6f..5de56df9 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -87,3 +87,8 @@ description and ask first. - Branch names are `type/short-description` (`fix/`, `feat/`, `docs/`, `chore/`, `refactor/`, `test/`). The required checks are `All tests passed` and the PR title. - Keep the PR to the one Issue or fix, and say what you ran and what you could not run. +- **Allow edits by maintainers** when you open a PR from a fork (`gh pr create` does by + default; check with `gh pr view --json maintainerCanModify`, and for an existing PR tick it + in the sidebar). The repository requires a branch to be up to date with `main` before it + merges, and without this the maintainer cannot update your branch, so your commits have to be + re-submitted as a PR of the maintainer's own. From 5a229264dd3f45dd2264df71132e39ed18f77bc7 Mon Sep 17 00:00:00 2001 From: Peter Corke Date: Sat, 28 Nov 2026 17:24:36 +1000 Subject: [PATCH 2/3] docs(contributing): ask contributors to allow edits from maintainers Co-Authored-By: Claude Sonnet 5.5 --- .github/CONTRIBUTING.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 0df0a196..f56042d9 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -13,6 +13,14 @@ Please use the issue template and include: Issues labelled [`good first issue`](https://github.com/petercorke/machinevision-toolbox-python/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) or [`help wanted`](https://github.com/petercorke/machinevision-toolbox-python/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22) are a good place to start. +## Allow edits from maintainers + +When you open a pull request from a fork, tick **Allow edits by maintainers** (it is under +the description box; on an existing PR, it is in the right-hand sidebar). Without it we +cannot bring your branch up to date with `main`, which the repository requires before a +merge, and every small fix of ours has to go through a second PR of our own, with your +commits rebased into it, instead of being added to yours. + ## Contributing code - Keep pull requests scoped to a single feature or fix. If you have several unrelated changes, open separate PRs so each can be reviewed and merged independently. From 09b9e9493632366795573328f7d3fdf5c64ea5f3 Mon Sep 17 00:00:00 2001 From: Peter Corke Date: Sat, 28 Nov 2026 17:25:48 +1000 Subject: [PATCH 3/3] docs(pr-template): ask contributors to allow edits from maintainers Co-Authored-By: Claude Sonnet 5.5 --- .github/pull_request_template.md | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index e9601752..5e3060a4 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -15,6 +15,7 @@ Thanks for contributing to MVTB! - [ ] Added/updated tests for this change, if applicable - [ ] New/changed code is type-hinted with modern syntax (`X | Y`, `list[X]`, not `Union`/`Optional`/`List`) - [ ] Docstrings updated (reST style: `:param:`, `:returns:`; type hints in the signature cover types now, `:type:`/`:rtype:` are rarely needed) +- [ ] If this PR is from a fork, **Allow edits by maintainers** is ticked (without it we cannot update your branch from `main`, and have to re-submit your commits as a PR of our own) > **Automated bot comments to expect:** Codacy will comment with style/coverage findings — most of it is pre-existing backlog (see issues labeled [`tech-debt`](../../issues?q=is%3Aissue+label%3Atech-debt)), not something your PR introduced, so don't be alarmed. If this PR adds or bumps a dependency, Dependabot may separately comment flagging a known vulnerability — if so, use a newer patched version if one exists, or just note it in this PR and a maintainer will decide; you don't need to solve it yourself.