Skip to content

Exclude development files from plugin download archives - #67

Merged
jdevalk merged 3 commits into
mainfrom
codex/export-ignore
Nov 26, 2026
Merged

jdevalk merged 3 commits into
mainfrom
codex/export-ignore

Conversation

@jdevalk

@jdevalk jdevalk commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Automatic updates download GitHub source archives, which still contain development files despite the release ZIP exclusions. Add .gitattributes export rules and align .distignore so both downloads omit development directories, Composer manifests, and dependency GitHub configuration while retaining runtime code, generated Composer metadata, licenses, and translations.

Removing composer.lock requires explicitly selecting Syft's installed Composer package scanner. The release workflow now verifies that the SBOM contains every shipped Composer dependency. A new packaging check in the PHP 8.3 CI job compares the two archives, checks excluded and required files, and exercises dependency autoloading and Markdown conversion.

Validation: the archive comparison and runtime smoke checks pass locally; committed vendor matches production dependencies; Syft v1.57.1 detects both shipped dependencies with the correct versions after manifest removal. All 12 CI checks pass, including the new archive check and both WordPress/WooCommerce integration environments.

Closes #28.

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

WordPress Playground Preview

The changes in this pull request can previewed and tested using a WordPress Playground instance.

Open WordPress Playground Preview

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Plugin readme preview

Open preview · Commit 07e81ca

24 passed · 2 warnings · 2 notes

Warnings

  • “Tested up to” is 7.2; the latest WordPress major release is 7.1. Test with 7.1 and update the header.
  • The Screenshots section is missing or has no captions.
Notes (2)
  • No banner loaded. Add banner-772x250.png or banner-1544x500.png.
  • No icon loaded. A placeholder appears in the preview.
Passed checks (24)
  • 117 / 150 characters in the short description.
  • Plugin name header recognized.
  • License header recognized: GPLv2 or later.
  • 5 tags accepted within the five-tag limit.
  • Description is within the parser’s word limit.
  • Installation is within the parser’s word limit.
  • Faq is within the parser’s word limit.
  • Changelog is within the parser’s word limit.
  • Stable tag is declared: 1.2.0.
  • The PHP Version header is declared: 1.2.0.
  • Stable tag matches the PHP Version header: 1.2.0.
  • The readme “Requires at least” value is valid: 6.0.
  • The PHP “Requires at least” header is a numeric version: 6.0.
  • “Requires at least” matches between the readme and PHP header: 6.0.
  • The readme “Requires PHP” value is valid: 7.4.
  • The PHP “Requires PHP” header is a numeric version: 7.4.
  • “Requires PHP” matches between the readme and PHP header: 7.4.
  • “Tested up to” 7.2 meets the minimum WordPress version 6.0.
  • Installation content is present.
  • FAQ content is present.
  • Changelog content is present.
  • The first changelog release matches Stable tag: 1.2.0.
  • The first changelog release matches PHP Version: 1.2.0.
  • Plugin PHP header loaded.

Readme and PHP-header checks only; this does not test plugin runtime compatibility.

@jdevalk
jdevalk merged commit b908a0c into main Nov 26, 2026
12 checks passed
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.

Add .gitattributes file to exclude unnecessary files from the plugin ZIP

1 participant