Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 2 additions & 19 deletions .github/github-app.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,7 @@
# GitHub App Manifest / Konfigurationsdatei (.github/github-app.yml)
version: 1

# Grundlegende Informationen zur App-Konfiguration
name: "Copilot & Bot Workflow Integration"
description: "Repository-spezifische Konfiguration für automatisierte Workflows und Copilot-Assistenten."

# Standard-Anweisungen und Prompt-Kontext für Copilot im Repository
# Repository configuration for the GitHub Copilot app
# https://docs.github.com/copilot/reference/github-copilot-app-reference/repository-configuration
instructions: |
# Repository-Richtlinien für GitHub Copilot
- Achten Sie darauf, bestehende Architekturmuster und Code-Konventionen (z. B. Coding Styles, Namenskonventionen) einzuhalten.
- Dokumentieren Sie neue Funktionen und Schnittstellen direkt im jeweiligen Code-Modul.
- Vermeiden Sie hardgecodete Secrets oder sensible Konfigurationswerte im Code.

# Berechtigungen und Events (Beispielhaft für Automatisierungen)
default_permissions:
contents: write
pull_requests: write
issues: read

default_events:
- pull_request
- push
- issues
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
* Lower `phpunit/phpunit` to `^11.5`: PHPUnit 13 requires PHP 8.4, but the library and CI support PHP 8.2 and 8.3. Refresh `composer.lock`.
* Set `minimum-stability` to `stable` and remove unused `allow-plugins` entries.
* CI: remove the duplicate `phpcbf.yml` autofix workflow (autofix stays in `main.yml` for pull requests), set default `contents: read` permissions, drop the redundant non-blocking `phpcs` step and `composer clear-cache`, and cache Composer packages.
* Create the unreadable test file in the system temp directory, so no `no_readable_file.txt` is left in the repository.
* Remove the coverage reports from `phpunit.xml.dist` (no more "No code coverage driver" warning) and add the `composer coverage` script.
* Reduce `.github/github-app.yml` to the supported `instructions` key and update the PHP requirement in the README.
* Update `antecedent/patchwork` to 2.2.5 and `stefanzweifel/git-auto-commit-action` to 7.

## 2.3.0 (2026-11-06)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ My class supports currently the follow syntax. But Pull Request are really welco

#### Requirements

* PHP 8.2 tested
* PHP 8.2 or higher, tested with PHP 8.2 to 8.5

Install static via download, clone the repository or use dependency management via Composer

Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"cs": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs",
"csfix": "@php ./vendor/bin/phpcbf",
"pu": "@php ./vendor/bin/phpunit",
"coverage": "@php ./vendor/bin/phpunit --coverage-html tmp --coverage-clover clover.xml",
"qa": [
"@cs",
"@pu"
Expand Down
6 changes: 0 additions & 6 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,4 @@
<directory suffix=".php">src</directory>
</include>
</source>
<coverage>
<report>
<html outputDirectory="tmp" />
<clover outputFile="clover.xml" />
</report>
</coverage>
</phpunit>
9 changes: 5 additions & 4 deletions tests/phpunit/Unit/MarksimpleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,23 @@ class MarksimpleTest extends AbstractTestCase
*
* @var string
*/
protected $noReadableFile = __DIR__ . '/./no_readable_file.txt';
protected $noReadableFile = '';

/**
* Set up environment with adding unreadable file
* Set up environment with adding unreadable file in the system temp directory
*/
public function setUp():void
{
touch($this->noReadableFile);
chmod($this->noReadableFile, 27);
$this->noReadableFile = (string) tempnam(sys_get_temp_dir(), 'no_readable_file_');
chmod($this->noReadableFile, 0000);
}

/**
* Tear down environment with deleting unreadable file
*/
public function tearDown():void
{
chmod($this->noReadableFile, 0600);
unlink($this->noReadableFile);
}

Expand Down
Loading