Skip to content

Commit 49c4946

Browse files
committed
- feat: the default commit message made compliant with Conventional Commits
### Changed - the default commit message made compliant with [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) - chore(super-linter): Bumps [super-linter/super-linter](https://github.com/super-linter/super-linter) from 8.1.0 to 8.2.0.
1 parent 71591eb commit 49c4946

File tree

4 files changed

+44
-6
lines changed

4 files changed

+44
-6
lines changed

.github/workflows/polish-the-code.yml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,34 @@ permissions:
2222
contents: read
2323

2424
jobs:
25+
commit-check:
26+
runs-on: ubuntu-latest
27+
permissions: # use permissions because use of pr-comments
28+
contents: read
29+
pull-requests: write
30+
# Limit the running time
31+
timeout-minutes: 10
32+
steps:
33+
- uses: actions/checkout@v5
34+
with:
35+
ref: ${{ github.event.pull_request.head.sha }} # checkout PR HEAD commit
36+
fetch-depth: 0 # required for merge-base check
37+
persist-credentials: false
38+
- uses: commit-check/commit-check-action@v1
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # use GITHUB_TOKEN because use of pr-comments
41+
with:
42+
message: true
43+
# to accept dependabot/github_actions/*
44+
branch: false
45+
author-name: true
46+
author-email: true
47+
commit-signoff: false
48+
merge-base: false
49+
imperative: false
50+
job-summary: true
51+
pr-comments: ${{ github.event_name == 'pull_request' }}
52+
2553
prettier-fix:
2654
# Note: runs-on doesn't accept all expressions, so a string is used
2755
runs-on: "ubuntu-latest"
@@ -31,12 +59,12 @@ jobs:
3159
timeout-minutes: 10
3260
steps:
3361
- name: Invoke the Prettier fix
34-
uses: WorkOfStan/[email protected].3
62+
uses: WorkOfStan/[email protected].6.1
3563
with:
3664
commit-changes: ${{ github.event_name != 'schedule' }}
3765

3866
super-linter:
3967
needs: prettier-fix
40-
uses: WorkOfStan/seablast-actions/.github/workflows/[email protected].3
68+
uses: WorkOfStan/seablast-actions/.github/workflows/[email protected].6
4169
with:
4270
runs-on: "ubuntu-latest"

CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1919

2020
### `Security` in case of vulnerabilities
2121

22+
## [1.0.3] - 2025-10-04
23+
24+
- feat: the default commit message made compliant with Conventional Commits
25+
26+
### Changed
27+
28+
- the default commit message made compliant with [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/)
29+
- chore(super-linter): Bumps [super-linter/super-linter](https://github.com/super-linter/super-linter) from 8.1.0 to 8.2.0.
30+
2231
## [1.0.2] - 2025-05-31
2332

2433
fix: Fix pull request issues
@@ -51,7 +60,8 @@ fix: Fix pull request issues
5160
- The new boolean input `stop-on-manual-fix` will cause the workflow to stop (fail) if manual fixes are necessary. (Also stops with an error if some manual fixes are required on top of automatic fixes.)
5261
- Cached `vendor/` (for a unique combination of php-version and composer.json) after a successful run in order to speed up further runs.
5362

54-
[Unreleased]: https://github.com/WorkOfStan/phpcs-fix/compare/v1.0.2...HEAD?w=1
63+
[Unreleased]: https://github.com/WorkOfStan/phpcs-fix/compare/v1.0.3...HEAD?w=1
64+
[1.0.3]: https://github.com/WorkOfStan/phpcs-fix/compare/v1.0.2...v1.0.3?w=1
5565
[1.0.2]: https://github.com/WorkOfStan/phpcs-fix/compare/v1.0.1...v1.0.2?w=1
5666
[1.0.1]: https://github.com/WorkOfStan/phpcs-fix/compare/v1.0.0...v1.0.1?w=1
5767
[1.0.0]: https://github.com/WorkOfStan/phpcs-fix/releases/tag/v1.0.0

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ permissions:
3838
| Input | Description | Type | Default |
3939
| -------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
4040
| `commit-changes` | If set to `true`, the action will commit changes to the current branch; otherwise a new branch is created for manual review. | Boolean | `false` |
41-
| `commit-message` | Commit message to use if the action commits changes. | String | `"PHP Code Beautifier fixes applied automatically"` |
41+
| `commit-message` | Commit message to use if the action commits changes. | String | `"chore(phpcf): PHP Code Beautifier fixes applied automatically"` |
4242
| `debug` | Enable extra debug output (list of branches). | Boolean | `false` |
4343
| `extensions` | Comma-delimited list of file extensions to be sniffed. Note: an empty value will disable checking. | String | `"php"` (defaults to PHP only; other file types must be specified) |
4444
| `ignore` | Ignore files based on a comma-separated list of patterns matching files and/or directories. | String | `vendor/` |

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ inputs:
1919
commit-message:
2020
description: "Commit message for the changes"
2121
type: string
22-
default: "PHP Code Beautifier fixes applied automatically"
22+
default: "chore(phpcf): PHP Code Beautifier fixes applied automatically"
2323
debug:
2424
description: "Enable extra debug output"
2525
type: boolean
@@ -64,7 +64,7 @@ runs:
6464
using: "composite"
6565
steps:
6666
- name: Checkout code
67-
uses: actions/checkout@v4
67+
uses: actions/checkout@v5
6868
with:
6969
ref: ${{ github.ref }} # Fetch latest changes (even by previous job)
7070
fetch-depth: 0 # Fetch all history for all branches and tags. Otherwise github.event.pull_request.base.ref SHA isn't found.

0 commit comments

Comments
 (0)