diff --git a/.claude/skills/release/SKILL.md b/.claude/skills/release/SKILL.md index ee4899a..ad00296 100644 --- a/.claude/skills/release/SKILL.md +++ b/.claude/skills/release/SKILL.md @@ -121,10 +121,16 @@ field, which is the live `{version}` placeholder and must show the new one. ## 5. Commit, tag, push ``` -git commit -am "MeshTerm X.Y.Z" +git commit -a -m "MeshTerm X.Y.Z" -m "Co-Authored-By: " git tag -a vX.Y.Z -m "MeshTerm X.Y.Z" ``` +The trailer is not optional: the changelog entry in this commit is prose you wrote, and +CONTRIBUTING.md asks every contributor to say when an AI tool wrote part of a change — +the project's own commits say it first. Name the model actually running, not a +hardcoded one. Seven release commits (0.3.1 through 0.10.0) went out without it because +this line used to omit it. + Commit on `main` — never a topic branch. Then **confirm with JP before pushing**, because the push is the act that builds and publishes the release: diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index d706f03..3872172 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -2,15 +2,27 @@ -## Related issue +## Discord - + + +Username: +Link to the yes: + +## AI use + + ## Before you mark it ready - [ ] I've read [CONTRIBUTING.md](../blob/main/CONTRIBUTING.md) and agree its licensing terms apply to this contribution +- [ ] I've put my Discord username and a link to the yes above +- [ ] If I used AI, I said so above and in the commits it helped with - [ ] `python -m pytest -q` passes, including the dual-platform gallery gate - [ ] `ruff check .` and `ruff format --check .` are clean - [ ] New screens, rows, and hints go through the helpers in `ui/menus.py`, and follow the diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 709c00f..5d80925 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -25,8 +25,66 @@ this repository. seen, etc.), UX standards for screens/dialogs/menus, and where the reusable building blocks live in code (`ui/menus.py`, `ui/markdown.py`, `ui/widgets.py`, `ui/theme.py`). New code should read like it always belonged here. -- Small fixes can go straight to a pull request. For anything bigger, open an issue - first and wait for a yes before writing a lot of code — saves both of us a rewrite. +- Tell us before you start working on something (see below). For anything bigger than a + small fix, expect to talk it through first. That saves everyone a rewrite. + +## Who can contribute + +If you use MeshTerm, you're welcome here. Maybe something broke for you, or you wished +it could do one more thing, or a screen looked wrong on your radio. Those are exactly +the changes we want. + +### How MeshTerm was made + +Some people in the MeshCore community don't trust code written by AI. After some of +what has happened lately, that's easy to understand, and it deserves a straight answer. + +Jean-Pierre Martineau, who started MeshTerm, sees it differently. AI was a big help on +this project. Honestly, MeshTerm couldn't have been built without it. But the choices +were his. He decided what MeshTerm should be, what it should do, and how it should +look. He uses it every day. It's handmade, with AI's help. + +The project wants to stay that way. That's what the rules below are for. + +### Come say hello first + +Using AI tools to help you work is fine. What matters is that a real person who cares +about MeshTerm is behind the change. + +The MeshTerm community lives on [Discord](https://discord.gg/AZwe5Uvb3S), and everyone +is welcome to join. But please join before you change things. Before you start writing +code, say hello in the **#contributing** channel and tell us what you'd like to work on. +Then wait until we say yes. This goes for small fixes too. + +When you open your pull request, include two things: + +- **Your Discord username**, the one you use on the MeshTerm server. +- **A link to the message where we said yes.** In Discord, right-click the message and + choose "Copy Message Link." + +If you haven't joined the Discord, or nobody said yes to your idea, your pull request +will be closed without a review. + +### No bots + +Some accounts use AI to find open issues, write a fix, and open a pull request, all on +their own. There's no person behind it who read the change or can answer questions +about it. People call this "AI slop." We close those pull requests without a review, +even if the code looks fine. The same goes for issues and bug reports written that way. + +### Tell us if you used AI + +This part is required. If an AI tool wrote any part of your change, say so in two +places: + +- **In each commit it helped with.** Add a line at the end of the commit message naming + the tool, like `Co-Authored-By: Claude ` or + `Assisted-by: GitHub Copilot`. +- **In your pull request.** Write a sentence about what the tool did and what you + checked yourself. + +If you used AI and didn't say so, we'll treat your pull request as a bot's. Saying so +costs you nothing. Either way, you're the author, so be ready to explain your change. ## Making a change diff --git a/README.md b/README.md index 8b49d77..8136051 100644 --- a/README.md +++ b/README.md @@ -23,8 +23,8 @@ your mesh's history is worth. Discord

-> MeshTerm is a side project, run by one person. Bug reports are very welcome. Small fixes -> can go straight to a pull request; for anything bigger, please open an issue first. +> MeshTerm is a side project, run by one person. Bug reports are very welcome. Want to +> change something? Say hello on [Discord](https://discord.gg/AZwe5Uvb3S) first. > [More on how it's run](#how-this-project-is-run). https://github.com/user-attachments/assets/f91a6695-14d5-4ae0-8fdc-e65492d0955d @@ -297,11 +297,13 @@ fair bit, and that's on purpose: how well a problem is described really does dec I can do anything with it. If I can reproduce it, I'll usually chase it. If I can't, I'm mostly guessing. -**Ask before you write a big pull request.** Small fixes can go straight to a pull -request. For anything bigger, open an issue first and wait for a yes. I'm not being -precious — MeshTerm has firm house rules about how screens get built (they're in -[CLAUDE.md](CLAUDE.md)), and I'd hate for you to spend a weekend on something I then ask -you to rewrite. A quick conversation first saves us both. +**Ask before you write a pull request.** Join the [Discord](https://discord.gg/AZwe5Uvb3S) +and say hello in `#contributing`. Tell us what you'd like to change. Then wait for a yes. +That goes for small fixes too. I'm not being precious. MeshTerm has firm house rules +about how screens get built (they're in [CLAUDE.md](CLAUDE.md)), and I'd hate for you to +spend a weekend on something I then ask you to rewrite. A quick conversation first saves +us both. AI tools are fine, as long as you say you used them. +[CONTRIBUTING.md](CONTRIBUTING.md) has the details. **I can't promise timelines.** Some things get fixed the same night. Some sit for a month because life happened. If your issue goes quiet, please give it a nudge. That helps me. diff --git a/docs/README.md b/docs/README.md index f0673dd..c323ef6 100644 --- a/docs/README.md +++ b/docs/README.md @@ -32,7 +32,7 @@ USB, Bluetooth, or Wi-Fi needs none of this. | --- | --- | | [How the code is laid out](architecture.md) | The layering, and where a new feature goes. | | [CLAUDE.md](../CLAUDE.md) | The actual style guide — terminology, UX standards, and the reusable building blocks. Written for AI assistants, and the house rules for everyone. | -| [CONTRIBUTING.md](../CONTRIBUTING.md) | The dev install, the three gates a change has to pass, and what happens to your contribution's licensing. | +| [CONTRIBUTING.md](../CONTRIBUTING.md) | How to propose a change, the rules on AI use, the dev install, the three checks a change must pass, and what happens to your contribution's licensing. | ## Historical record