Skip to content

Commit cc421a0

Browse files
committed
Refresh .gitattributes + accept *.x branches in Stryker config
.gitattributes - Drop dead entries (/etc, /docs, /behat.yml.dist, /composer-require-checker.json, /psalm-baseline.xml, /psalm.xml, /CHANGELOG.md) — none of those files exist in the repo anymore. - Add the current tooling configs that should stay out of the Composer tarball: /CLAUDE.md, /composer-dependency-analyser.php, /infection.json5, /phpstan.neon, /rector.php. infection.json5 - Swap the Stryker badge match from the literal "master" to the regex /^\d+\.x$/, so pushes to 1.x and 2.x both publish to the dashboard. The literal-string matcher was silently dropping every report with the warning "Branch \"2.x\" does not match expected Stryker configuration".
1 parent 62505bb commit cc421a0

2 files changed

Lines changed: 19 additions & 19 deletions

File tree

.gitattributes

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
1-
/.github export-ignore
2-
/etc export-ignore
3-
/docs export-ignore
4-
/.editorconfig export-ignore
5-
/.gitattributes export-ignore
6-
/.gitignore export-ignore
7-
/README.md export-ignore
8-
/behat.yml.dist export-ignore
9-
/composer-require-checker.json export-ignore
10-
/docs export-ignore
11-
/ecs.php export-ignore
12-
/node_modules export-ignore
13-
/phpunit.xml.dist export-ignore
14-
/psalm-baseline.xml export-ignore
15-
/psalm.xml export-ignore
16-
/tests export-ignore
17-
/CHANGELOG.md export-ignore
18-
/UPGRADE.md export-ignore
1+
/.editorconfig export-ignore
2+
/.github export-ignore
3+
/.gitattributes export-ignore
4+
/.gitignore export-ignore
5+
/CLAUDE.md export-ignore
6+
/README.md export-ignore
7+
/UPGRADE.md export-ignore
8+
/composer-dependency-analyser.php export-ignore
9+
/ecs.php export-ignore
10+
/infection.json5 export-ignore
11+
/node_modules export-ignore
12+
/phpstan.neon export-ignore
13+
/phpunit.xml.dist export-ignore
14+
/rector.php export-ignore
15+
/tests export-ignore

infection.json5

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
"text": "php://stderr",
99
"github": true,
1010
"stryker": {
11-
"badge": "master"
11+
// Regex (delimited by `/`) so every `<n>.x` maintenance branch — currently 1.x and 2.x —
12+
// updates the Stryker dashboard badge. A literal string here is matched exactly, so
13+
// pinning to a single branch name silently drops the report for every other one.
14+
"badge": "/^\\d+\\.x$/"
1215
}
1316
},
1417
"minMsi": 51.02,

0 commit comments

Comments
 (0)