Repository navigation
feat: stash conversations and merge or drop requests in Remotes from the API - #657
Merged
xHeaven merged 8 commits intoOct 22, 2026
Merged
Conversation
simonhamp
marked this pull request as ready for review
October 19, 2026 23:45
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lets the mobile app stash and pop conversations and orgs, and merge or drop a fetched request, the way the web's conversation menu and request bar do. It's one of a few small PRs that bring Remotes to the app (NativePHP/dev-null-app) on top of the signed API from #130. It stands alone against production.
Endpoints
All signed, all answer
204, and all go through the web'sconversationslimiter (300 a minute).POST /api/v1/remotes/@{username}/archiveDELETE /api/v1/remotes/@{username}/archivePOST /api/v1/remotes/orgs/{id}/archiveDELETE /api/v1/remotes/orgs/{id}/archivePOST /api/v1/remotes/@{username}/mergePOST /api/v1/remotes/@{username}/dropRules kept from the web
The controllers and form requests are copies of the web's, and the actions are the web's own.
remotes.requestsis on, and only for a request fetched for the user. Anything else is a404, so the sender can't merge their own request.404while the user has Remotes off, across a block, and for an org they aren't in.Testing
Everything CI runs passes on this branch locally: Pint, Rector, the JS lint, PHPStan, tsc, type coverage, the JS unit tests, and all 3,243 PHP tests at 100% coverage.