move CI to Forgejo (n/playbooks#227) #10

Merged
n merged 3 commits from ci2 into main 2024-09-14 21:03:10 +02:00
3 changed files with 8 additions and 3 deletions
Showing only changes of commit 6d56648e1e - Show all commits

View file

@ -1,3 +1,4 @@
---
name: lint
run-name: lint is launched by ${{ github.actor }}
on: [push]
@ -24,4 +25,3 @@ jobs:
- name: PHP CS Fixer
run: vendor/bin/php-cs-fixer fix --dry-run --verbose --diff .
- run: echo "🍏 This job's status is ${{ job.status }}."

5
.php-cs-fixer.php Normal file
View file

@ -0,0 +1,5 @@
<?php
return (new PhpCsFixer\Config())
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
;

View file

@ -18,7 +18,7 @@ function hook_clickat_render_linklist($data)
);
foreach ($data['links'] as &$value) {
if (strpos($value['description'], '@') !== false) {
foreach($patterns as $nic => $link) {
foreach ($patterns as $nic => $link) {
$value['description'] = preg_replace($nic, $link, $value['description']);
}
}