Skip to content

[#16] - .gitattributes: the package has no tests and no tool configs - #115

Merged
niden merged 3 commits into
masterfrom
T16-gitattributes
Nov 28, 2026
Merged

niden merged 3 commits into
masterfrom
T16-gitattributes

Conversation

@niden

@niden niden commented Nov 28, 2026

Copy link
Copy Markdown
Member

Hello!

In raising this pull request, I confirm the following:

  • I have checked that another pull request for this purpose does not exist
  • I wrote some tests for this PR
  • composer test, composer cs and composer analyze all pass
  • I have created a PR for the documentation about this change, if user facing

From the pre-release checklist of #16 ("archive.exclude keeps resources/stubs/"). It does, but Packagist gives the zip of GitHub, which git archive makes. git archive reads export-ignore in .gitattributes, not archive.exclude in composer.json. The repository had no .gitattributes, so the package had tests/, .github/, docker-compose.yml, resources/docker/ and the tool configs.

  • .gitattributes: export-ignore for each path of archive.exclude, in the same order. composer archive reads both files.
  • PackageArchiveTest: the two lists are the same, and no path removes resources/stubs/.

With the file, git archive gives bin/, config/, docs/, public/, resources/ (the 84 stubs, setup.sh and the files that archive.exclude does not name), src/ and the root files.

Thanks

….exclude, because the zip of GitHub does not read composer.json

Assisted-by: Claude Code
…e.exclude, and keeps the stubs

Assisted-by: Claude Code
Assisted-by: Claude Code
@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown

Code Metrics Report

master (275a4c5) T16-gitattributes (f000f64) +/-
Coverage 99.8% 99.8% 0.0%
Test Execution Time 9s 12s +3s
Details
  |                     | master (275a4c5) | T16-gitattributes (f000f64) | +/-  |
  |---------------------|------------------|-----------------------------|------|
  | Coverage            |            99.8% |                       99.8% | 0.0% |
  |   Files             |               97 |                          97 |    0 |
  |   Lines             |             4203 |                        4203 |    0 |
  |   Covered           |             4196 |                        4196 |    0 |
- | Test Execution Time |               9s |                         12s |  +3s |

Reported by octocov

@niden
niden merged commit 81a28eb into master Nov 28, 2026
42 checks passed
@niden
niden deleted the T16-gitattributes branch November 28, 2026 13:20
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.

1 participant