Skip to content

Commit a82dcf9

Browse files
Unpushed commits (local main ahead of origin/main) (#56)
* WIP * WIP * Security update * Optimized Repository Skeleton * chore: fix code style with Laravel Pint * chore: sync Laravel Pint workflow from template * chore: sync CONTRIBUTING.md from template * chore: sync security policy from template --------- Co-authored-by: Rhys Lees <43909932+RhysLees@users.noreply.github.com>
1 parent 5e75137 commit a82dcf9

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Before submitting a pull request:
4040

4141
If the project maintainer has any additional requirements, you will find them listed here.
4242

43-
- **[PSR-2 Coding Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)** - The easiest way to apply the conventions is to install [PHP Code Sniffer](https://pear.php.net/package/PHP_CodeSniffer).
43+
- **[Laravel Pint](https://github.com/laravel/pint)** - PHP style is enforced with Pint (PSR-12–oriented, via PHP-CS-Fixer). Run `composer install`, then `./vendor/bin/pint` before pushing (`composer run format` instead if your package defines that script). The **Fix PHP code style issues** GitHub Action also runs on push and may commit formatting fixes.
4444

4545
- **Add tests!** - Your patch won't be accepted if it doesn't have tests.
4646

.github/workflows/fix-php-code-style-issues.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,21 @@ name: Fix PHP code style issues
22

33
on: [push]
44

5+
permissions:
6+
contents: write
7+
58
jobs:
69
php-code-styling:
710
runs-on: ubuntu-latest
811

912
steps:
1013
- name: Checkout code
11-
uses: actions/checkout@v4
12-
with:
13-
ref: ${{ github.head_ref }}
14+
uses: actions/checkout@v6.0.2
1415

1516
- name: Fix PHP code style issues
16-
uses: aglipanci/laravel-pint-action@2.5
17+
uses: aglipanci/laravel-pint-action@2.6
1718

1819
- name: Commit changes
19-
uses: stefanzweifel/git-auto-commit-action@v5
20+
uses: stefanzweifel/git-auto-commit-action@v6.0.1
2021
with:
2122
commit_message: Fix styling

0 commit comments

Comments
 (0)