Skip to content
This repository was archived by the owner on Feb 5, 2026. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: henrybear327/Proton-API-Bridge
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: rclone/Proton-API-Bridge
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 9 commits
  • 24 files changed
  • 1 contributor

Commits on Jan 27, 2026

  1. Configuration menu
    Copy the full SHA
    77f9748 View commit details
    Browse the repository at this point in the history

Commits on Apr 30, 2026

  1. Fix golangci-lint issues

    - Check error returns from deferred Close calls (errcheck)
    - Replace deprecated io/ioutil with os in mail.go (SA1019)
    - Simplify boolean assignment in common/config.go (QF1007)
    - Apply De Morgan's law in folder_recursive.go (QF1001)
    ncw committed Apr 30, 2026
    Configuration menu
    Copy the full SHA
    ceba35c View commit details
    Browse the repository at this point in the history
  2. Propagate Close errors via CheckClose helper

    Add utility.CheckClose so deferred Close calls return their error to
    the caller instead of being silently discarded. Use it in the file
    upload, download, and credential cache paths; the test helper reports
    close errors via t.Error since it has no error return.
    ncw committed Apr 30, 2026
    Configuration menu
    Copy the full SHA
    bb6275d View commit details
    Browse the repository at this point in the history
  3. build: update check action

    ncw committed Apr 30, 2026
    Configuration menu
    Copy the full SHA
    7102872 View commit details
    Browse the repository at this point in the history
  4. Skip integration tests when credentials are not provided

    Previously the tests failed with "username and password are required"
    when run without env vars. Skip instead so go test ./... passes in
    environments without Proton credentials (e.g. CI lint-only runs).
    ncw committed Apr 30, 2026
    Configuration menu
    Copy the full SHA
    d6edc66 View commit details
    Browse the repository at this point in the history
  5. Fix moveLink to send NameSignatureEmail required by Proton Drive API

    Set the new NameSignatureEmail field on MoveLinkReq and stop sending
    NodePassphraseSignature/SignatureEmail. Per the official Proton Drive
    Windows client (MoveLinkParameters.cs) the latter pair are only sent
    when moving an anonymously-signed node; for ordinary user-owned nodes
    they must be omitted so the server preserves the existing signature on
    the link.
    
    Bump go-proton-api for the new MoveLinkReq schema.
    
    Fixes rclone/rclone#8512
    ncw committed Apr 30, 2026
    Configuration menu
    Copy the full SHA
    58f49e7 View commit details
    Browse the repository at this point in the history

Commits on May 5, 2026

  1. common: allow callers to inject an HTTP transport via Config.Transport

    Previously the bridge built its proton.Manager with only WithAppVersion
    and WithUserAgent, so consumers had no way to plug their own
    http.RoundTripper into the underlying go-proton-api / resty client.
    
    Add a Transport field to common.Config and forward it via
    proton.WithTransport when non-nil. This lets callers wire in their own
    transport.
    ncw committed May 5, 2026
    Configuration menu
    Copy the full SHA
    e435f93 View commit details
    Browse the repository at this point in the history
  2. common: route library logging through a caller-supplied Logger

    Add a Logger interface (and matching Config.Logger field) whose method
    set lines up with resty.Logger and go-proton-api's WithLogger option,
    so callers can plug in a single adapter that captures all bridge log
    output along with HTTP-layer warnings emitted by go-proton-api.
    
    Convert the active stdlib log.Println / log.Printf call sites in
    cache.go, drive.go, file_download.go, folder_recursive.go, mail.go and
    common/user.go to use the configured logger via Config.GetLogger,
    which falls back to the stdlib log package when no Logger is set so
    existing callers see the same behaviour.
    
    Downgrade the four log.Fatalln sites in cache.go and mail.go: a
    library has no business calling os.Exit. The cache assertions become
    logged errors (the offending branches were already unreachable in
    practice), and the unsupported-recipient case in sendDraft now returns
    a new ErrUnsupportedRecipientType.
    ncw committed May 5, 2026
    Configuration menu
    Copy the full SHA
    191d750 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ecd7d61 View commit details
    Browse the repository at this point in the history
Loading