Skip to content

Conversation

@xrgzs
Copy link
Member

@xrgzs xrgzs commented Jul 2, 2025

Here’s a summary of the changes made in the pull request for OpenListTeam/OpenList-Proxy:


1. Project Renaming & Refactoring

  • Renamed the project from alist-proxy to OpenList-Proxy:
    • All references, binaries, and file names updated (e.g., alist-proxy.go → openlist-proxy.go, alist-proxy.js → openlist-proxy.js).
    • Go module path updated accordingly in go.mod.

2. Dependency & Upstream Change

  • Switched dependency from alist-org/alist to OpenListTeam/OpenList in go.mod.
  • Go version bumped from 1.19 to 1.24.4.

3. Build & Release Workflows (CI/CD)

  • build.yml: Added as new GitHub Actions workflow for building the project.
  • release.yml:
    • Renamed job to release.
    • Now only triggers on tags matching v* (instead of any tag).
    • Includes permissions, Docker setup steps, and GoReleaser action improvements.
    • Docker login to ghcr.io is now included.
    • Only the main branch is targeted.
  • build_docker.yml and release_docker.yml: Both removed (replaced by consolidated workflows).
  • .goreleaser.yaml: Added for GoReleaser configuration (cross-platform builds, Docker image, changelog, etc.).

4. Dockerfile Improvements

  • Switches base image for building from alpine:edge to golang:alpine.
  • Now uses multi-stage build with improved caching and minimal images.
  • Binary name updated (alist-proxy → openlist-proxy).
  • Maintainer label updated.

5. Source Code Enhancements (Go)

  • File renamed: alist-proxy.go → openlist-proxy.go.
  • Imports updated to use OpenListTeam/OpenList.
  • Added a --version flag and version reporting.
  • Replaced manual header copying with maps.Copy for HTTP headers.
  • Token and address flags renamed to match OpenList naming.
  • Internal variable and help messages updated.
  • Improved version output and error handling in main().

6. JavaScript/Cloudflare Worker Improvements

  • File renamed: alist-proxy.js → openlist-proxy.js.
  • Migrated from TypeScript file suffixes to .js (e.g., src/const.ts → src/const.js).
  • Added JSDoc-style comments for better documentation.
  • Improved formatting, variable declaration style (var → const), and code style consistency.
  • Enhanced signature and verification functions with comments.
  • Added/Improved error handling and response formatting.
  • Refactored CORS/options handling logic.

7. README & Documentation

  • Project title, description, and usage instructions updated.
  • Example usage and command-line options now reflect OpenList-Proxy.
  • Outdated references to alist and alist-proxy removed.

8. Minor & Miscellaneous

  • .gitignore and go.sum updated as a result of module and build changes.
  • Minor code style and formatting improvements throughout.

In summary:
The project was renamed, dependencies updated, CI/CD reworked, Docker setup improved, code modernized (Go and JS), documentation rewritten, and the build/release process standardized for the new OpenList ecosystem.

@xrgzs xrgzs merged commit aa338a6 into main Jul 2, 2025
1 check passed
@xrgzs xrgzs deleted the refactor-openlist branch July 2, 2025 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants