feat(affinity): export scripts end in a Forgejo web hand-off (no token) #201
No reviewers
Labels
No labels
build-dist
priority
P1
priority
P2
priority
P3
priority
P4
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Toilville/toilville-design!201
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/affinity-submit"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Scope
Step 6 of the designer-tooling roadmap, as a browser hand-off. A script in Affinity 3.3 can't send an HTTP request body, so it can't open a pull request through the Forgejo API. Instead, each export script (
export-icon,export-plate,export-doc-master) now ends in a Send it for review dialog. Its multi-line box can be copied, and it holds:asset/<id>) and commit message to use;udg/config/assets.ymlon that branch;build-distlabel.The browser does the writes with the designer's normal login, and no script holds a token. The quickstart and the scripts README are updated to match.
Testing
generator/tests/unit/test_affinity_scripts.py, which checks that:network.js, an API path or a token.Authorizationin a script made 2 tests fail. Reverting made all 4 pass.just checkpasses.Buffer. Acurlcontrol arrived with its body._upload/…and_edit/…send a signed-out visitor to the login page (303). An unknown route returns 404.mainrefuses pushes.villehas write access, soasset/*branches are same-repo and the bot runs on them.Impact Statement
dist/changes.FORGEJO_REPOin each script).Docs
docs/DESIGNER_QUICKSTART.md(steps 2–4) andBrand/source/_editor/affinity-scripts/README.md(the hand-off, why it goes through the browser, and Testing notes).