Nota — a free DAW for macOS, Windows and Linux. No subscription, no account — just open it and make music.
name: nota-pr description: Open a Nota pull request the project's way — check it implements an issue a core contributor approved, branch off develop, commit in the repo's style under the contributor's own git identity, push over HTTPS, and write the description from the PR template. Evidence is part of the PR, attached through the pr-assets branch: a user-visible UI change carries before/after screenshots; a performance change (engine, DSP, threading, render path, CPU/memory) carries a before/after benchmark with charts. Use whenever the user asks to open, create or prepare a PR, or to "push this for review". user-invocable: true
Opening a pull request
A Nota PR is reviewed by reading its description, so the description carries the proof: what
changed, why, and what it looks like or costs before and after. Images and benchmark charts
never go into develop — they live on the orphan pr-assets branch (see
CONTRIBUTING.md § Images for pull requests) and are embedded by raw URL.
0. Check the approved issue
Every PR implements an issue a core contributor approved (CONTRIBUTING.md § Start with an
approved issue). Before branching, find it and check its labels:
gh issue view <N> --repo nota-daw/nota --json number,title,labels,state
It must be open and carry approved (or good first issue / help wanted). If there is no
issue or it isn't approved, stop and tell the user: they open the issue (offer to draft its
text) and wait for the label. Don't open the PR "to discuss" instead. Compare the change with
what the issue agreed; if it goes further, split it or get the issue's scope extended first.
Only release PRs cut by core contributors skip this step.
1. Branch and commit
- Branch from
develop(nevermain):git checkout -b <type>/<slug>—fix/…,feat/…,docs/…,chore/…. If the work is already ondevelopuncommitted, create the branch first; the working tree comes along. scripts/build.sh(orbuild-linux.sh/build-win.ps1) must pass — it runs the smoke test.- Commit message:
(fix) Summary,(feat) …,(docs) …,(refactor) …,(style) …; a body that says what and why in plain words. No AI attribution (noCo-Authored-By, no "Generated with" line) in commits or the PR body. - Author and committer: whoever makes the change, from their own git config. Never set
user.name/user.email/--authorto someone else's identity. - Spec and bug artifacts (
specs/<slug>/,.specify/bugs/<slug>/) ship with the change they describe. Never commit build dirs,.cpm-cache/, benchmark output or harness binaries.
2. Decide what evidence the PR needs
| The change… | Attach |
|---|---|
| alters anything the user sees (a window, panel, device card, menu, theme, layout, custom-drawn view) | before / after screenshots, same size, theme and content |
| aims at or may affect performance (engine render path, DSP, threads, allocation, CPU, memory, startup) | benchmark: before vs after (and vs the last good build when fixing a regression), with charts + a table |
| both | both |
| neither (docs, refactor with no runtime effect, CI) | nothing — say so in the Summary |
When unsure whether a change is user-visible, run the app and look.
3. Screenshots (UI changes)
- Capture before on the base commit and after on the branch, with the same window size,
theme (default Studio Dark unless the change is theme-specific — then one pair per theme),
interface scale and project content. Reuse the capture tooling the
nota-design/nota-docsskills describe (headless Avalonia render or the app's own capture hook) rather than hand screenshots, so both shots are pixel-comparable. - Name them
<what>-before.png/<what>-after.png; a side-by-side<what>-both.pngis welcome for small changes.
4. Benchmarks (performance changes)
Two layers, and a performance change needs both:
- Regression guards —
tests/Nota.SmokeTest/RenderPoolTests.cs, part of every smoke run (scripts/build.sh, CI on all three platforms; alone:dotnet run --project tests/Nota.SmokeTest -c Release -- --perf). Hardware-independent checks: render threads idle at ~0 CPU (their own thread clocks), parallel vs single-thread CPU ratios while playing and bouncing, bounce not slower than one thread, bit-identical output, tracks edited while rendering. When you touch the render path, threading or allocation, keep these green; when you fix a performance bug, add a guard here that fails on the old code (prove it: put the old behaviour back briefly and watch the check fail). - Benchmark numbers for the PR description, below.
The engine benchmark is in the repo:
scripts/bench-engine.sh [-r runs] <out-dir> <label>=<engine-lib-dir> ...— linksscripts/bench/engine-bench.cppagainst each Releaselibnota_engineand runs idle, offline render (bounce) and real-time-paced scenarios for audio and synth tracks, interleaving the builds run by run. Writesresults.csv+machine.txt.scripts/bench-chart.py <out-dir> <label>="Display name" ...— medians, three charts (cpu-playing,bounce-time,bounce-cpu; SVG + 2x PNG) andsummary.md(tables + machine).
Recipe:
- Build each revision you compare in Release, each in its own checkout so nothing is shared:
git worktree add --detach /tmp/nota-<label> <commit>, then configure +ninja nota_enginein itssrc/native/nota.engine/build. Revisions before the CPM switch (#212) needgit submodule update --init --recursive --depth 1first. The branch itself can use the mainbuild/dir (it must stay Release). - Copy each
libnota_engine.*into its own folder (/tmp/bench/libs/<label>/) so later rebuilds don't change what you measured. - Run on a quiet machine, on power, ≥3 runs:
scripts/bench-engine.sh -r 3 /tmp/bench/out before=… after=…. Look at the spread inresults.csv; rerun if runs disagree a lot. - Chart it:
scripts/bench-chart.py /tmp/bench/out before="Before" after="This PR". Open the PNGs and check them (labels, overlap) before attaching. - Report honestly: put regressions in the table too and say why they're acceptable or what
follows up. A benchmark also needs the commits measured and the machine (from
machine.txt).
If the change needs a scenario the harness lacks, extend engine-bench.cpp (stick to C ABI
functions every compared build exports) and the scenario list in bench-engine.sh, in the same PR.
5. Put the assets on pr-assets
One folder per PR, named after the change or issue (fix-pr212-review/, issue-223/). Commit on
top of pr-assets — never force-push or rewrite it; old PRs link to its files.
git fetch origin pr-assets
git worktree add /tmp/nota-assets origin/pr-assets -B pr-assets
mkdir -p /tmp/nota-assets/<folder> && cp <pngs> <results.csv> <summary.md> /tmp/nota-assets/<folder>/
git -C /tmp/nota-assets add <folder>
git -C /tmp/nota-assets commit -m "Images for <change>"
git -C /tmp/nota-assets -c credential.helper= -c credential.helper='!gh auth git-credential' \
push https://github.com/nota-daw/nota.git HEAD:pr-assets
git worktree remove /tmp/nota-assets
For benchmarks commit the CSV and summary.md next to the charts, so the numbers stay checkable.
Embed with https://raw.githubusercontent.com/nota-daw/nota/pr-assets/<folder>/<file>.png.
6. Push and open the PR
- Push over HTTPS (SSH push to nota-daw/nota is denied):
git -c credential.helper= -c credential.helper='!gh auth git-credential' push -u https://github.com/nota-daw/nota.git <branch>, thengit fetch origin <branch> && git branch -u origin/<branch>. gh pr create --repo nota-daw/nota --base develop --head <branch> --title "<commit-style title>" --body-file <file>.- Body: follow
.github/PULL_REQUEST_TEMPLATE.md(Summary, Spec, Checklist — tick only what was actually done; leave platforms you didn't build unticked). Add sections as needed:- Screenshots — a table, before | after:
| Before | After |/|---|---|/|  |  | - Benchmark — the charts, the
summary.mdtables, the commits measured, the machine, and a sentence on how to reproduce (scripts/bench-engine.sh …). - Testing — what was run and what was not.
- Link the approved issue (
Closes #N/Refs #N) — required — and, for review follow-ups, the PR being followed up.
- Screenshots — a table, before | after:
- Base is
develop. Don't enable auto-merge; don't merge.