Skip to content

Code: Fixed the missing folder downloads - #181

Merged
whereareiam merged 1 commit into
devfrom
fix/folder-downloads
Nov 9, 2026
Merged

whereareiam merged 1 commit into
devfrom
fix/folder-downloads

Conversation

@whereareiam

@whereareiam whereareiam commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

Fixes #180.

Inside a folder, plain Forgejo lets you download that folder as ZIP or TAR.GZ. The theme's toolbar for the Code page left that menu out, so with the GitHub theme you couldn't download a folder.

A folder now has GitHub's ⋯ More options button next to Add file. Its menu has:

  • Copy path and Copy permalink, the same as on GitHub
  • Download ZIP and Download TAR.GZ for the folder, using Forgejo's own links and translations. They are left out when the instance has DISABLE_DOWNLOAD_SOURCE_ARCHIVES turned on.

On phones (below 544px), the same menu still holds Go to file and the Add file actions. The repository root and file pages are unchanged.

Before and after

Before After
Folder page before: only Add file in the toolbar Folder page after: the More options menu open beside Add file

Checks

  • bun commit (format, bundle, 581 tests) passed
  • In the dev preview, acme/webapp/src and alex/tree-edge-cases/.config return archives that contain only that folder, and the permalink resolves to the folder at its commit
  • The menu was checked at 1280px and 375px

🤖 Generated with Claude Code

A folder now has GitHub's "More options" button beside Add file, with Copy
path, Copy permalink and Forgejo's Download ZIP and Download TAR.GZ for that
folder. On phones the same menu keeps Go to file and the Add file actions.

Fixes #180

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@whereareiam whereareiam added the bug Fixes a bug that shipped in a release label Nov 9, 2026
@whereareiam
whereareiam merged commit 1936070 into dev Nov 9, 2026
6 of 7 checks passed
@whereareiam
whereareiam deleted the fix/folder-downloads branch November 9, 2026 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Fixes a bug that shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add download of folders

1 participant